Skip to main content

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_valueto_representation 方法。
  • EmbeddedField:处理嵌入式字段,也提供了 to_internal_valueto_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

rest_framework_djongo-0.1.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rest_framework_djongo-0.1.6-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file rest_framework_djongo-0.1.6.tar.gz.

File metadata

  • Download URL: rest_framework_djongo-0.1.6.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

Hashes for rest_framework_djongo-0.1.6.tar.gz
Algorithm Hash digest
SHA256 c78b48e1b6d52161d77740d8b83c87d1631548a2076aa1370f3c5491cb3d3a0f
MD5 c98e7004da3f50de4a676887888432bd
BLAKE2b-256 57d7eece2033e67032fba7c56e0d5d3a5c08248ef280bb6469c040efad61942a

See more details on using hashes here.

File details

Details for the file rest_framework_djongo-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for rest_framework_djongo-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0a67e97ccd7d5d8882d50dade4c4a65b9e0016ec27e4a905b4e3b237eb3fb5ba
MD5 bcce6082595e6c7f832cdb9820f4af11
BLAKE2b-256 4b72d01d4b517f0a786fe39b994e7102ac4123ff1422a57f0f3379b07aad85c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page