Skip to main content

marshmallow-dumped-order

PyPI version Build Status codecov

Decorator for marshmallow.Schema to sort fields in needed order while dumping (python36+).

from marshmallow import Schema, fields
from marshmallow_dumped_order import dumped_order


@dumped_order("name", "age")
class User(Schema):
    age = fields.Int()
    name = fields.String()


dumped = User().dumps({"age": 356, "name": "Jarvis"})

assert dumped.data == '{"name": "Jarvis", "age": 356}'

Metadata

Release files for marshmallow-dumped-order 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for marshmallow-dumped-order 1.1.0
File Size Uploaded
marshmallow-dumped-order-1.1.0.tar.gz 2.9 kB Details

Release files / marshmallow-dumped-order-1.1.0.tar.gz

Download URL marshmallow-dumped-order-1.1.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
595471d639730f621de2d75b05c6f0ccd7240e60fdbd1c03a34a70eaba939afb
BLAKE2b-256 checksum
How to use checksums
fe81d5be89fbdbe2a4aebcbf29f5877e7a253f67e72a61e805e9c66bb913108a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.1

Release history Release notifications | RSS feed

This release

1.1.0 This release

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page