Metadata-Version: 2.4
Name: chibi_marshmallow
Version: 1.0.0
Summary: fields and snippets for marshmallow
Home-page: https://github.com/dem4ply/chibi_marshmallow
Author: dem4ply
Author-email: dem4ply@gmail.com
License: WTFPL
Keywords: chibi_marshmallow
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: Public Domain
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: marshmallow>=4.2.2
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: requires-dist
Dynamic: summary

=================
chibi_marshmallow
=================


.. image:: https://img.shields.io/pypi/v/chibi_marshmallow.svg
        :target: https://pypi.python.org/pypi/chibi_marshmallow

.. image:: https://img.shields.io/travis/dem4ply/chibi_marshmallow.svg
        :target: https://travis-ci.org/dem4ply/chibi_marshmallow

.. image:: https://readthedocs.org/projects/chibi-marshmallow/badge/?version=latest
        :target: https://chibi-marshmallow.readthedocs.io/en/latest/?badge=latest
        :alt: Documentation Status


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
-------

.. code-block:: python

	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
