fields and snippets for marshmallow
Project description
chibi_marshmallow
fields and snippets for marshmallow
Free software: WTFPL
Documentation: https://chibi-marshmallow.readthedocs.io.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a5a74b9f0194cb94af06dbde0935f829c322cda9277e89cad2b7d96436af4418
|
|
| MD5 |
5c3415a837c599c4e8200515f04bad5f
|
|
| BLAKE2b-256 |
4bba86eb8b8a2d6ea6db5ebab8f3fe1b7d9185bdc1893887b798b4a7cdbb046a
|
File details
Details for the file chibi_marshmallow-1.0.0-py2.py3-none-any.whl.
File metadata
- Download URL: chibi_marshmallow-1.0.0-py2.py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3e838d3668d3397c54cdf8f5bf88ba49cca2a7740631f43af6c9e51ee38b4c2
|
|
| MD5 |
849d8f245d8230c28bdefd1f63568031
|
|
| BLAKE2b-256 |
fdf8f8cdf10a06e063965907f59860c4c61d7371abf780baeeab5b7b4a888acb
|