deposit-python
Python driver for Deposit - Graph database for scientific data collection
Downloads & Community Adoption
Health & Engineering Analysis (5 Pillars)
1. Governance & Community50 / 200 ▾
2. PEP Metadata & Packaging200 / 200 ▾
3. Security & Supply Chain150 / 200 ▾
4. Documentation, SEO & Ecosystem155 / 200 ▾
5. Engineering, CI & Quality35 / 200 ▾
Official Documentation & Usage Guide — deposit-python
Show full original documentation (English README) ▾
deposit-python
deposit-python is the synchronous Python wrapper for Deposit. The Python distribution is named deposit-python and the import is deposit. It gives Python applications access to the scientific records, relationships, and attached files managed by deposit-server.
Features
- Connections and sessions.
Clientuses a Neo4j driver to discover the server and open independently authenticatedStoresessions. Each Store works in one Namespace. - Python records and values.
DClassandDObjectrepresent Classes and Objects.DGeometryandDResourcerepresent spatial values and attached files. - Relationships. Directed, labeled links connect Classes to Classes and Objects to Objects.
- Queries and edits. Run Deposit Query Language queries, page through large results, and group related edits into atomic batches. Revision checks identify conflicting changes.
- Import and exchange. Import data using Patterns, move portable packages between Stores, clone Namespaces, and convert graphs to and from NetworkX. Inspect import plans before applying changes.
- Files and tracked operations. Transfer files through verified streams, inspect operation outcomes, and request cancellation. Use
Store.call()to access additional server procedures.
Platform
The current support target is Python 3.14 on Windows x64 with Deposit Server 2.0.1. Pip installs the Neo4j Python driver and NetworkX as dependencies.
Getting started
From a full Git checkout, follow the quickstart to install the wrapper, open a Store, and query the Deposit Server sample data. If you need a server, follow the Deposit Server 2.0.1 checkout instructions.
For a local wheel or a published 2.x package, see the quickstart installation options. The wrapper generates operation IDs for tracked calls. See operation IDs to choose an ID before submission and look up the outcome.
See the Python API reference for wrapper behavior.
Build the release wheel
On Windows x64, open PowerShell at the root of a clean, full Git checkout. Check out the release commit with its stable X.Y.Z tag, such as 2.0.1. Use a fresh build directory alongside the checkout.
py -3.14 -m venv ..\deposit-python-release\venv
..\deposit-python-release\venv\Scripts\python.exe -m pip install build
..\deposit-python-release\venv\Scripts\python.exe -m build --wheel --outdir ..\deposit-python-release\dist
The builder writes the wheel to the sibling build directory. The wheel version comes from the Git tag. The wheel contains the wrapper and its procedure catalog, and pip resolves the runtime dependencies during installation.
Citation
Please use this citation when referencing the software.
Demján, P. (2026). deposit-python [Computer software]. GitHub repository.
Acknowledgements
Funding for the server component is listed in the Deposit Server acknowledgements.
Contact
Peter Demján ([email protected])
Institute of Archaeology of the Czech Academy of Sciences, Prague, v.v.i.
License
Distributed under the MIT License. See the repository’s LICENSE file.