Skip to main content

Emtex Common Utils

This contains utility like permissions, audit log etc.

Detailed documentation is in the “docs” directory.

How to install

  1. Using pip:

    pip install emtex_common_utils==0.3
        or
    Add emtex_common_utils==0.3 in your requirements.txt file and then run:
    pip install -r requirements.txt

Quick start

  1. Add “emtex_common_utils” to your INSTALLED_APPS setting like this:

    INSTALLED_APPS = [
        ...
        'emtex_common_utils',
    ]

Things available

  1. Database Migrations:

    python manage.py emtex_migrate --for_date="YYYY-MM-DD"
  2. Logging:

    from emtex_common_utils.models import BaseModel, BaseLogModel
    from emtex_common_utils.mixins import BaseModelMixin
    
    ...
    
    
    class MyModelLog(BaseLogModel):
        """ Model to log changes for model MyModel """
        pass
    
    
    class MyModel(BaseModel, BaseModelMixin):
        """ Model which changes needs to be tracked. """
    
        class Meta:
            log_fields = (
                my_field1, my_field2,
                ...
            )
            log_model_name = MyModelLog

Metadata

Release files for emtex_common_utils 0.4

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

Source distribution (sdist)

Source distribution for emtex_common_utils 0.4
File Size Uploaded
emtex_common_utils-0.4.tar.gz 5.4 kB Details

Release files / emtex_common_utils-0.4.tar.gz

Download URL emtex_common_utils-0.4.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
fd657921a7cb095a0d0ca277ce0057570b95dfac61dd44044053d471f23034ef
BLAKE2b-256 checksum
How to use checksums
c09d356ea00e2888b35ef63d6be93650b709eb0d956ff9f99224de957147442f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.4 This release

1 release file

0.3

1 release file

0.2

1 release file

0.1

1 release file

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