معرفی شرکت ها


django-anonymous-0.2.0


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Simple Djanngo module to anonymize production data for safe usage on none production environments
ویژگی مقدار
سیستم عامل -
نام فایل django-anonymous-0.2.0
نام django-anonymous
نسخه کتابخانه 0.2.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Maikel Martens
ایمیل نویسنده maikel@fourdigits.nl
آدرس صفحه اصلی https://github.com/fourdigits/django-anonymous
آدرس اینترنتی https://pypi.org/project/django-anonymous/
مجوز GPL3
# django-anonymous [![CI](https://github.com/krukas/django-anonymous/actions/workflows/main.yml/badge.svg)](https://github.com/krukas/django-anonymous/actions/workflows/main.yml) [![codecov](https://codecov.io/gh/krukas/django-anonymous/branch/master/graph/badge.svg?token=BPQQ1RVKDJ)](https://codecov.io/gh/krukas/django-anonymous) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![PyPI version](https://badge.fury.io/py/django-anonymous.svg)](https://badge.fury.io/py/django-anonymous) Simple Djanngo module to anonymize production data for safe usage on non-production environments. ## Installation pip install django-anonymous ## Usage In your app create a file `anon.py`: ```python from django_anonymous import Anonymizer, Faker, register from .model import YourModel @register(YourModel) class YourModelAnonymizer(Anonymizer): # You can give any callable, Faker is a small wrapper around the `faker` library. email = Faker("email", unique=True) # You can also use any static value first_name = "Anon" ``` Run the anonymizer python manage.py anonymize ## Custom QuerySet You can set a custom QuerySet to filter out some objects ```python from django_anonymous import Anonymizer, Faker, register from .model import YourModel @register(YourModel) class YourModelAnonymizer(Anonymizer): email = Faker("email", unique=True) def get_queryset(self): return super().get_queryset().filter(is_staff=True) ``` ## Settings for Anonymizer Per Anonymizer you can set the select chunk size and update batch size. ```python from django_anonymous import Anonymizer, Faker, register from .model import YourModel @register(YourModel) class YourModelAnonymizer(Anonymizer): SELECT_CHUNK_SIZE = 100 UPDATE_BATCH_SIZE = 25 email = Faker("email", unique=True) ``` ## Inspired by - https://github.com/Tesorio/django-anon - https://github.com/FactoryBoy/factory_boy


نیازمندی

مقدار نام
- Faker


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl django-anonymous-0.2.0:

    pip install django-anonymous-0.2.0.whl


نصب پکیج tar.gz django-anonymous-0.2.0:

    pip install django-anonymous-0.2.0.tar.gz