A Python package packed with tools that are commonly used in Moose projects.
Project description
Moose Frank
A Python package packed with tools that are commonly used in Moose projects.
Development
See the CONTRIBUTING guide.
Installation
pip install moose-frank
Local testing
isort
docker-compose run --rm --no-deps python isort [module/path] [options]
flake8
docker-compose run --rm --no-deps python flake8 [module/path]
black
docker-compose run --rm --no-deps python black [module/path]
pytest
docker-compose run --rm --no-deps python coverage run ./runtests.py
Translations
Updating translations
docker-compose run --rm --no-deps manage makemessages -l nl --no-wrap --no-location --no-obsolete
docker-compose run --rm --no-deps manage compilemessages
Google Cloud storage retry patch
Add the following to your main django app to apply the patch.
from django.apps import AppConfig
from moose_frank.storages.gcloud_retry_patch import apply_gcloud_retry_patch
class MainConfig(AppConfig):
def ready(self) -> None:
super().ready()
apply_gcloud_retry_patch()
In case you need te revert this patch you can call moose_frank.storages.gcloud_retry_patch.revert_gcloud_retry_patch
.
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
moose-frank-7.4.tar.gz
(19.7 kB
view hashes)