Skip to main content

marshmallow-validators

Latest version Travis-CI marshmallow 3 compatible

Homepage: https://marshmallow-validators.readthedocs.io/

Use 3rd-party validators (e.g. from WTForms and colander) with marshmallow.

from marshmallow import Schema, fields
from marshmallow_validators.wtforms import from_wtforms
from wtforms.validators import Email, Length

# Leverage WTForms il8n
locales = ['de_DE', 'de']

class UserSchema(Schema):
    email = fields.Str(
        validate=from_wtforms([Email()], locales=locales)
    )
    password = fields.Str(
        validate=from_wtforms([Length(min=8, max=300)], locales=locales)
    )

UserSchema().validate({'email': 'invalid', 'password': 'abc'})
# {'email': ['Ungültige Email-Adresse.'],
# 'password': ['Feld muss zwischen 8 und 300 Zeichen beinhalten.']}

Get It Now

$ pip install -U marshmallow-validators

Documentation

Full documentation is available at https://marshmallow-validators.readthedocs.io/ .

License

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

Metadata

Release files for marshmallow-validators 3.0.0

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

Source distribution (sdist)

Source distribution for marshmallow-validators 3.0.0
File Size Uploaded Provenance Actions
marshmallow-validators-3.0.0.tar.gz 9.6 kB Without provenance Details for marshmallow-validators-3.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marshmallow-validators 3.0.0
File Interpreter ABI Platform Actions
marshmallow_validators-3.0.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for marshmallow_validators-3.0.0-py2.py3-none-any.whl

Total release size: 14.2 kB

Release files / marshmallow-validators-3.0.0.tar.gz

Download URL marshmallow-validators-3.0.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
93c2a1a76db7f5b76512e86494df9acea876b938c28d42d0428ebe914741493c
BLAKE2b-256 checksum
How to use checksums
ee5ba1bd96990cdaa5994202abd99d116e56dd4de7cc83d5d52b6ba367fe6b8b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / marshmallow_validators-3.0.0-py2.py3-none-any.whl

Download URL marshmallow_validators-3.0.0-py2.py3-none-any.whl
Size 4.6 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
38bc71a4522cbb5c5467fde2ff165c9f1f62a123dea5e5b1be5aa2d44f23f116
BLAKE2b-256 checksum
How to use checksums
9226bf3e04af8ffdf47cebd769e7082ded35dcdcb6969bbbb02660b6854e045a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for marshmallow-validators 3.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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