Skip to main content

Python client for the onepot API

Project description

onepot-api

Python client for the onepot API.

Installation

uv add onepot
# or
pip install onepot

Usage

from onepot import Client

client = Client(api_key="your-api-key")

response = client.search(
    smiles_list=["Cc1c(C(=O)Nc2ccc(N3CC(C)OC(C)C3)nc2)cccc1-c1ccc(OC(F)(F)F)cc1", ...],
    max_results=10,
    include_chemistry_risk_score=True,
)

Pricing

Credits are charged per SMILES in the query:

Option Credits per SMILES
Base search 1
include_chemistry_risk=True 5
include_chemistry_risk_score=True 10

Response Format

{
    "queries": [
        {
            "query_smiles": "Cc1c(C(=O)Nc2ccc(N3CC(C)OC(C)C3)nc2)cccc1-c1ccc(OC(F)(F)F)cc1",
            "query_inchikey": "VZZJRYRQSPEMTK-CALCHBBNSA-N",
            "results": [
                {
                    "smiles": "CCO",
                    "inchikey": "VZZJRYRQSPEMTK-CALCHBBNSA-N",
                    "similarity": 1.0,
                    "supplier_risk": "medium",
                    "price_usd": 250,
                    "chemistry_risk": "medium",    # if include_chemistry_risk=True
                    "chemistry_risk_score": 0.5    # if include_chemistry_risk_score=True
                },
                ...
            ]
        },
        ...
    ],
    "credits_used": 10,
    "credits_remaining": 990
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

onepot-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

onepot-0.1.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

Details for the file onepot-0.1.0.tar.gz.

File metadata

  • Download URL: onepot-0.1.0.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for onepot-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1813b5ec764dacf2e99054315985758123c892e2b56212bf4422fee11d967ddc
MD5 03a5c1d6e9aea48191c0acd0922169ea
BLAKE2b-256 0505e48bc1a08dd81658d1ae55c19298270867c179073313fdc87bfa2029b688

See more details on using hashes here.

File details

Details for the file onepot-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: onepot-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for onepot-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5e9554f38f142c01986dfb6be3ce81d4cfdcaeada2b424d17fa82d876a59530
MD5 94b8ee2784f7ca444496e6f494ab21ec
BLAKE2b-256 a7305c8e470dec5c8707cb9ad5d2e70387c95b1396b06cbc46f857d481b37a92

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page