Skip to main content

Re-usable utilities for Maykin Django projects, centrally maintained instead of in default-project.

Project description

1 Shared Django utilities

Version:

0.9.0

Build status Code quality checks Ruff Coverage status Documentation Status

python-versions django-versions pypi-version

Re-usable utilities for Maykin Django projects.

Maykin’s Django projects all share a common base: default-project to provide a consistent and recognizable structure accross projects. This library bundles some shared utilities that are common in (most) projects but are too small/specific to warrant a separate library.

maykin-common acts as a vehicle to quickly propagate changes and useful helpers to a large number of projects that would otherwise all have to be updated manually and one-by-one, a labour-intensive task.

What’s up with the name?

A similar utility for the client side exists: https://github.com/maykinmedia/client-common so we wanted to mimick this naming pattern. The NPM package has namespacing: @maykinmedia/client-common, but this doesn’t exist on PyPI, while using django-common as a PyPI package name might just be a bit arrogant.

So, the repository maykinmedia/django-common perfectly covers the contents and purpose of the package, while the PyPI package keeps the imports short and focused: maykin_common, while leaving room for potential future non-Django packages.

2 Installation and usage

See the documentation: https://maykin-django-common.readthedocs.io/en/latest/

3 Local development

To install and develop the library locally, use:

pip install -e .[tests,docs,release,pdf,mfa,axes,vcr]

When running management commands via django-admin, make sure to add the root directory to the python path (or use python -m django <command>):

export PYTHONPATH=. DJANGO_SETTINGS_MODULE=testapp.settings
django-admin check
# or other commands like:
# django-admin makemessages -l nl

Run the tests with:

tox

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

maykin_common-0.9.0.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

maykin_common-0.9.0-py3-none-any.whl (37.7 kB view details)

Uploaded Python 3

File details

Details for the file maykin_common-0.9.0.tar.gz.

File metadata

  • Download URL: maykin_common-0.9.0.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for maykin_common-0.9.0.tar.gz
Algorithm Hash digest
SHA256 e7c9bce970852e799d20a9f390e14ab1877e247dca3d41c7c4bc75c5d0d3d3e1
MD5 c7f568082aa8a71634d4884d27b6a1e4
BLAKE2b-256 19cf2f3527d0449d7e9252a924983ab4040960791fd56f4dc56f7b699ef55ac4

See more details on using hashes here.

Provenance

The following attestation bundles were made for maykin_common-0.9.0.tar.gz:

Publisher: ci.yml on maykinmedia/django-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file maykin_common-0.9.0-py3-none-any.whl.

File metadata

  • Download URL: maykin_common-0.9.0-py3-none-any.whl
  • Upload date:
  • Size: 37.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for maykin_common-0.9.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ad5b221d6a1c87f0e069c46fe3cbe48215fa29da9216a32f806006d383cefaf5
MD5 0c3f376fb395cf4316d38ff791d83f3f
BLAKE2b-256 f6c494435814f0a09a265fc9493d7f29ac45df0d2644466a81897a5e40ae2193

See more details on using hashes here.

Provenance

The following attestation bundles were made for maykin_common-0.9.0-py3-none-any.whl:

Publisher: ci.yml on maykinmedia/django-common

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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