Skip to main content
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.

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.3.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

tg_utils-1.0.3-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tg_utils-1.0.3.tar.gz
  • Upload date:
  • Size: 16.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for tg_utils-1.0.3.tar.gz
Algorithm Hash digest
SHA256 f8c810bd428ac81671b817e5d6a862f9ae081d48396401cf5fc3e1025d178605
MD5 878da4b4704383c15988c48f00da731b
BLAKE2b-256 5ab9ad85a83ddf6cdde8ac2490b202b689b7d4cf043a801bc432c5125c79396c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tg_utils-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 25.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

File hashes

Hashes for tg_utils-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 dd05dcec2703964054c8d8e5c3af77688771da08c63fa550edacd0e8b1897e75
MD5 dadfb86bd460d9a8619203dfb02feaca
BLAKE2b-256 2925858951a933da2b8f21fb0e7453425faadacf71c70559138f17b1f04e3b76

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.7.7

2 files

0.7.6

2 files

0.7.5

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.1

2 files

Supported by

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