https://github.com/thorgate/tg-utils
Common utils for Django-based projects.
https://github.com/thorgate/tg-utils
Last synced: 9 months ago
JSON representation
Common utils for Django-based projects.
- Host: GitHub
- URL: https://github.com/thorgate/tg-utils
- Owner: thorgate
- License: isc
- Created: 2016-01-10T18:28:01.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-03-04T15:05:09.000Z (over 2 years ago)
- Last Synced: 2025-07-20T12:25:08.163Z (11 months ago)
- Language: Python
- Size: 257 KB
- Stars: 7
- Watchers: 7
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
===============================
tg-utils
===============================
.. image:: https://img.shields.io/pypi/v/tg-utils.svg
:target: https://pypi.python.org/pypi/tg-utils
.. image:: https://github.com/thorgate/tg-utils/actions/workflows/python-package.yml/badge.svg?branch=master
:target: https://github.com/thorgate/tg-utils/actions
.. image:: https://readthedocs.org/projects/tg-utils/badge/?version=latest
:target: https://readthedocs.org/projects/tg-utils/?badge=latest
:alt: 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.
* Free software: ISC license
* Documentation: https://tg-utils.readthedocs.org.
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.
.. _Cookiecutter: https://github.com/audreyr/cookiecutter
.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage