Skip to main content

Convert Neurobagel data dictionaries to the latest version of the data dictionary schema.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bump_dictionary-0.1.0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bump_dictionary-0.1.0-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

Details for the file bump_dictionary-0.1.0.tar.gz.

File metadata

  • Download URL: bump_dictionary-0.1.0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for bump_dictionary-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6d33abed6df485490775a1e88d66e14a7e904876f50c733df6cd0fa2e13105a0
MD5 8f45d86a1f67a27ac88ecc0f344569fe
BLAKE2b-256 ae1816f0d7e80ead76ed5e35bfb74370a477880316e1b45b67af3689b542daf1

See more details on using hashes here.

File details

Details for the file bump_dictionary-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bump_dictionary-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f98b4ff2f684f8cf67f407f2822c2fe81bae35a9ee8390de247ef6c1fbd45fa6
MD5 df0a39c470e5c6fcb8833a869957913c
BLAKE2b-256 1ec712edf9c53bf3cc2fbb17fd7e09ef74e7f1cdd727c1afa4d7a0161acd74a6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page