This is a Python port of the VH-Lab/DID-matlab project.
The did library provides a framework for managing and querying data that is organized into documents and branches. It is designed to be a flexible and extensible system for data management and analysis.
- Document-oriented data model: Data is stored in documents, which are flexible, JSON-like structures.
- Branching and versioning: The library supports branching, allowing you to create and manage different versions of your data.
- Powerful querying: The library provides a rich query language for retrieving documents from the database.
- Extensible architecture: The library is designed to be extensible, allowing you to add new functionality and data types.
- Python 3.10 or later
pipfor installing packages
-
Clone the repository:
git clone https://github.com/your-username/DID-python.git cd DID-python -
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows, use `venv\Scripts\activate`
-
Install the package and dependencies:
pip install -e ".[dev]"
You can run the tests using either pytest (if you installed the development dependencies) or the standard unittest module.
Using pytest (Recommended for development):
pytestUsing unittest (Standard):
python -m unittest discover testsBoth commands will discover and run all the tests in the tests directory.
The documentation for this project is built using mkdocs. To build the documentation, run the following command:
mkdocs buildThe documentation will be generated in the site directory. You can then open the site/index.html file in your web browser to view the documentation.