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.9.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.9.6
File Actions
smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_39_x86_64.whl CPython 3.13 CPython 3.13 Linux glibc 2.39+ x86-64 Details for smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_34_aarch64.whl CPython 3.13 CPython 3.13 Linux glibc 2.34+ ARM64 Details for smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.9.6-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details for smiles_fp-0.3.4.2024.9.6-cp313-cp313-macosx_11_0_arm64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp312-cp312-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp312-cp312-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp312-cp312-macosx_11_0_arm64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp311-cp311-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp311-cp311-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp311-cp311-macosx_11_0_arm64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp310-cp310-manylinux_2_39_x86_64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp310-cp310-manylinux_2_34_aarch64.whl
smiles_fp-0.3.4.2024.9.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.9.6-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 5.7 MB

Release files / smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_39_x86_64.whl
Size 510.4 kB
Tags CPython 3.13 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
50fdc3f144a038e2cdf49c221981465d12c08c67dfd61cf4ee1d0f0fbbc802c9
BLAKE2b-256 checksum
How to use checksums
c5f7895e3aafe47d473f504de34bdbf4d7c1166ae4c2617d9edbfbe8197aafd2
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.9.6-cp313-cp313-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp313-cp313-manylinux_2_34_aarch64.whl
Size 468.7 kB
Tags CPython 3.13 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
9a0827cf1c6e0ab46e0ded8e64a7f049994dc572f237f83de2aba66347b97762
BLAKE2b-256 checksum
How to use checksums
d6381be0ab26ed5db476bc1a3d84e4bb4ffb7500583196b8774276f2d3c0858d
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.9.6-cp313-cp313-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp313-cp313-macosx_11_0_arm64.whl
Size 436.0 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
172c3a6b17dbfb7c1252d63f1ee6b60380370653dd20d0966fb4982fd9efd36f
BLAKE2b-256 checksum
How to use checksums
c75b92ca454364570f45b67d7cbb34f260dba951e13a465dcfa4e55438fdf299
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.9.6-cp312-cp312-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.9.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
082ff72a1bd841c012424407f0448a72a0594ae45b96c8f07f2b7e3ec8506220
BLAKE2b-256 checksum
How to use checksums
3121778d520b8372752db97f78e0508d645fa1365b56d5311e1455c47ed503d6
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.9.6-cp312-cp312-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp312-cp312-manylinux_2_34_aarch64.whl
Size 468.7 kB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
31d78a03128fe614c279b301c5ff732fd194e56e8f55bc977f0efa34d1f58b02
BLAKE2b-256 checksum
How to use checksums
b1a9323863d8b28a9c5e98f94911306df770d9a9df435548c43e4f2af3bd4e03
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.9.6-cp312-cp312-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp312-cp312-macosx_11_0_arm64.whl
Size 436.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a094f98262bf34de30791dd553e7c6bda5fd1509b6fb6a0ca1821edcfc694838
BLAKE2b-256 checksum
How to use checksums
04e77461508bfe57974438eaa3d14776b0dffce1a86f71078cb5d5556003d75f
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.9.6-cp311-cp311-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp311-cp311-manylinux_2_39_x86_64.whl
Size 506.7 kB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
63edefc28a393cd1bab3f2a9388aed940119aa34690099ea48d4fcf4a73f813a
BLAKE2b-256 checksum
How to use checksums
43a1dbbe7535cb067b7115b4ed7cb330074b703037afd03a1012074750abef19
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.9.6-cp311-cp311-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp311-cp311-manylinux_2_34_aarch64.whl
Size 467.2 kB
Tags CPython 3.11 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
403f17d468b5f22a973b795b9538896bf9836a53a6dceb556400fd5b19b94957
BLAKE2b-256 checksum
How to use checksums
2ac4c1e84de74792093d9885554a771e057153e65bbff21a22ccf313d10ed32c
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.9.6-cp311-cp311-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp311-cp311-macosx_11_0_arm64.whl
Size 437.8 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a9278860ddd186a30918fb6fa2210c170e95084985cdd4d754175fdcdf36259d
BLAKE2b-256 checksum
How to use checksums
1114e544c1148f11ca191986fa36533f3973d8233663606315519cd8ad5449e5
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.9.6-cp310-cp310-manylinux_2_39_x86_64.whl

Download URL smiles_fp-0.3.4.2024.9.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
4205a23476c3933277cb8f6a0e680f7ca15ca89aedb2c9619820ae8365487790
BLAKE2b-256 checksum
How to use checksums
4e659a9431ec3de94c2f076c399c36c0ca2a2d78adc56f8be54a8a16eafc32dc
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.9.6-cp310-cp310-manylinux_2_34_aarch64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp310-cp310-manylinux_2_34_aarch64.whl
Size 467.2 kB
Tags CPython 3.10 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
83566b4fc4366231bffaf5889f48c1303e7fdf1063b16f93b975367d8d0a48f4
BLAKE2b-256 checksum
How to use checksums
e9e32900ca1458b1eec1c7938fb4bde569b8a3101e72538ea1792383b22ae2d6
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.9.6-cp310-cp310-macosx_11_0_arm64.whl

Download URL smiles_fp-0.3.4.2024.9.6-cp310-cp310-macosx_11_0_arm64.whl
Size 437.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
38b0678cdb071a2c696d1248dd17ca557044adc27ec63e5e5cb1e4616acdcc9e
BLAKE2b-256 checksum
How to use checksums
97c1c49dec95c5b389c6c7a3f65c8db2e8f8d2bd02c1ad3626c6b6ede0ef8c9b
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.9.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 12 files in this release have been uploaded with provenance metadata.

Select from 12 files

Attestation for smiles_fp-0.3.4.2024.9.6-cp313-cp313-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