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 hashes)

Uploaded source

Built Distribution

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

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page