Skip to main content

Snapshot of data changes in django models

Project description

UNICEF Snapshot

Snapshot is a library that provides snapshot of data changes on django model.

Installation

pip install unicef-snapshot

Setup

Add unicef_snapshot to INSTALLED_APPS in settings.py

INSTALLED_APPS = [

… ‘unicef_snapshot’,

]

Usage

Use unicef-snapshot in serializers

from unicef_snapshot.serializers import SnapshotModelSerializer

class ExampleSerializer(SnapshotModelSerializer):

Contributing

Environment Setup

To install the necessary libraries

$ make install

Coding Standards

See PEP 8 Style Guide for Python Code for complete details on the coding standards.

To run checks on the code to ensure code is in compliance

$ make lint

Testing

Testing is important and tests are located in tests/ directory and can be run with;

$ make test

Coverage report is viewable in build/coverage directory, and can be generated with;

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

unicef_snapshot-1.2.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

unicef_snapshot-1.2-py2.py3-none-any.whl (8.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file unicef_snapshot-1.2.tar.gz.

File metadata

  • Download URL: unicef_snapshot-1.2.tar.gz
  • Upload date:
  • Size: 8.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for unicef_snapshot-1.2.tar.gz
Algorithm Hash digest
SHA256 d7acc5816b3f3bdcb7989ae4c4e847f9e6a4e3506ea9f54d84fe28a09dd8df48
MD5 d8852d23f585f6e33e5829ce30c85625
BLAKE2b-256 fe56c58e82e7abbee433f4ff5fdd6d10b758b828b058232c7600fcb186d32f9e

See more details on using hashes here.

File details

Details for the file unicef_snapshot-1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: unicef_snapshot-1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.9

File hashes

Hashes for unicef_snapshot-1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 4b7b1b409b57bf920c223e6ee9dd2caa258820ca4a8bd87b3b0e1c3dda475f74
MD5 e7cc9aafc6b3f01d3736fc75b03b92a3
BLAKE2b-256 73be7acc34c447b5847b0df318a20ae716d1aee045f395d6aab45d11d6e8422a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page