Skip to main content
Fractal Output
======================================

|Build Status| |Version| |Pyversions|

Provides a presentation and transformation layer for complex data output, the like found in RESTful APIs, and works really well with JSON. Think of this as a view layer for your JSON/YAML/etc. Based on https://fractal.thephpleague.com/

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

Usage
^^^^^

Install:
''''''''

.. code:: bash

$ pip install fractal_output

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

.. code:: python

from fractal_output import Manager, Transformer, Item

class UserTransformer(Transformer):
def transform(self, user):
return {
'id': user.id,
'firstName': user.first_name
}

user = YourUserClass()
transformer = UserTransformer()
item = Item(user, transformer)

manager = Manager()
manager.create_data(item).to_json()

''''

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

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

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

Metadata

Release files for fractal-output 2.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 fractal-output 2.0.0
File Size Uploaded Provenance Actions
fractal_output-2.0.0.tar.gz 3.9 kB Without provenance Details for fractal_output-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 7.9 kB

Release files / fractal_output-2.0.0.tar.gz

Download URL fractal_output-2.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
1fde48799be3662567d7293794341b0960c765e868c3ee69f457a6662707ca8c
BLAKE2b-256 checksum
How to use checksums
07a5f7c0ab1dbdaa34c99a7e892a5e294370f0a1f47d76535490187dc95abcac
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / fractal_output-2.0.0-py2.py3-none-any.whl

Download URL fractal_output-2.0.0-py2.py3-none-any.whl
Size 4.0 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
82922892b076bbed089a0b7353ada2c7ddf4edef3e38566d783d1f27977ec008
BLAKE2b-256 checksum
How to use checksums
0696ccbdae7c630c337d315b97b2bc7005e33d2738b349d66139e0a4d0842223
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Security for fractal-output 2.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