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 Links
Continuos Integration - https://circleci.com/gh/unicef/unicef-snapshot/tree/develop
Source Code - https://github.com/unicef/unicef-snapshot
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
Built Distribution
File details
Details for the file unicef_snapshot-1.1.tar.gz
.
File metadata
- Download URL: unicef_snapshot-1.1.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1740c75736d3d921d9cea57c127b02be99bfc37efbf69115f1df81d5c371ec3e |
|
MD5 | afd73e57a849dfa597b372b788a95cdb |
|
BLAKE2b-256 | ee9418e6e20626af990cefd3cd6e3088c8fe77b77310012ae63a23195049e3ec |
File details
Details for the file unicef_snapshot-1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: unicef_snapshot-1.1-py2.py3-none-any.whl
- Upload date:
- Size: 18.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.7.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5645e3c887b108450b138ca87be3c73c45477611660e5056f0ea4b70202734bc |
|
MD5 | ed8b7b363bbd005ea04bf9fd19b4a688 |
|
BLAKE2b-256 | a1399e1c99224cc99ee2ea18ee03c44070621498f5e0c51e9d73b5a0fe45faaf |