It is used django + mongodb + djongo + djangorestframework
Project description
rest-framework-djongo
rest-framework-djongo 是一个用于处理 Djongo(Django 和 MongoDB 的集成)相关序列化和视图操作的工具库,帮助开发者更方便地在 Django REST Framework 中使用 MongoDB。
项目信息
- 项目名称:rest-framework-djongo
- 版本:0.1.4
- 作者:vfeng 1914007838@qq.com
- Python 版本要求:>=3.9
功能概述
序列化器
- EmbeddedSerializer:用于处理嵌入式数据的序列化,继承自
GenericDjongoSerializer,并跳过了一些验证器。
字段
- ObjectIdField:处理 MongoDB 的
ObjectId类型数据,提供了to_internal_value和to_representation方法。 - EmbeddedField:处理嵌入式字段,也提供了
to_internal_value和to_representation方法。
视图
- DjongoSearchMixin:重写
get_object方法。
安装
pip install rest-framework-djongo
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rest_framework_djongo-0.1.7.tar.gz.
File metadata
- Download URL: rest_framework_djongo-0.1.7.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a18cb485a4484c891996c706a772001fb4c7021a08ecbc8c8794f90741ea7796
|
|
| MD5 |
7fe94792fa5a5d5cafce04ec4dc5c90e
|
|
| BLAKE2b-256 |
9417bfed82a9d868bb888ef983c6ffc7ad679fda768da0eaa7714be92b8d60c5
|
File details
Details for the file rest_framework_djongo-0.1.7-py3-none-any.whl.
File metadata
- Download URL: rest_framework_djongo-0.1.7-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.0.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1bc5bd6c05c919b3f920acd7f721d98bc216d6afed80724474dc2708b57d28c6
|
|
| MD5 |
72932f9fa7990eb4d2af8f10e0a53e2f
|
|
| BLAKE2b-256 |
38d0628c7926c85fe928f642a5a1df3de00952c07e738738a196fe9db849802d
|