marshmallow-code/marshmallow là dự án Python với 7.2k sao trong nhóm Backend. A lightweight library for converting complex objects to and from simple Python datatypes.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.
.. code-block:: python
from datetime import date
from pprint import pprint
from marshmallow import Schema, fields
class ArtistSchema(Schema):
name = fields.Str()
class AlbumSchema(Schema):
title = fields.Str()
release_date = fields.Date()
artist = fields.Nested(ArtistSchema())
bowie = dict(name="David Bowie")
album = dict(artist=bowie, title="Hunky Dory", release_date=date(1971, 12, 17))
schema = AlbumSchema()
result = schema.dump(album)
pprint(result, indent=2)
# { 'artist': {'name': 'David Bowie'},
# 'release_date': '1971-12-17',
# 'title': 'Hunky Dory'}
In short, marshmallow schemas can be used to:
Validate input data.
Deserialize input data to app-level objects.
Serialize app-level objects to primitive Python types. The serialized objects can then be rendered to standard formats such as JSON for use in an HTTP API.
Get it now
.. code-block:: shell-session
$ pip install -U marshmallow
.. end elevator-pitch
Documentation
Full documentation is available at https://marshmallow.readthedocs.io/ .
Ecosystem
A list of marshmallow-related libraries can be found at the GitHub wiki here:
This project exists thanks to all the people who contribute.
You're highly encouraged to participate in marshmallow's development.
Check out the Contributing Guidelines <https://github.com/marshmallow-code/.github/blob/main/CONTRIBUTING.md>_ to see how you can help.
Thank you to all who have already contributed to marshmallow!
Support this project by becoming a sponsor (or ask your company to support this project by becoming a sponsor).
Your logo will be displayed here with a link to your website. [Become a sponsor_]
.. _Become a sponsor: https://opencollective.com/marshmallow#sponsor
.. end sponsors
Professional Support
Professionally-supported marshmallow is now available through the
Tidelift Subscription <https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=pypi-marshmallow&utm_medium=readme>_.
Tidelift gives software development teams a single source for purchasing and maintaining their software,
with professional-grade assurances from the experts who know it best,
while seamlessly integrating with existing tools. [Get professional support_]
.. _Get professional support: https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=marshmallow&utm_medium=referral&utm_campaign=github
.. image:: https://user-images.githubusercontent.com/2379650/45126032-50b69880-b13f-11e8-9c2c-abd16c433495.png
:target: https://tidelift.com/subscription/pkg/pypi-marshmallow?utm_source=pypi-marshmallow&utm_medium=readme
:alt: Get supported marshmallow with Tidelift
marshmallow-code/marshmallow thuộc nhóm Backend trên TopGit, cùng 7 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về marshmallow-code/marshmallow ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/marshmallow-code/marshmallow là nguồn chính thức.
marshmallow-code/marshmallow có bao nhiêu sao?
marshmallow-code/marshmallow có 7.2k sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/marshmallow-code/marshmallow. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
marshmallow-code/marshmallow có những chủ đề gì?
GitHub topics của marshmallow-code/marshmallow: "deserialization", "marshalling", "python", "schema", "serde", "serialization", "validation". TopGit xếp repo vào nhóm Backend.
marshmallow-code/marshmallow có phải mã nguồn mở không?
Có — marshmallow-code/marshmallow phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/marshmallow-code/marshmallow.
marshmallow-code/marshmallow có trang demo không?
Dự án có trang chủ ở https://marshmallow.readthedocs.io/. Tab "Readme" ở trang này thường có ảnh chụp và hướng dẫn bắt đầu nhanh.
marshmallow-code/marshmallow còn đang phát triển không?
Commit gần nhất trên marshmallow-code/marshmallow là 1 tháng trước (theo timestamp GitHub). Repo có 725 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về marshmallow?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về marshmallow.