Skip to main content

The BAM Data Store utility tools and masterdata models wrapped in a Python package with a front-end web interface.

Project description

BAM Masterdata

CI Status Coverage PyPI versions Python supported versions

The BAM Masterdata is a repository containing all the masterdata schema defining in BAM, as well as some utility functions to handle the masterdata.

If you want to install it, do:

pip install bam-masterdata

In order to include the CLI functionalities, you have to add the optional [dev] dependencies when pip installing the package:

pip install bam-masterdata[dev]

Development

If you want to develop locally this package, clone the project and enter in the workspace folder:

git clone https://git.bam.de/bam-data-store/bam-masterdata.git
cd bam-masterdata

Create a virtual environment (you can use Python>3.9) in your workspace:

python3 -m venv .venv
source .venv/bin/activate

Run the following script:

./scripts/install_python_dependencies

Run the tests

You can locally run the tests by doing:

python -m pytest -sv tests

where the -s and -v options toggle the output verbosity.

You can also generate a local coverage report:

python -m pytest --cov=src tests

Run auto-formatting and linting

We use Ruff for formatting and linting the code following the rules specified in the pyproject.toml. You can run locally:

ruff check .

This will produce an output with the specific issues found. In order to auto-fix them, run:

ruff format . --check

If some issues are not possible to fix automatically, you will need to visit the file and fix them by hand.

Run the local website

Under construction!

Documentation on Github pages

To view the documentation locally, make sure to have installed the extra packages (this is part of the scripts/install_python_dependencies.sh, so if you ran this script before, you don't need to do it again now):

uv pip install -e '[docu]'

The first time, build the server:

mkdocs build

Run the documentation server:

mkdocs serve

The output looks like:

INFO    -  Building documentation...
INFO    -  Cleaning site directory
INFO    -  [14:07:47] Watching paths for changes: 'docs', 'mkdocs.yml'
INFO    -  [14:07:47] Serving on http://127.0.0.1:8000/

Simply click on http://127.0.0.1:8000/. The changes in the md files of the documentation are immediately reflected when the files are saved (the local web will automatically refresh).

Main contributors

The main code developers are:

Name E-mail
Carlos Madariaga carlos.madariaga@bam.de
Dr. Jose M. Pizarro jose.pizarro-blanco@bam.de

The main datamodel developers are:

  • Angela Ariza de Schellenberger
  • Ingo Bressler
  • Rukeia El-Athman
  • Çağtay Fabry
  • Tobias Fritsch
  • Ralf Herrmann
  • Zoltán Konthur
  • Julius Kruse
  • Pavlina Kruzikova
  • Tarakeshwar Lakshmipathy
  • Julien Lecompagnon
  • Jan Lisec
  • Mathias Röllig
  • Bastian Rühle

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

bam_masterdata-0.4.1.tar.gz (927.7 kB view details)

Uploaded Source

Built Distribution

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

bam_masterdata-0.4.1-py3-none-any.whl (463.9 kB view details)

Uploaded Python 3

File details

Details for the file bam_masterdata-0.4.1.tar.gz.

File metadata

  • Download URL: bam_masterdata-0.4.1.tar.gz
  • Upload date:
  • Size: 927.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bam_masterdata-0.4.1.tar.gz
Algorithm Hash digest
SHA256 0f95e8f91ed9023c55f0bd0135c49274d44a1035847ac9bb9226973e47752331
MD5 3feda1da16652f042d49d35789b005fd
BLAKE2b-256 c0cfdafa2a9a4cc28ed1fb962688b3f33299e76b5353a13da58d20ed7b32a010

See more details on using hashes here.

File details

Details for the file bam_masterdata-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: bam_masterdata-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 463.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for bam_masterdata-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e4880352b8c8730090c68a2a191f37c99f66ba8fb706b5714a999339a97c66
MD5 b6df98df96aba7aa009e783b928d5532
BLAKE2b-256 382d04689e67a16c5a9454af860952a07867690576ae8625657bd554870a4144

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