All Projects → sv-tools → marshmallow-objects

sv-tools / marshmallow-objects

Licence: MIT license
Marshmallow Objects and Models

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to marshmallow-objects

counsel-jq
Traverse complex JSON and YAML structures with live feedback
Stars: ✭ 99 (+167.57%)
Mutual labels:  json-parser, yaml-parser
parse it
A python library for parsing multiple types of config files, envvars & command line arguments that takes the headache out of setting app configurations.
Stars: ✭ 86 (+132.43%)
Mutual labels:  json-parser, yaml-parser
domino-jackson
Jackson with Annotation processing
Stars: ✭ 46 (+24.32%)
Mutual labels:  json-parser
coronavirus-dresden
Collects official SARS-CoV-2 infection statistics published by the city of Dresden.
Stars: ✭ 19 (-48.65%)
Mutual labels:  json-parser
hikaru
Move smoothly between Kubernetes YAML and Python for creating/updating/componentizing configurations.
Stars: ✭ 60 (+62.16%)
Mutual labels:  yaml-parser
djburger
Framework for safe and maintainable web-projects.
Stars: ✭ 75 (+102.7%)
Mutual labels:  marshmallow
representable
Maps representation documents from and to Ruby objects. Includes JSON, XML and YAML support, plain properties and compositions.
Stars: ✭ 689 (+1762.16%)
Mutual labels:  json-parser
xijs
A business - oriented scene Js Library
Stars: ✭ 91 (+145.95%)
Mutual labels:  json-parser
PowerJSON
Powerjson is json's improved data format.
Stars: ✭ 24 (-35.14%)
Mutual labels:  json-parser
Cerializer
JSON Serializer using compile time reflection
Stars: ✭ 16 (-56.76%)
Mutual labels:  json-parser
libstud-json
JSON pull-parser/push-serializer library for C++
Stars: ✭ 20 (-45.95%)
Mutual labels:  json-parser
clj-yaml
YAML encoding and decoding for Clojure
Stars: ✭ 97 (+162.16%)
Mutual labels:  yaml-parser
ajson
Abstract JSON for Golang with JSONPath support
Stars: ✭ 144 (+289.19%)
Mutual labels:  json-parser
TwoWayMirror
Adapt Swift’s Mirror functionality to make it bidirectional.
Stars: ✭ 38 (+2.7%)
Mutual labels:  json-parser
jackson-js
JavaScript object serialization and deserialization library using decorators. It supports also advanced Object concepts such as polymorphism, Object identity and cyclic objects.
Stars: ✭ 86 (+132.43%)
Mutual labels:  json-parser
format-to-json
An algorithm that can format a string to json-like template. 字符串JSON格式化的算法。
Stars: ✭ 30 (-18.92%)
Mutual labels:  json-parser
marshmallow-validators
Use 3rd-party validators (e.g. from WTForms and colander) with marshmallow
Stars: ✭ 24 (-35.14%)
Mutual labels:  marshmallow
libconfini
Yet another INI parser
Stars: ✭ 106 (+186.49%)
Mutual labels:  ini-parser
swagger-marshmallow-codegen
generating marshmallow's schema from swagger definition file
Stars: ✭ 51 (+37.84%)
Mutual labels:  marshmallow
mikrotik-json-parser
JSON parser library for RouterOS
Stars: ✭ 41 (+10.81%)
Mutual labels:  json-parser

marshmallow-objects

Test Codecov Version Black

Looking for Maintainer

Marshmallow Objects and Models

Serializing/Deserializing Python objects using Marshmallow library.

import marshmallow_objects as marshmallow


class Artist(marshmallow.Model):
    name = marshmallow.fields.Str()


class Album(marshmallow.Model):
    title = marshmallow.fields.Str()
    release_date = marshmallow.fields.Date()
    artist = marshmallow.NestedModel(Artist)


bowie_raw = dict(name='David Bowie')
album_raw = dict(artist=bowie_raw, title='Hunky Dory',
                 release_date='1971-12-17')

album = Album(**album_raw)
print(album.title)
print(album.release_date)
print(album.artist.name)

# Hunky Dory
# 1971-12-17
# David Bowie

Get It Now

$ pip install -U marshmallow-objects

Project Links

License

MIT licensed. See the bundled LICENSE file for more details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].