No version for distro humble showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro jazzy showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro kilted showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro rolling showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro ardent showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro bouncy showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro crystal showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro eloquent showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro dashing showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro galactic showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro foxy showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro iron showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro lunar showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Third-Party Package

This third-party package's source repository does not contain a package manifest. Instead, its package manifest is stored in its release repository. In order to build this package from source in a Catkin workspace, please download its package manifest.

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
indigo

Third-Party Package

This third-party package's source repository does not contain a package manifest. Instead, its package manifest is stored in its release repository. In order to build this package from source in a Catkin workspace, please download its package manifest.

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
webargs

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro hydro showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
kinetic

Third-Party Package

This third-party package's source repository does not contain a package manifest. Instead, its package manifest is stored in its release repository. In order to build this package from source in a Catkin workspace, please download its package manifest.

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Name Deps
webargs

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro melodic showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange

No version for distro noetic showing jade. Known supported distros are highlighted in the buttons above.
Package symbol

marshmallow package from marshmallow repo

marshmallow

ROS Distro
jade

Package Summary

Tags No category tags.
Version 2.9.1
License BSD
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/marshmallow-code/marshmallow.git
VCS Type git
VCS Version 2.9.1
Last Updated 2016-07-22
Dev Status MAINTAINED
CI status No Continuous Integration
Released RELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

A lightweight library for converting complex objects to and from simple Python datatypes.

Additional Links

Maintainers

  • AlexV

Authors

  • Steven Loria

marshmallow: simplified object serialization

Latest version

Travis-CI

Documentation

marshmallow is an ORM/ODM/framework-agnostic library for converting complex datatypes, such as objects, to and from native Python datatypes.

from datetime import date
from marshmallow import Schema, fields, pprint

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.data, 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

$ pip install -U marshmallow

Documentation

Full documentation is available at http://marshmallow.readthedocs.io/ .

Requirements

  • Python >= 2.6 or >= 3.3

marshmallow has no external dependencies outside of the Python standard library, although python-dateutil is recommended for robust datetime deserialization.

Ecosystem

A list of marshmallow-related libraries can be found at the GitHub wiki here:

https://github.com/marshmallow-code/marshmallow/wiki/Ecosystem

License

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

CHANGELOG

Changelog

2.9.1 (2016-07-21)

Bug fixes:

  • Fix serialization of datetime.time objects with microseconds (464{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for reporting and thanks vuonghv{.interpreted-text role=”user”} for the fix.
  • Make @validates consistent with field validator behavior: if validation fails, the field will not be included in the deserialized output (391{.interpreted-text role=”issue”}). Thanks martinstein{.interpreted-text role=”user”} for reporting and thanks @vuonghv{.interpreted-text role=”user”} for the fix.

2.9.0 (2016-07-06)

  • Decimal field coerces input values to a string before deserializing to a [decimal.Decimal]{.title-ref} object in order to avoid transformation of float values under 12 significant digits (434{.interpreted-text role=”issue”}, 435{.interpreted-text role=”issue”}). Thanks davidthornton{.interpreted-text role=”user”} for the PR.

2.8.0 (2016-06-23)

Features:

  • Allow only and exclude parameters to take nested fields, using dot-delimited syntax (e.g. only=['blog.author.email']) (402{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} and deckar01{.interpreted-text role=”user”} for the discussion and implementation.

Support:

  • Update tasks.py for compatibility with invoke>=0.13.0. Thanks deckar01{.interpreted-text role=”user”}.

2.7.3 (2016-05-05)

  • Make field.parent and field.name accessible to on_bind_field (449{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”}.

2.7.2 (2016-04-27)

No code changes in this release. This is a reupload in order to distribute an sdist for the last hotfix release. See 443{.interpreted-text role=”issue”}.

Support:

  • Update license entry in setup.py to fix RPM distributions (433{.interpreted-text role=”issue”}). Thanks rrajaravi{.interpreted-text role=”user”} for reporting.

2.7.1 (2016-04-08)

Bug fixes:

  • Only add Schemas to class registry if a class name is provided. This allows Schemas to be constructed dynamically using the type constructor without getting added to the class registry (which is useful for saving memory).

2.7.0 (2016-04-04)

Features:

  • Make context available to Nested field's on_bind_field method (408{.interpreted-text role=”issue”}). Thanks immerrr{.interpreted-text role=”user”} for the PR.
  • Pass through user ValidationError kwargs (418{.interpreted-text role=”issue”}). Thanks russelldavies{.interpreted-text role=”user”} for helping implement this.

Other changes:

  • Remove unused attributes root, parent, and name from SchemaABC (410{.interpreted-text role=”issue”}). Thanks Tim-Erwin{.interpreted-text role=”user”} for the PR.

2.6.1 (2016-03-17)

Bug fixes:

  • Respect [load_from]{.title-ref} when reporting errors for nested required fields (414{.interpreted-text role=”issue”}). Thanks yumike{.interpreted-text role=”user”}.

2.6.0 (2016-02-01)

Features:

  • Add partial argument to Schema.validate (379{.interpreted-text role=”issue”}). Thanks tdevelioglu{.interpreted-text role=”user”} for the PR.

File truncated at 100 lines see the full file

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

Dependant Packages

Launch files

No launch files found

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged marshmallow at Robotics Stack Exchange