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.4.tar.gz (3.0 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.4-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rest_framework_djongo-0.1.4.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.0 CPython/3.13.1 Darwin/24.0.0

File hashes

Hashes for rest_framework_djongo-0.1.4.tar.gz
Algorithm Hash digest
SHA256 c56489b6d54850776c93cf642c81d994022bb53d303842ec4349b64cec6a7c88
MD5 7f017e448208d9c3ab02ac855c5e5179
BLAKE2b-256 2541d473fbe328b5aba9bc2e3b66eb4ba4b9c8511dda1bfbdea2b5dffeb9ac35

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rest_framework_djongo-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 12f3bdce91eb2b9ef288bf3a7cfc6c38a60efd1fcc3e882599ed4ce3ebdb0404
MD5 b4e04eae9194aff74c5d15e52adadba9
BLAKE2b-256 53294e8584ce5b6b7d56f24cf3c9ae99a328ac888dd40528b98493d0580f9015

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