The NIH OPERA suite of models with Python specific functionality
Project description
pyOPERA
Full python implementation of the NIH OPERA suite of models
docker run -it -v %cd%:/app --rm pyopera_pyopera /bin/bash
docker compose -f docker-compose.yml build
docker run --rm pyopera_pyopera ~/.local/share/pypoetry/venv/bin/poetry run coverage run -m pytest tests
docker build -t cabreratoxy/pyopera:0.0.1 .
poetry run python -m pip install -r requirements.txt
poetry run black . --exclude="docs/"
poetry run isort . --skip docs/
poetry run pylint $(find . -name "*.py" | xargs) --ignore-paths docs/
poetry run pytest tests
poetry run coverage run --source pyopera -m pytest
poetry run coverage report --skip-empty --fail-under=85
poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
docker run --rm pyopera_pyopera /bin/bash -c 'poetry run coverage run -m pytest tests'
TODO: Fully install poetry in the container (maybe use the long name as a variable for now)
TODO: Create CI/CD for package in TestPypi and the prod Pypi (CircleCI maybe?)
~~TODO: Documentation using Sphinx (make sure original repo/builders are credited) ~~
TODO: Start adding the wrapper code and files - in progress
TODO: Benchmarking with airspeed velocity
TODO: Don't repeat the library name in the Dockerfile
TODO: Struggling to run commands inside Docker from the host, will run commands from inside container for now
TODO: Test TestPypi package locally
TODO: Add actual documentation in this readme
TODO: Auto semantic versioning with poetry too
TODO: Create a python package around the Matlab package (the base files) using Poetry
TODO: Formatting/Linting/Coverage
TODO: Choose between Pytest an Unittest
TODO: Automate black, isort, pylint, coverage, pytest on build or push. - just have to finish coverage
TODO: Auto docstring generating? -- used autodocstring extension for vscode
TODO: How to autobuild the base image the CI/CD will work with - could not be done
Full Documentation can be found here
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyopera-0.1.1.tar.gz.
File metadata
- Download URL: pyopera-0.1.1.tar.gz
- Upload date:
- Size: 4.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.15 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fb60d4f7575e6acac284f20723284552afda2cbb59c6b8a29f54c435f207f2e3
|
|
| MD5 |
55bbe3047ba196cb7b897e7a82dd1717
|
|
| BLAKE2b-256 |
d98453586cb5be7f8d7b2e9447caa0c3494371e11c0ab9ad2d87f990213d3ee2
|
File details
Details for the file pyopera-0.1.1-py3-none-any.whl.
File metadata
- Download URL: pyopera-0.1.1-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.2 CPython/3.9.15 Linux/5.10.16.3-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90f995a3f9c5555fba0eea54c711c2581e8b66fe2dce21b30c5fb48ba044c635
|
|
| MD5 |
322e59919b7478cdab3f2e15d5341865
|
|
| BLAKE2b-256 |
1fff23f59228e707232555b5d001cae53dffa8a5c25ed3f50bd0ffce24b2b363
|