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.

Release files for tg-utils 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tg-utils 1.0.3
File Size Uploaded
tg_utils-1.0.3.tar.gz 16.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tg-utils 1.0.3
File Interpreter ABI Platform
tg_utils-1.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 41.3 kB

Release files / tg_utils-1.0.3.tar.gz

Download URL tg_utils-1.0.3.tar.gz
Size 16.1 kB
Tags Source
SHA-256 checksum
How to use checksums
f8c810bd428ac81671b817e5d6a862f9ae081d48396401cf5fc3e1025d178605
BLAKE2b-256 checksum
How to use checksums
5ab9ad85a83ddf6cdde8ac2490b202b689b7d4cf043a801bc432c5125c79396c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

Release files / tg_utils-1.0.3-py3-none-any.whl

Download URL tg_utils-1.0.3-py3-none-any.whl
Size 25.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dd05dcec2703964054c8d8e5c3af77688771da08c63fa550edacd0e8b1897e75
BLAKE2b-256 checksum
How to use checksums
2925858951a933da2b8f21fb0e7453425faadacf71c70559138f17b1f04e3b76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.3.2 CPython/3.11.14 Linux/6.14.0-1017-azure

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.7.7

2 release files

0.7.6

2 release files

0.7.5

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page