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.7.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.7-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

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

Hashes for rest_framework_djongo-0.1.7.tar.gz
Algorithm Hash digest
SHA256 a18cb485a4484c891996c706a772001fb4c7021a08ecbc8c8794f90741ea7796
MD5 7fe94792fa5a5d5cafce04ec4dc5c90e
BLAKE2b-256 9417bfed82a9d868bb888ef983c6ffc7ad679fda768da0eaa7714be92b8d60c5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rest_framework_djongo-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc5bd6c05c919b3f920acd7f721d98bc216d6afed80724474dc2708b57d28c6
MD5 72932f9fa7990eb4d2af8f10e0a53e2f
BLAKE2b-256 38d0628c7926c85fe928f642a5a1df3de00952c07e738738a196fe9db849802d

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