Skip to main content

modelarchive - Functionality around ModelArchive.org & ModelCIF.

Project description

modelarchive - The ModelArchive Python package

https://modelarchive.org/

modelarchive collects all Python functionality developed for ModelArchive in a single package - essentially the “Everything ModelArchive” toolkit.

Yes, the name is a bit long, but ma alone felt too short ;) You can conveniently import it as:

import modelarchive as ma

The package is organised into submodules covering different areas of functionality. Currently available:

  • modelcif: help with editing ModelCIF files, translating from legacy PDB format and extending existing ModelCIf-formatted files

Installation

From PyPI:

pip install modelarchive-py

From source:

git clone https://git.scicore.unibas.ch/schwede/modelarchive-py
cd modelarchive-py
pip install .

For development, to see code changes immediately effective in your environment and to include development tools, run:

 pip install -e ".[dev]"

Versioning

modelarchive follows Semantic Versioning, so you can safely depend on modelarchive-py>=<MAJOR VERSION>.0.0 to get updates without breaking changes.

Documentation

Documentation is kept up to date here. There is the stable version, pointing to the current release, and there is latest, pointing to the dev branch. Older versions of the documentation are also kept available.

Developing ModelArchive

  • consider copying hooks/pre-push to .git/hooks/ for version number checks
  • best install the package to get all requirements resolved
  • run pytest as python3 -m pytest [-s] (pytest will be installed with [dev])
  • for unit test coverage, run python3 -m pytest --cov-report=term-missing --cov=modelarchive [-s]
  • in the doc/ subdirectory, run make html to create the documentation
  • in the doc/ subdirectory, run make doctest to run Doctests
  • updating the package on PyPi happens via our CI/CD pipeline
    • merge dev into main
    • edit CHANGELOG.md
    • push a tag of form <Major>.<Minor>.<Bugfix>
    • runs the release pipeline to create a package on PyPi and a release in GitLab
    • merge main into dev
  • updating the Read the Docs page happens via our CI/CD pipeline
    • push to dev to update latest
    • push release tag to update stable

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

modelarchive_py-3.4.0.tar.gz (119.6 kB view details)

Uploaded Source

Built Distribution

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

modelarchive_py-3.4.0-py3-none-any.whl (89.4 kB view details)

Uploaded Python 3

File details

Details for the file modelarchive_py-3.4.0.tar.gz.

File metadata

  • Download URL: modelarchive_py-3.4.0.tar.gz
  • Upload date:
  • Size: 119.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for modelarchive_py-3.4.0.tar.gz
Algorithm Hash digest
SHA256 3a92b333730983257b728fa568155b4c9ce9f8c20190ad7fab84fa4d1223b557
MD5 366e8704bb48dceec79e946e16cd3c02
BLAKE2b-256 a3f5a3ac354168b4e017430779b61ffbde89c58bd3ab94a19a0a0174064a952a

See more details on using hashes here.

File details

Details for the file modelarchive_py-3.4.0-py3-none-any.whl.

File metadata

File hashes

Hashes for modelarchive_py-3.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d013ca755ef72c36e92b195600b167fdcb2147a47244e7a3e5ec65eec615f20c
MD5 aa06ae207ca1bb972f73b2dd9adf1417
BLAKE2b-256 81caaf4d5f2afed46b28dfad7b49be07ade30845bec3d5635387d11b1b44c157

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