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.

Metadata

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 Provenance Actions
tg_utils-1.0.3.tar.gz 16.1 kB Without provenance Details for tg_utils-1.0.3.tar.gz

Built distribution (wheel)

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

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

Security for tg-utils 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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