modelarchive - The ModelArchive Python package
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-pushto.git/hooks/for version number checks - best install the package to get all requirements resolved
- run pytest as
python3 -m pytest [-s](pytestwill be installed with[dev]) - for unit test coverage, run
python3 -m pytest --cov-report=term-missing --cov=modelarchive [-s] - in the
doc/subdirectory, runmake htmlto create the documentation - in the
doc/subdirectory, runmake doctestto run Doctests - updating the package on PyPi happens via our CI/CD pipeline
- merge
devintomain - 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
mainintodev
- merge
- updating the Read the Docs page happens via our CI/CD pipeline
- push to
devto updatelatest - push release tag to update
stable
- push to
Metadata
Release files for modelarchive-py 3.7.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 | |
|---|---|---|---|
| modelarchive_py-3.7.0.tar.gz | 175.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| modelarchive_py-3.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 298.6 kB
Release files / modelarchive_py-3.7.0.tar.gz
| Download URL | modelarchive_py-3.7.0.tar.gz |
|---|---|
| Size | 175.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15f39640bb44bd400e67791b156b5bd21b863d5e2f1b059c0ea1247b2f93c4c0
|
|
BLAKE2b-256 checksum How to use checksums |
8946ec8f15066ed64134a5891636e6397428d0386a4906086ac056880c7e4139
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|
Release files / modelarchive_py-3.7.0-py3-none-any.whl
| Download URL | modelarchive_py-3.7.0-py3-none-any.whl |
|---|---|
| Size | 123.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c1edb44af65524b3f4ccdb2a854b423f2f2f713c605e9a52ab0c0d27f79a394
|
|
BLAKE2b-256 checksum How to use checksums |
4b354be3f008be0cd7cc47a77aae379202c96208cd02626d81a99e2b629ad9d5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.13
|