OneDep Remote API Library
Prepares data to be deposited into OneDep system through the Deposition API. JSON schemas served remotelly will be used to check metadata in mmCIF files and also check if the local deposition/session has all required files for the chosen experiment type. Checks will be carried before deposition is created on the server and files are uploaded.
Installation
uv add onedep_lib
Quickstart
import onedep_lib as dsp
from onedep_lib.config import DepositConfig
config = DepositConfig.load()
with dsp.deposit_init(
email="depositor@example.org",
users=["0000-0002-5109-8728"], # ORCID IDs
country=dsp.Country.USA,
experiment_type=dsp.ExperimentType.XRAY,
config=config,
) as dep:
dep.add_file("model.cif", dsp.FileType.MMCIF_COORD)
dep.add_file("data-sf.cif", dsp.FileType.CRYSTAL_STRUC_FACTORS)
report = dep.check_required_files()
if not report.ok:
for issue in report.errors():
print(issue.message)
dep_id = dep.deposit()
print(dep.get_status())
Documentation
Full documentation — configuration, authentication, the complete deposition workflow, and API reference — is at https://wwPDB.github.io/onedep_lib/.
- Preview locally:
just docs-serve(serves at http://localhost:8000) - Build:
just docs-build
Docs deploy automatically on push to main via GitHub Actions.
Development
Run tests:
uv run pytest
Run quality checks (format, lint, type check, test):
just qa
Metadata
Release files for onedep-lib 1.1.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 | Actions |
|---|---|---|---|---|
| onedep_lib-1.1.0.tar.gz | 166.7 kB | Without provenance | Details for onedep_lib-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onedep_lib-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for onedep_lib-1.1.0-py3-none-any.whl |
Total release size: 209.7 kB
Release files / onedep_lib-1.1.0.tar.gz
| Download URL | onedep_lib-1.1.0.tar.gz |
|---|---|
| Size | 166.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebb39004bd137a9d6650600077269f25491bbaeca2018c173e58715df30d0bce
|
|
BLAKE2b-256 checksum How to use checksums |
9ad6f82ac017c866953bc46be2c00fc362e47cf611879d209138347b66c0f0f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Release files / onedep_lib-1.1.0-py3-none-any.whl
| Download URL | onedep_lib-1.1.0-py3-none-any.whl |
|---|---|
| Size | 42.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ddbddb4916f535510cbcfdecc22decfc57017898f002cce8be1d6ff4adfb870b
|
|
BLAKE2b-256 checksum How to use checksums |
5cfcdfe594990fbb06c7468a0e4cb5d1da4e2e30fa170181ff8c3f83792168bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.7
|
Security for onedep-lib 1.1.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.