ChemistrySharp 1.3.5

dotnet add package ChemistrySharp --version 1.3.5                
NuGet\Install-Package ChemistrySharp -Version 1.3.5                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ChemistrySharp" Version="1.3.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ChemistrySharp --version 1.3.5                
#r "nuget: ChemistrySharp, 1.3.5"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ChemistrySharp as a Cake Addin
#addin nuget:?package=ChemistrySharp&version=1.3.5

// Install ChemistrySharp as a Cake Tool
#tool nuget:?package=ChemistrySharp&version=1.3.5                

ChemistrySharp

cslogo


About

ChemistrySharp is a C# library designed to work in an easy way with the PubChem PUG REST Service which allows you to get all the chemistry information available. This library gives you the following features:

  • Get information of any assay, atom, bond, substance or compound with just one line of code.
  • Obtain more information using the Getter.cs class which has several methods to get the exact information you're looking for.
  • Easy to use.
  • Clever code and implemented with the latest technologies.

This was made by my person but if you want to contribute to improve something or add a new functionality do it!

Installation

GIT

git clone https://github.com/Koryozt/ChemistrySharp 

Nuget

dotnet add package ChemistrySharp --version 1.3.5 

Usage

All the API documentation is in: https://pubchemdocs.ncbi.nlm.nih.gov/pug-rest. Right there you will see a detailed explanation about how the service works and the different identifiers and options.

Nonetheless, ChemistrySharp is easy to use, let's see a few examples.

// This is an example of how to get a compound in the easiest way.
namespace Demo
{
    class Program
    {
        public static void Main()
        {
            Compound compound = await Compound.FromCompoundIdentifier(2244);
            Console.WriteLine(compound);
        }
    }
}

// Largest but more specific way to get information.
namespace Demo
{
    class Program
    {
        public static void Main()
        {
            Getters getter = new Getters();
            JObject record = await getter.Get(2244, Namespaces.cid, Domain.compound, null, Output.JSON, null);
            Compound compound = new Compound(record);
            Console.WriteLine(compound);
        }
    }
}

License

Copyright © 2022 Gustavo Silva. All rights reserved.

Licensed under the MIT license.

Product Compatible and additional computed target framework versions.
.NET net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.3.5 610 12/4/2022