Skip to main content

seqchem

Python client for the free SeqChem chemistry and bioinformatics API — convert between 190+ chemical formats, compute molecular descriptors, draw structures, generate 3D conformers, search substructures and process FASTA/FASTQ sequences.

No API key, no account, no dependencies (standard library only).

pip install seqchem

Quick start

from seqchem import Client

c = Client()

# SMILES -> InChI
print(c.convert("CC(=O)Oc1ccccc1C(=O)O", to="inchi")["result"])

# Descriptors (MW, logP, TPSA, HBD, HBA, rotatable bonds, InChIKey, ...)
props = c.properties("CC(=O)Oc1ccccc1C(=O)O")[0]["props"]
print(props["MW"], props["logP"], props["InChIKey"])

# 2D structure as SVG, ready to embed in a notebook or a web page
svg = c.depict("CC(=O)Oc1ccccc1C(=O)O")

# 3D conformer as an SDF block
sdf = c.gen3d("CC(=O)Oc1ccccc1C(=O)O")

# Tanimoto similarity
print(c.similarity("CCO", "CCCO", fp="MACCS"))

# IUPAC name -> structure
print(c.iupac("2-acetoxybenzoic acid")["smiles"])

# FASTA/FASTQ: fasta2fastq, fastq2fasta, revcomp, translate, stats
print(c.bio("revcomp", "ATGGCCATTGTAATGGGCCGCTGAAAGGGTGCCCGATAG")["result"])

Command line

The package installs a seqchem command:

seqchem convert "CC(=O)Oc1ccccc1C(=O)O" --to inchi
seqchem properties "CCO" --json
seqchem depict "CCO" > ethanol.svg
seqchem similarity CCO CCCO
seqchem bio revcomp ATGGCC
seqchem formula C9H8O4
cat molecules.sdf | seqchem convert - --from sdf --to smiles

Errors

Everything raises SeqChemError, which carries the HTTP status and any detail the service sent:

from seqchem import Client, SeqChemError

try:
    Client().convert("not a molecule", to="inchi")
except SeqChemError as exc:
    print(exc.status, exc.message)

429 means either the fair-use rate limit (120 requests/minute per client) or that a heavy job is already running — 3D generation is serialised across the whole service.

Limits

Input size 8 MB per request, 64 MB for batch()
Batch records 5,000, or 500 when the output is an image
Rate limit 120 requests/minute per client

Licensed under Apache-2.0.

Metadata

Release files for seqchem 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for seqchem 0.1.0
File Size Uploaded Provenance Actions
seqchem-0.1.0.tar.gz 11.6 kB Without provenance Details for seqchem-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seqchem 0.1.0
File Interpreter ABI Platform Actions
seqchem-0.1.0-py3-none-any.whl Python 3 none any Details for seqchem-0.1.0-py3-none-any.whl

Total release size: 23.3 kB

Release files / seqchem-0.1.0.tar.gz

Download URL seqchem-0.1.0.tar.gz
Size 11.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a57bf4eaa05588739a81ffedf069afbec024d23ae337af68955ee0a8d005074e
BLAKE2b-256 checksum
How to use checksums
199341f3db4184ac1e1e02cf15020b11a185ad63260a39c8956e01b6f984fcbe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Release files / seqchem-0.1.0-py3-none-any.whl

Download URL seqchem-0.1.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6388d18e016beed4226d7d51363678aee8ba5ae5028f0c637ec747c4fc17a50b
BLAKE2b-256 checksum
How to use checksums
5f155a29d9907457c924cae6f5c14743e1a53e7b833ca7cb5547520d5948604d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.3

Security for seqchem 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page