Skip to main content
Fractal Input
======================================

|Build Status| |Version| |Pyversions|

Abstracts HTTP request input handling, providing an easy interface for data hydration and validation Based on https://github.com/LinioIT/input

Documentation
~~~~~~~~~~~~~

Usage
^^^^^

Install:
''''''''

.. code:: bash

$ pip install fractal_input

''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''

.. code:: python

from fractal_input import InputHandler, DatetimeNode, ListNode

class UserHandler(InputHandler):
def define(self):
user = self.add('user', User)
user.add('name', 'string')
user.add('email', 'string')
user.add('age', 'integer', {'required': False})
user.add('createdAt', DatetimeNode('%m/%d/%y %H:%M:%S'))

address = user.add('address', Address)
address.add('street', 'string')

telephone = user.add('telephones', ListNode(Telephone))
telephone.add('number', 'string')

dict_data = {
'user': {
'name': 'James',
'email': 'james@email.com',
'age': 20
}
}

input = UserHandler()
input.bind(dict_data)

if not input.is_valid():
print(input.get_error_as_string())

user = input.get_data()['user']

''''

.. |Build Status| image:: https://travis-ci.org/jefersondaniel/fractal-input.svg
:target: https://travis-ci.org/jefersondaniel/fractal-input

.. |Version| image:: https://badge.fury.io/py/fractal_input.svg
:target: https://pypi.python.org/pypi/fractal_input

.. |Pyversions| image:: https://img.shields.io/pypi/pyversions/fractal_input.svg
:target: https://pypi.python.org/pypi/fractal_input

Metadata

Release files for fractal-input 2.1.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 fractal-input 2.1.0
File Size Uploaded Provenance Actions
fractal_input-2.1.0.tar.gz 5.7 kB Without provenance Details for fractal_input-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for fractal-input 2.1.0
File Interpreter ABI Platform Actions
fractal_input-2.1.0-py2.py3-none-any.whl Python 3, Python 2 none any Details for fractal_input-2.1.0-py2.py3-none-any.whl

Total release size: 11.3 kB

Release files / fractal_input-2.1.0.tar.gz

Download URL fractal_input-2.1.0.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
9b2721cdaaf38a79c7d0dcdb77e0cca49f2ec45620c56790dec8fa594649408b
BLAKE2b-256 checksum
How to use checksums
73728330b722b6745da80fe65483aec2170708354bb6d26fa950a63772544245
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Release files / fractal_input-2.1.0-py2.py3-none-any.whl

Download URL fractal_input-2.1.0-py2.py3-none-any.whl
Size 5.7 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
7774e15a1ec31b1e7df57021476f7d29ae395b70e58f00ccb05b8067ee6efbce
BLAKE2b-256 checksum
How to use checksums
9993bf08a2ebb05d581c684c301be44eb88989931ddb3d964ba5e47c319baffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.7

Security for fractal-input 2.1.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