Python Boilerplate contains all the boilerplate you need to create a Python package.
Project description
Graph Family
py-gram is the Graph Family package. It is based on py-grim
How to develop on the project locally:
- Make sure the following pre-requites are installed.
gitpython >= 3.8- build tools eg
make
- Clone the repository locally
git clone git@github.com:nmdp-bioinformatics/py-gram.git cd py-gram
- Make a virtual environment and activate it, run
make venv> make venv python3 -m venv venv --prompt urban-potato-venv ===================================================================== To activate the new virtual environment, execute the following from your shell source venv/bin/activate
- Source the virtual environment
source venv/bin/activate
- Development workflow is driven through
Makefile. Usemaketo list show all targets.> make clean remove all build, test, coverage and Python artifacts clean-build remove build artifacts clean-pyc remove Python file artifacts clean-test remove test and coverage artifacts lint check style with flake8 behave run the behave tests, generate and serve report pytest run tests quickly with the default Python test run all(BDD and unit) tests coverage check code coverage quickly with the default Python dist builds source and wheel package docker-build build a docker image for the service docker build a docker image for the service install install the package to the active Python's site-packages venv creates a Python3 virtualenv environment in venv activate activate a virtual environment. Run `make venv` before activating. - Install all the development dependencies. Will install packages from all
requirements-*.txtfiles.make install
- The Gherkin Feature files, step files and pytest files go in
testsdirectory:tests |-- features | |-- algorithm | | `-- SLUG\ Match.feature | `-- definition | `-- Class\ I\ HLA\ Alleles.feature |-- steps | |-- HLA_alleles.py | `-- SLUG_match.py `-- unit `-- test_gram.py - Package Module files go in the
gramdirectory.gram |-- __init__.py |-- algorithm | `-- match.py |-- model | |-- allele.py | `-- slug.py `-- gram.py - Run all tests with
make testor different tests withmake behaveormake pytest.make behavewill generate report files and open the browser to the report. - Use
python app.pyto run the Flask service app in debug mode. Service will be available at http://localhost:8080/ - Use
make docker-buildto build a docker image using the currentDockerfile. make dockerwill build and run the docker image with the service. Service will be available at http://localhost:8080/
======= History
0.0.1 (2021-08-25)
- First release on PyPI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
py-grimm-0.0.6.tar.gz
(6.4 kB
view details)
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 py-grimm-0.0.6.tar.gz.
File metadata
- Download URL: py-grimm-0.0.6.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
47f1b0f996c8c6203ffdc64dfee12a20d185467b7697e6f72774bef8579ee078
|
|
| MD5 |
0a6b0e5972a75e2fb2ae541c71fcb775
|
|
| BLAKE2b-256 |
314e98b58536565185e5214a85f130249928717537b709dbb25399efab3461ae
|
File details
Details for the file py_grimm-0.0.6-py2.py3-none-any.whl.
File metadata
- Download URL: py_grimm-0.0.6-py2.py3-none-any.whl
- Upload date:
- Size: 7.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b4ee31b0dc52f2bdd74007f9f5ff04f055779480fe9879433f4d8633b72d342
|
|
| MD5 |
c2d4f858c6f9f67629c0901bbd11eac1
|
|
| BLAKE2b-256 |
83779a3413c730fa5b4667d7d9bdf3adbff2d0d70e83c8700abe665d27210724
|