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_wheels.py builds wheels per RDKit release into a local index:

python smiles-fp-pypi/build_wheels.py 2024.9.6 2025.9.3 2025.9.6 2026.3.2
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)

License

MIT, see LICENSE.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_x86_64.whl (292.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl (275.6 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl (254.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_x86_64.whl (288.5 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl (273.3 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl (255.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_x86_64.whl (288.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl (273.2 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl (255.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2de1ef57602c7d6bbe054d4a8c62e65ac65c4a9fbac17caef908f31ec8fbf45b
MD5 92b76a55667c2b256e04bc1e4d152101
BLAKE2b-256 c02ce50df15c9486b42811be941aff181899a14a0ed0bd2866470bdd89094081

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_x86_64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3cba607bda34a97ba31281283fad2fd978d99fbaa509d7041a85320523adcf02
MD5 926623b409ea6c7b0d7879f0634d968f
BLAKE2b-256 8a9271e7506e51028970b1fc7f9c4b3305a10196b0a0ba94a76bb0e969926051

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ff41e0984077fee80f8ee7edb2362c04e9cf9290d3755719eeed8dc97f8a0757
MD5 caaf6db8ac5d257f420fb18f801e2830
BLAKE2b-256 fad68b1b857612937556b1929b9d2ef8b64b2f82d5194848f2009110c79cfb91

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 4579bd9668ae01ed319fd53c5e78597561995cd2f8c5660386c59791cbe37bc3
MD5 7d89c4cf05a5801f89c8cd6182764f40
BLAKE2b-256 2c40546c1e32f320f309481b035bd162612bc6c6d4b95f2b0be40d618d534f55

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_x86_64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 7f0fc5fb01e13d9c1d4b743983edd7bb98cc9b46c9c1b0073d474fba1f1eb00c
MD5 67bd985dcfeafce7a958923304efda77
BLAKE2b-256 5ad538d5eaa4cea762f97338f8419b68aad906c03d26b1bfe9220fc70acf75a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f6fa1abd2270aaef08facbfc1b9ec59980f88d698783c56827804c0a97ec687e
MD5 dd4e90d911a058fe7096b8437a6d8ba6
BLAKE2b-256 06836b622a3250b19eb7126246c6119eb55ea9fbeee4106f38a3492e9c2f2810

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 37569d3e7731642e527bd61a9b4a1de71e9d79a88871864e2576df4f588c65b3
MD5 8e8542fb709c603e00dec115974dfa26
BLAKE2b-256 fd5644703079c93e278261d95d38233ae8a38dd01c5358e13957201600676cb6

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_x86_64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 b9c001d77d8a981d21692cce1ac2b37ee4ad68b78939c2952e4c436b0ad0b1cd
MD5 1fc8b13f8b9105cc127778f7d26c3fd6
BLAKE2b-256 1627409464e7b21bda06413d423d512af2b2401d58bfab2fcc0523a188b561f7

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file smiles_fp-0.2.1.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e1f1c1b63b71ddc2b50175b6fa54ece409594d1059d4d5a0fc899456e64e271a
MD5 7b2776f251290c7403e623697434f44b
BLAKE2b-256 44734c834fe0ee73aa8c4b635f050175d3057b8c504014758b91e2f21037f681

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl:

Publisher: release.yml on audivir/smiles-fp

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.
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