Skip to main content

fields and snippets for marshmallow

Project description

chibi_marshmallow

https://img.shields.io/pypi/v/chibi_marshmallow.svg https://img.shields.io/travis/dem4ply/chibi_marshmallow.svg Documentation Status

fields and snippets for marshmallow

Features

  • campo de String_lower

    convierto los string a minusculas

  • campo de Timestamp

    convierte los integers de timestamp a datetime

  • campo de Context

    usa los valores que se manden al context de marshmallow

example

from chibi_marshmallow import fields
from marshmallow.experimental.context import Context

class Example( Schema ):
        string_lower = fields.String_lower()
        timestamp = fields.Timestamp()
        context = fields.Context()

with Context( { "context": "hello" } )
        result = Example().load( {
                'string_lower': 'SoMe_StRiNg',
                'timestamp': '631173600',
        } )
assert result[ "string_lower" ] == "some_string"
assert result[ "timestamp" ] == datetime.datetime( 1990, 1, 1 )
assert result[ "context" ] == "hello"

History

1.0.0 (2026-05-10)

  • campo de Context

0.0.1 (2020-07-01)

  • campo de String_lower

  • campo de Timestamp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

chibi_marshmallow-1.0.0.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

chibi_marshmallow-1.0.0-py2.py3-none-any.whl (4.0 kB view details)

Uploaded Python 2Python 3

File details

Details for the file chibi_marshmallow-1.0.0.tar.gz.

File metadata

  • Download URL: chibi_marshmallow-1.0.0.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for chibi_marshmallow-1.0.0.tar.gz
Algorithm Hash digest
SHA256 a5a74b9f0194cb94af06dbde0935f829c322cda9277e89cad2b7d96436af4418
MD5 5c3415a837c599c4e8200515f04bad5f
BLAKE2b-256 4bba86eb8b8a2d6ea6db5ebab8f3fe1b7d9185bdc1893887b798b4a7cdbb046a

See more details on using hashes here.

File details

Details for the file chibi_marshmallow-1.0.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for chibi_marshmallow-1.0.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e3e838d3668d3397c54cdf8f5bf88ba49cca2a7740631f43af6c9e51ee38b4c2
MD5 849d8f245d8230c28bdefd1f63568031
BLAKE2b-256 fdf8f8cdf10a06e063965907f59860c4c61d7371abf780baeeab5b7b4a888acb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page