Skip to main content

Simple per-model log models for Django apps.

Build Status Coverage Status Documentation Status

Compatibility

  • Django 2.2+, 3.0+

  • Python 3.6+

Basic Usage

from django.db import models
from analog import define_log_model

class MyModel(models.Model):
    value = models.IntegerField(default=0)

MyModelLogEntry = define_log_model(MyModel)

m = MyModel.objects.create(value=42)
m.add_log_entry('Something occurred')
assert m.log_entries.last().message == 'Something occurred'

Development

pip install -e .
pip install -r requirements-dev.txt

Tests

py.test

Documentation

sphinx-build -b html docs docs/_build

Release files for django-analog 2.0.0

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

Source distribution (sdist)

Source distribution for django-analog 2.0.0
File Size Uploaded
django-analog-2.0.0.tar.gz 6.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-analog 2.0.0
File Interpreter ABI Platform
django_analog-2.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / django-analog-2.0.0.tar.gz

Download URL django-analog-2.0.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
383eaa6e164e2128d12b544f6961648adcf368256ae43efeaf73dfca6b3c1d33
BLAKE2b-256 checksum
How to use checksums
1c3199c546abb6efbb1e17d3b2ea3a84f43646760fe486a439118318d9af495f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

Release files / django_analog-2.0.0-py3-none-any.whl

Download URL django_analog-2.0.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
711a24dd28e5897a0d33d8c79035092116bef05f0e6ec3865c8f51999c774d2e
BLAKE2b-256 checksum
How to use checksums
cd4a542cea1f37a0a37f1ad7697632b74c0ef55ca209d9996e3a550be9da0913
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

Release history Release notifications | RSS feed

This release

2.0.0 This release

2 release files

1.0.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.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