Skip to main content

smiles-fp

Rust-accelerated Tanimoto similarity search over RDKit Morgan fingerprints.

Prerequisites

  • Python 3.10 to 3.14.
  • RDKit, pinned to the version a given wheel was built against.
  • To build from source: a Rust toolchain and uv (RDKit/Boost headers are fetched automatically from PyPI, no conda required).

Installation

A wheel is published to PyPI per supported RDKit release, pin the RDKit version during installation:

uv pip install smiles-fp~=0.2.1 rdkit~=2024.0 # installs smiles-fp==0.2.1.2024.9.6 and rdkit==2024.9.6

To build locally instead, build_wheel.py builds one wheel for the RDKit version you pass it, targeting whichever Python interpreter runs the script (use uv run --python to pick one):

uv run --python 3.12 smiles-fp-pypi/build_wheel.py 2024.9.6
mv ./target/wheels ./target/smiles-fp
python -m http.server --directory ./target/
uv pip install smiles-fp --extra-index-url http://localhost:8000

Usage

from smiles_fp import get_mols, get_morgan_fps, save_fingerprints
from smiles_fp.search import similarity_search

query_ids = ["aspirin", "ethanol"]
mols = get_mols(["CC(=O)OC1=CC=CC=C1C(=O)O", "CCO"])
fps = get_morgan_fps(mols)
save_fingerprints(fps, "query.fp")

db_ids = ["ethylamine", "acetylsalicylic acid"]
db_mols = get_mols(["CCN", "CC(=O)OC1=CC=CC=C1C(=O)O"])
db_fps = get_morgan_fps(db_mols)
save_fingerprints(db_fps, "db.fp")

results = similarity_search(query_ids, "query.fp", db_ids, "db.fp", k=5)

Or with progress bar:

mols = get_mols(smiles, verbose=True)
# Parsing SMILES:  42%|████▏     | 42000/100000 [00:01<00:01, 38000mol/s]

After an interrupt, results are discarded, but clean(..., inplace=True) keeps the molecules it already cleaned.

All functions are described in DOCS.md.

License

MIT, see LICENSE.

Metadata

Release files for smiles-fp 0.3.4.2024.3.6

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

Built distributions (wheels)

Table of built distributions (wheels) for smiles-fp 0.3.4.2024.3.6
File Actions
smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.39+ x86-64 Details for smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ ARM64 Details for smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details for smiles_fp-0.3.4.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl
smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_39_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.39+ x86-64 Details for smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ ARM64 Details for smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details for smiles_fp-0.3.4.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl
smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_39_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.39+ x86-64 Details for smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ ARM64 Details for smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64 Details for smiles_fp-0.3.4.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 4.2 MB

Release files / smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl
Size 510.2 kB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
b0d79285a1d0822ac6ee53896738a0911a3c6b6fd5c98850ccb5403d6042dab9
BLAKE2b-256 checksum
How to use checksums
10cbd5342b68ff4d20ba6970f66532500ea241d1e9e93dbeb786bf235b472ee6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl
Size 469.4 kB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
e5cb445ebcd5e92f3df43ea41210d16901917c6c3c1719ab8a6694061bf3118a
BLAKE2b-256 checksum
How to use checksums
bdaf702f20ae342c8c949bed426d77dfc4daee0b7dc071e542c9ce9997c6f0a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl
Size 435.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
51c09d66910601b49850d79645a7896dd3938040cb4b08e44e74d40b751ea599
BLAKE2b-256 checksum
How to use checksums
eab989e7093144c09ebc8fa5af4230affbbbd0a6418835db24735054aef0afc8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_39_x86_64.whl
Size 506.6 kB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
d02ff1b2f5c2e6343056f69285a6e432b324dcf4b755a6c06e627f62a7d0f5a7
BLAKE2b-256 checksum
How to use checksums
e6a116c8bbe026abe129ef1d28dd41d8f0e8a41fd36b77b23456efc42c87e83c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl
Size 467.1 kB
Tags CPython 3.11 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
863458e58bc348d99356dd1c9a7cda81ece8d7e33d2b9d138e50953eaa7ad477
BLAKE2b-256 checksum
How to use checksums
2c73d5294e71fe59e54822c726f0b98150b7e9f1c6d05f27a43ce9ff9b77171c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl
Size 437.5 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
94c074f085636da55d851c5c03c8fb42815f2f85e3a3921ab1ac5c2e693aea56
BLAKE2b-256 checksum
How to use checksums
3d3db839996d9405e6dbb40a1df5ab1e19b7cb73ec01257b8dcc4d91f22db44a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_39_x86_64.whl
Size 506.8 kB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
a42487ac0d9f7fb5569ef370d2a6068298a3e03c8bf3e009ba9683390daa606f
BLAKE2b-256 checksum
How to use checksums
a96f7f84e46e7560f02f4a9096b7c2ef42c81c7bc09159ab1b94ed591dd8849b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl
Size 467.3 kB
Tags CPython 3.10 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
f9369d1b7ca403dd7d0b8c3b3a41a299f41eaa2da8a734892b1f9c921236d179
BLAKE2b-256 checksum
How to use checksums
df74fe02afb1397eb996a100cec1a902a6cff685d977e02460d891de20638636
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / smiles_fp-0.3.4.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl
Size 437.6 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f802270af6fb3b787b9d053ef105184b3b554ac930fdfd2339af5908a58d7726
BLAKE2b-256 checksum
How to use checksums
7f07d98129db8e93916d3150d370ea14f05ef54d53935fd3de4ae904826303d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for smiles-fp 0.3.4.2024.3.6

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.

Full provenance

All 9 files in this release have been uploaded with provenance metadata.

Select from 9 files

Attestation for smiles_fp-0.3.4.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

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
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