Skip to main content

Bump Neurobagel data dictionaries

Main branch checks status Tests status Codecov Python versions static License PyPI - Version

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:

  1. (Recommended) Create and activate a Python virtual environment (using a tool such as venv).

  2. Install the bump-dictionary package 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

  1. Clone the repository

    git clone https://github.com/neurobagel/bump-dictionary.git
    cd bump-dictionary
    
  2. 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)

Source distribution for bump-dictionary 0.1.0
File Size Uploaded
bump_dictionary-0.1.0.tar.gz 14.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bump-dictionary 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page