Bump Neurobagel data dictionaries
bump-dictionary is a tool to help migrate your existing Neurobagel data dictionaries to the latest data dictionary schema.
Installation
bump-dictionary currently works with Python 3.10+, and can be installed from PyPI using pip:
-
(Recommended) Create and activate a Python virtual environment (using a tool such as venv).
-
Install the
bump-dictionarypackage into your virtual environment:pip install bump-dictionary
Usage
To upgrade a Neurobagel data dictionary in your current directory named my_old_dictionary.json, run in your terminal:
bump-dictionary my_legacy_dictionary.json
By default, the updated data dictionary file will be saved to ./updated_dictionary.json.
For full CLI help, run:
bump-dictionary -h
Development environment
Setting up a local development environment
-
Clone the repository
git clone https://github.com/neurobagel/bump-dictionary.git cd bump-dictionary
-
Install the CLI and all development dependencies in editable mode:
pip install -e ".[dev]"
Confirm that everything works well by running the tests:
pytest .
Setting up code formatting and linting (recommended)
pre-commit is configured in the development environment for this repository, and can be set up to automatically run a number of code linters and formatters on any commit you make according to the consistent code style set for this project.
Run the following from the repository root to install the configured pre-commit "hooks" for your local clone of the repo:
pre-commit install
pre-commit will now run automatically whenever you run git commit.
Updating dependencies
If new runtime or development dependencies are needed, add them to pyproject.toml using minimal version constraints.
Metadata
Release files for bump-dictionary 0.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 | |
|---|---|---|---|
| bump_dictionary-0.1.0.tar.gz | 14.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| bump_dictionary-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.6 kB
Release files / bump_dictionary-0.1.0.tar.gz
| Download URL | bump_dictionary-0.1.0.tar.gz |
|---|---|
| Size | 14.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6d33abed6df485490775a1e88d66e14a7e904876f50c733df6cd0fa2e13105a0
|
|
BLAKE2b-256 checksum How to use checksums |
ae1816f0d7e80ead76ed5e35bfb74370a477880316e1b45b67af3689b542daf1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|
Release files / bump_dictionary-0.1.0-py3-none-any.whl
| Download URL | bump_dictionary-0.1.0-py3-none-any.whl |
|---|---|
| Size | 13.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f98b4ff2f684f8cf67f407f2822c2fe81bae35a9ee8390de247ef6c1fbd45fa6
|
|
BLAKE2b-256 checksum How to use checksums |
1ec712edf9c53bf3cc2fbb17fd7e09ef74e7f1cdd727c1afa4d7a0161acd74a6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.10.18
|