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.9.6-cp313-cp313-manylinux_2_34_x86_64.whl (293.3 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.9.6-cp313-cp313-manylinux_2_34_aarch64.whl (276.1 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.9.6-cp313-cp313-macosx_11_0_arm64.whl (255.0 kB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

smiles_fp-0.2.1.2024.9.6-cp312-cp312-manylinux_2_34_x86_64.whl (292.9 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.9.6-cp312-cp312-manylinux_2_34_aarch64.whl (275.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.9.6-cp312-cp312-macosx_11_0_arm64.whl (254.8 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

smiles_fp-0.2.1.2024.9.6-cp311-cp311-manylinux_2_34_x86_64.whl (288.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.9.6-cp311-cp311-manylinux_2_34_aarch64.whl (273.4 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.9.6-cp311-cp311-macosx_11_0_arm64.whl (255.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

smiles_fp-0.2.1.2024.9.6-cp310-cp310-manylinux_2_34_x86_64.whl (288.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ x86-64

smiles_fp-0.2.1.2024.9.6-cp310-cp310-manylinux_2_34_aarch64.whl (273.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.34+ ARM64

smiles_fp-0.2.1.2024.9.6-cp310-cp310-macosx_11_0_arm64.whl (255.3 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file smiles_fp-0.2.1.2024.9.6-cp313-cp313-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp313-cp313-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 710df7fd8cf94a43cd8c8563d6e48afe0355c8cdb94b3033f1b69a6fe709fb8d
MD5 bfe3479e0057f507250d429a9c47d6ee
BLAKE2b-256 2f350edde8c3cb70fb39d65f706616ec436e8fd5f2d63506ffe4d5df0ebe9ff8

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.6-cp313-cp313-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.9.6-cp313-cp313-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp313-cp313-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 583065dd3c496bb98661d66c7af2df04c670ece1047c35cf063121839d18a3df
MD5 d8790fc9d613bb5131f86262107e34c5
BLAKE2b-256 17535b8ab7309f625a172133c166838374082859def7e435fbcbd10f17a610b4

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.6-cp313-cp313-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.9.6-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2da9ca3caf1a78238a6df3d5fe1858aa49b07b62de7a3eb117a50385ff55cc62
MD5 972c431a9df314e2bd962e3891a18cce
BLAKE2b-256 7618db9d3c00cb12381fabd284c19afb850e253827fa5cd3b02ca5d840bf6a5a

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.6-cp313-cp313-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.9.6-cp312-cp312-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp312-cp312-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 3b408cf07a72aa6b1eb1bb815cc09022daa3bdbdca4516bc9f49d91629f7354e
MD5 f97171935d2ecf116fa8205a220dc877
BLAKE2b-256 af7875a8cdd3002119bd1e9f3717175e4ecf53fc1ea3512b9e21c046ac82910d

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp312-cp312-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp312-cp312-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 6eed9535b313083f959046a2c238c77c4c3623b6282c3de4800cd573c21dfe28
MD5 8669f388a8cace17793029d0d9e90b97
BLAKE2b-256 ebbd5a29db49e978f786f27f15fbaf56c716ee81c6590f314a526785b796d079

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 5933bb858d05a5c9459de3c22b02e1cb1598cbc1ac27ec9f849fe983b26c6fcd
MD5 ee1abdd0ba7e1c7cb23af5b84b483aec
BLAKE2b-256 fabb7c9c3e1d85e4dbf53c4245eca75fad2e21d975c1737d1886c99c4d0611c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp311-cp311-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp311-cp311-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2477d25e01fd8e7a9df6de485e792386f93e7a64a8491d6eb4c1fbf7ac7fd208
MD5 9e26b8d50abdf6ab9d0f99da3639fe40
BLAKE2b-256 d77ed8a739b3ded37559bde53cd8903e547ab12d59ac286909db1a598a9f2fe1

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp311-cp311-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp311-cp311-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 3025cc5db4f0504f2a363ee8426e5d4fd2060de4a01fd3228de11171409a2cc3
MD5 f354fb5c33c314c3c63d00b112a70ec1
BLAKE2b-256 48205d56089697738e4d5c43a85d6f584c27385a579ba8b5b5a0f3bea4a76658

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62a7274c7b5d1b5b937131ffc0e97dc3084af39bab91fa3f2b9eb44e0b46123c
MD5 a8c3fc0ab687417587a8249d7c45186c
BLAKE2b-256 90d6e8c44960d35dd5d238ef24a2ccf9a99d64282388e3e96a3afd2eba0412ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp310-cp310-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp310-cp310-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 527d70de95c47c60c241f4275edbd81a96332fe8973f5ac258b4f20496305eff
MD5 1ef2bc4e29845b14f87607cd30efafaa
BLAKE2b-256 1adbc478e1fae8242e9a6dc64158ac9204fabac39541a98ac6cf357c2d63d47d

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp310-cp310-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp310-cp310-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 9bcc9af102f301bff8caeb8c7c40c527ca96eb4814f67268ca9664b0b50822c0
MD5 2433827b884e30a17682080fc2b080d2
BLAKE2b-256 19b915809e934f83be5b6133477b5317a8bf35e4614f8032fa12dcd69d0a4207

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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.9.6-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for smiles_fp-0.2.1.2024.9.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d3f9ce7c820d05a419d639011a795f1ad2ce4c9f5ce494c4a702288d9f66a190
MD5 c8539d0698ffde6745bb56f1f356aa59
BLAKE2b-256 5b9b9776a0e874bbc0fec3167cc26709bb2746bdea99ee44d351f84c9ad1c447

See more details on using hashes here.

Provenance

The following attestation bundles were made for smiles_fp-0.2.1.2024.9.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