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.3
  • 作者:vfeng 1914007838@qq.com
  • Python 版本要求:>=3.9

功能概述

序列化器

  • EmbeddedSerializer:用于处理嵌入式数据的序列化,继承自 GenericDjongoSerializer,并跳过了一些验证器。

字段

  • ObjectIdField:处理 MongoDB 的 ObjectId 类型数据,提供了 to_internal_valueto_representation 方法。
  • EmbeddedField:处理嵌入式字段,也提供了 to_internal_valueto_representation 方法。

视图

  • GenericAPIView:继承自 drf_generics.GenericAPIView,提供了 get_object 方法用于获取对象。

安装

该项目使用 Poetry 进行依赖管理,确保你已经安装了 Poetry(https://python-poetry.org/docs/#installation)。

开始使用:

  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.3.tar.gz (3.1 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: rest_framework_djongo-0.1.3.tar.gz
  • Upload date:
  • Size: 3.1 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.3.tar.gz
Algorithm Hash digest
SHA256 85e381c475e0a3e3b673feabd855695d3bc8bfdbdee0e9259c272d07998be408
MD5 02bdb065f87654c56547c9015a079060
BLAKE2b-256 770d46aa213dd8fbd3cb771863a1415866aa01e8f76f31680195333b27104f61

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rest_framework_djongo-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f1274223cb70e55171785a04b9368980b6cd93789aa2150d9503d470091067
MD5 43b0d638ce100017175a62f13b69eb54
BLAKE2b-256 a2bde6c3f37ca70c7362c958c7fb06df26ba3c0d4c4bd612b9effcc46685472a

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