Skip to main content

Python Boilerplate contains all the boilerplate you need to create a Python package.

Project description

python_boilerplate

Python Boilerplate (python_boilerplate)

Daily CI Build Documentation

This is a test repo.

Documentation

For more detailed instructions, see our documentation.

Installation

To install python_boilerplate (indexed online as bryn_python_boilerplate), we recommend using the mamba package manager:

As a user

mamba create -n python_boilerplate -c conda-forge -c brynpickering bryn_python_boilerplate
mamba activate python_boilerplate

As a developer

git clone git@github.com:brynpickering/python_boilerplate.git
cd python_boilerplate
mamba create -n python_boilerplate -c conda-forge --file requirements/base.txt --file requirements/dev.txt
mamba activate python_boilerplate
pip install --no-deps -e .

For more detailed instructions, see our documentation.

Contributing

There are many ways to contribute to python_boilerplate. Before making contributions to the python_boilerplate source code, see our contribution guidelines and follow the development install instructions.

If you plan to make changes to the code then please make regular use of the following tools to verify the codebase while you work:

  • pre-commit: run pre-commit install in your command line to load inbuilt checks that will run every time you commit your changes. The checks are: 1. check no large files have been staged, 2. lint python files for major errors, 3. format python files to conform with the pep8 standard. You can also run these checks yourself at any time to ensure staged changes are clean by simple calling pre-commit.
  • pytest - run the unit test suite and check test coverage.
  • pytest -p memray -m "high_mem" --no-cov (not available on Windows) - after installing memray (mamba install memray pytest-memray), test that memory and time performance does not exceed benchmarks.

For more information, see our documentation.

Building the documentation

If you are unable to access the online documentation, you can build the documentation locally. First, install a development environment of python_boilerplate, then deploy the documentation using mike:

mike deploy develop
mike serve

Then you can view the documentation in a browser at http://localhost:8000/.

Credits

This package was created with Cookiecutter and the arup-group/cookiecutter-pypackage project template.

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

bryn_python_boilerplate-0.1.4.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

bryn_python_boilerplate-0.1.4-py3-none-any.whl (5.0 kB view details)

Uploaded Python 3

File details

Details for the file bryn_python_boilerplate-0.1.4.tar.gz.

File metadata

File hashes

Hashes for bryn_python_boilerplate-0.1.4.tar.gz
Algorithm Hash digest
SHA256 05b6d72a942feaf29c7d1b7ceac3c9191eeb99031e301f8cdbbf09f44628802d
MD5 282eff6f82634163eadf1fde2c08f2eb
BLAKE2b-256 0e1f359cdb161986416aabac44573db5d203d490e7da182a89624cea04e32299

See more details on using hashes here.

File details

Details for the file bryn_python_boilerplate-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for bryn_python_boilerplate-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 d63d4ffc2645b339503b715a2b2b3a2b5dfd4fb6361a078fbd34377de215bc09
MD5 a6cb7b21caf3744e1301ec7c282c843e
BLAKE2b-256 b11d2bb2481f73bf48efd08c0094295b743371304f61f36f2fc06c482084c805

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page