Skip to main content

Common utils for Django-based projects.

Project description

https://img.shields.io/pypi/v/tg-utils.svg https://github.com/thorgate/tg-utils/actions/workflows/python-package.yml/badge.svg?branch=master Documentation Status

Collection of various utils for Django-based projects.

This is code that we’re using in our projects at Thorgate and we’re hoping you’ll find some of it useful as well.

Features

  • Model utils, e.g. timestamped and closable models, QuerySets that send out a signal when objects are modified.

  • Templated email sending.

  • Profiling utilities.

  • Unique filename generation for uploads.

  • Using hashids for models (instead of exposing primary keys).

  • System checks for email and Sentry configuration.

  • Mixin for easier implementation of ordering in Django’s generic ListView.

  • Mixin for making admin view read-only.

  • Decorator for annotating admin methods.

  • JS/CSS compressors for Django Compressor.

  • Health-check endpoints (with and without token authentication)

Credits

This package was created with Cookiecutter and the audreyr/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

tg_utils-1.0.2.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

tg_utils-1.0.2-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file tg_utils-1.0.2.tar.gz.

File metadata

  • Download URL: tg_utils-1.0.2.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for tg_utils-1.0.2.tar.gz
Algorithm Hash digest
SHA256 3825ce447cbc4d8f8377a376af36856ca03d9b67bf06d34feffb26e51b540c14
MD5 37d7b81cbdca0858e54ed29e80dfa43f
BLAKE2b-256 3ea4b1ec16d9588bb3119f8141b89daeaa1f784e20f2940462454a4f3fedf7fa

See more details on using hashes here.

File details

Details for the file tg_utils-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: tg_utils-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 24.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.8 Linux/6.5.0-1015-azure

File hashes

Hashes for tg_utils-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 88eb5f86bb163d310878d402cc6afb3482ef2f16ef4a99dfa8f9e052eb5ed65a
MD5 7680b1dfff9dd0e3b146fb29c0c9c860
BLAKE2b-256 92487a4fa0d234ef29e20a4ec8a3a3006388ad90bee4ac8a87a86df83a635570

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