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)

All functions are described in DOCS.md.

License

MIT, see LICENSE.

Metadata

Release files for smiles-fp 0.3.3.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.3.2024.3.6
File Actions
smiles_fp-0.3.3.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.3.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp311-cp311-manylinux_2_39_x86_64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp310-cp310-manylinux_2_39_x86_64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl
smiles_fp-0.3.3.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.3.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl

Total release size: 3.6 MB

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

Download URL smiles_fp-0.3.3.2024.3.6-cp312-cp312-manylinux_2_39_x86_64.whl
Size 432.9 kB
Tags CPython 3.12 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
90f47c6240f615c01e1eb127194bc82eab516d0fd9134ee1c16f4dfff6696527
BLAKE2b-256 checksum
How to use checksums
32b46b92f36ff3a006ef717a19f7ccab3d3b2edadb48445137fbfd2489f07dd3
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp312-cp312-manylinux_2_34_aarch64.whl
Size 402.1 kB
Tags CPython 3.12 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
d5ba352ab97bd1e94e34e7fc18674f98cd24a83a80f0cb701e4ae6594186da87
BLAKE2b-256 checksum
How to use checksums
6b75cebfb33551ff6702ab33f40ecf0c9d80ff06f77a62b09471d0b56ba06ab5
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp312-cp312-macosx_11_0_arm64.whl
Size 371.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e0b980b3e7122b130d7f5bcbee57ae640c18538f9224b07125586ea0627fb686
BLAKE2b-256 checksum
How to use checksums
e9fe31cb222bc6db3939e4bd7959d91aff263e74122f4f3692d91e3ca722a4d9
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp311-cp311-manylinux_2_39_x86_64.whl
Size 429.1 kB
Tags CPython 3.11 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
10643500cde3804fb27ef7f85a636160c14c66c65e7c98574e78d81762831a94
BLAKE2b-256 checksum
How to use checksums
404a11b07f3722454b752f3b19acc20de0616cbc63926a3fadf64ba46e2dc18b
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp311-cp311-manylinux_2_34_aarch64.whl
Size 399.9 kB
Tags CPython 3.11 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
b2cdf0b884b096e74d23413a4ed2f2098e7e4b08196822ed7fe0da36116f001a
BLAKE2b-256 checksum
How to use checksums
756c780319d8d6450a9daaa6ce94c93e8b42132fba2bc9dcd0cd5b3233314e47
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp311-cp311-macosx_11_0_arm64.whl
Size 372.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0fa70e2d88b84876e5d180b339ffc29f4d704008d98ec3fa7446417784bc746a
BLAKE2b-256 checksum
How to use checksums
bd71389e6f9948f5a03b66b19e564067a2fca0fec821d5dad25cdc942fa1aee8
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp310-cp310-manylinux_2_39_x86_64.whl
Size 429.3 kB
Tags CPython 3.10 Linux glibc 2.39+ x86-64
SHA-256 checksum
How to use checksums
00719125daaaa284b2bcef389e7662beb56ddcc12ed8d099603d9ac3ea54555f
BLAKE2b-256 checksum
How to use checksums
277e561d434d653f9f1bb8b453ef9e30b412e28a95e0ad3e8390588b9e8c5c64
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp310-cp310-manylinux_2_34_aarch64.whl
Size 400.0 kB
Tags CPython 3.10 Linux glibc 2.34+ ARM64
SHA-256 checksum
How to use checksums
bfcf77f919ff460891e2f94c1284cd32eb37eefaaa5af800872696de70459d1d
BLAKE2b-256 checksum
How to use checksums
1af278a956bd867ed825a209b88cb3a783233efc8932dcf7b11415cacc8b4dc8
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 17, 2026.

Transparency log

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

Download URL smiles_fp-0.3.3.2024.3.6-cp310-cp310-macosx_11_0_arm64.whl
Size 372.7 kB
Tags CPython 3.10 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
25298e8f1e00f0dc3f944b7bd8d9de44c6ccb3c249a0034637ecd1634014b9a2
BLAKE2b-256 checksum
How to use checksums
589eaa7c160c8cf69637f60b5652d52daa102acbb2b7aca8a000be4fc7ab49c8
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 17, 2026.

Transparency log

Security for smiles-fp 0.3.3.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.3.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 17, 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