# pik-django-utils #
This project aim is to provide common django project utils and tools
for all PIK django projects.
It should provide guidance and tool recommendations for documentation,
testing, etc.
This project is a part of `django-service-boilerplate`.
## Versioning ##
We use semantic versioning MAJOR.MINOR.MAINTENANCE scheme, where the project author increments:
- MAJOR version when they make incompatible API changes,
- MINOR version when they add functionality in a backwards-compatible manner, and
- MAINTENANCE version when they make backwards-compatible bug fixes.
# PACKAGES #
- `pik.core` - Django specific staff
- `pik.libs` - Django specific modules and libraries
- `pik.utils` - not Django specific small utils and goodness
## pik.core ##
- `pik.core.models` - Abstract Django models for common use cases
- `pik.core.models.fields` - common model fields
- `pik.core.tests` - Testing helpers
- `pik.core.shortcuts` - Django code shortcuts and missed helpers
- `pik.core.cache` - Cache helpers
### pik.core.models ###
- `BasePHistorical` / `BaseHistorical` - Base Historical Entity models
- `NullOwned` / `Owned` - Models for user relation
- `SoftDeleted` - Soft deletable model
### pik.core.models.fields ###
- `InheritPrimaryUidField` - Allows you to save the same UID Identifier for child table in inherited tables as in parent table
### pik.core.tests ###
- `create_user` / `get_user` - user fixtures
### pik.core.shortcuts ###
- `get_object_or_none(model: Type[models.Model], **search_keys) -> Optional[models.Model]`
- `validate_and_create_object(model: Type[models.Model], **kwargs) -> models.Model`
- `validate_and_update_object(obj: models.Model, **kwargs) -> Tuple[models.Model, bool]`
- `update_or_create_object(model: Type[models.Model], search_keys: Optional[dict] = None, **kwargs) -> Tuple[models.Model, bool, bool]`
- `get_current_request() -> Optional[HttpRequest]`
## pik.libs ##
...
## pik.utils ##
- `pik.utils.normalization` - text normalization helpers
### pik.utils.normalization ###
- `normalize(text: str) -> str`
- `company_name_normalization(name: str) -> str`
---
- [x] Follow https://packaging.python.org/
- [x] Create `release.sh` file
- [ ] Generate Django common settings
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共75个文件
py:60个
txt:6个
md:3个
资源分类:Python库 所属语言:Python 资源全名:pik-django-utils-2.0.3.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
pik-django-utils-2.0.3.tar.gz (75个子文件)
pik-django-utils-2.0.3
MANIFEST.in 318B
PKG-INFO 4KB
requirements.dev.txt 509B
docs
soft_deleted
soft_deleted_doc.md 6KB
test_core_models_fields
models
__init__.py 28B
base.py 805B
tests
test_models_base.py 2KB
__init__.py 0B
__init__.py 0B
data
example.cfg 0B
pik
core
models
dated.py 419B
fields
inheritance.py 2KB
__init__.py 93B
__init__.py 400B
_collector_delete.py 5KB
soft_deleted.py 6KB
historized.py 202B
versioned.py 2KB
owned.py 657B
base.py 424B
uided.py 983B
tests
fixtures.py 1KB
__init__.py 83B
shortcuts
request.py 233B
model_objects.py 4KB
__init__.py 346B
__init__.py 0B
cache.py 3KB
__init__.py 0B
utils
normalization.py 2KB
__init__.py 0B
libs
__init__.py 0B
test_project
__init__.py 231B
settings.py 3KB
urls.py 123B
celery.py 767B
LICENSE 1KB
setup.cfg 67B
requirements.txt 134B
test_core_models
models
dated.py 67B
soft_deleted3.py 1KB
__init__.py 293B
soft_deleted1.py 2KB
soft_deleted2.py 2KB
historized.py 82B
versioned.py 157B
owned.py 119B
base.py 164B
uided.py 110B
tests
test_models_dated.py 719B
test_models_base.py 2KB
test_models_soft_deleted1.py 12KB
test_models_soft_deleted2.py 6KB
factories.py 1KB
test_models_historized.py 1KB
test_models_uided.py 817B
test_models_versioned.py 1KB
__init__.py 0B
test_models_owned.py 1KB
test_models_soft_deleted3.py 7KB
__init__.py 0B
setup.py 3KB
CHANGELOG.md 4KB
README.md 2KB
pik_django_utils.egg-info
PKG-INFO 4KB
requires.txt 542B
SOURCES.txt 2KB
top_level.txt 78B
dependency_links.txt 1B
test_core_shortcuts
models
__init__.py 28B
base.py 500B
tests
factories.py 894B
__init__.py 0B
test_model_objects_shortcuts.py 6KB
__init__.py 0B
共 75 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 20240420-扬州高中小学部风雨操场转换层条件图r.dwg
- 小猫咪邮件在线发送系统源码v1.1,支持添加附件
- 永磁电机铜耗估算表-Excel-v1.0
- 参考资料-人工智能对劳动力市场的影响机制研究.pdf
- 协同供应链集成产品介绍V71sp1.rar
- 上市公司-人工智能的采纳程度面板数据(2003-2021年).xlsx
- 参考资料-人工智能技术应用对就业的影响及作用机制研究-来自制造业企业的微观证据.pdf
- 第5章spring-mvc请求映射处理
- 2023-04-06-项目笔记 - 第一百十六阶段 - 4.4.2.114全局变量的作用域-114 -2024.04.27
- 协同供应链集成产品介绍V70.rar
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功