AtomLite
AtomLite is a Python library for simple molecular database on top of SQLite.
For an alternative to AtomLite, which provides stronger integration with RDKit, and a greater focus on cheminformatics, see chemicalite.
Installation
pip install atomlite
Quickstart
You can see a lot more examples in our docs but here is a taste of using AtomLite:
import atomlite
import rdkit.Chem as rdkit
# Create a database.
db = atomlite.Database("molecules.db")
# Create database entries.
entry1 = atomlite.Entry.from_rdkit("first", rdkit.MolFromSmiles("C"), {"prop1": "hi", "prop2": 100})
entry2 = atomlite.Entry.from_rdkit("second", rdkit.MolFromSmiles("CN"), {"prop1": "thing", "prop2": 203})
# Add entries to database.
db.add_entries([entry1, entry2])
# Retrieve entries from database.
for entry in db.get_entries(["first", "second"]):
molecule = atomlite.json_to_rdkit(entry.molecule)
print(entry.properties)
{'prop1': 'hi', 'prop2': 100}
{'prop1': 'thing', 'prop2': 203}
db.get_property_df(["$.prop1", "$.prop2"])
shape: (2, 3) ┌────────┬─────────┬─────────┐ │ key ┆ $.prop1 ┆ $.prop2 │ │ --- ┆ --- ┆ --- │ │ str ┆ str ┆ i64 │ ╞════════╪═════════╪═════════╡ │ first ┆ hi ┆ 100 │ │ second ┆ thing ┆ 203 │ └────────┴─────────┴─────────┘
Metadata
Release files for atomlite 4.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| atomlite-4.5.0.tar.gz | 86.7 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| atomlite-4.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.6 kB
Release files / atomlite-4.5.0.tar.gz
| Download URL | atomlite-4.5.0.tar.gz |
|---|---|
| Size | 86.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ec67dac050a464dad059aac008cbb0ac16b49c53d1a192739709580b2ba9676
|
|
BLAKE2b-256 checksum How to use checksums |
65ea15d2da0d4ecefba5b6d850ff3dd7401b96c606143db045b78c4516c07ce7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.2
|
Release files / atomlite-4.5.0-py3-none-any.whl
| Download URL | atomlite-4.5.0-py3-none-any.whl |
|---|---|
| Size | 10.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
960bd9eb8d50bcf473d145b1e53e4cbf2f48267125081330e262810bd7baec6c
|
|
BLAKE2b-256 checksum How to use checksums |
eb83aef5f2af1090d6b21782a519e23c4afcde3b8808c16cb84e5b64dbde5d2d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.7.2
|
Security for atomlite 4.5.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.