Metadata-Version: 2.0
Name: data-refinery
Version: 0.1.57
Summary: Data Refinery: transformating data
Home-page: https://github.com/BBVA/data-refinery
Author: BBVA
Author-email: cesar.gallego@bbva.com
License: Apache 2.0
Description-Content-Type: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Requires-Python: >=3.5

|Build Status| |Coverage| |Docs| |Version| |PyVersions| |License|

Data Refinery
=============

The main goal of the library is perform a Transformation over a data
event. Supports a variety of functions typically used on machine
learning and AI.

Development is oriented into a functional style avoiding side effects on
transformations.


Installation
------------

In console ``pip install data-refinery`` or ``python setup.py install`` from sources.

Usage example
-------------

.. code-block:: python

    from datarefinery.tuple.TupleOperations import wrap, keep, substitution
    from datarefinery.Tr import Tr

    x2 = wrap(lambda x: x*2)

    tr = Tr(keep(["name"])).then(substitution(["value"], x2))
    operation = tr.apply()
    (inp, res, err) = operation({"name": "John", "value": 10})
    print(res) # {"name": "John", "value": 20}


Documentation
-------------

Visit complete documentation at `github pages branch <https://bbva.github.io/data-refinery/>`_ or at `readthedocs.io <https://data-refinery.readthedocs.io>`_.


Compatibility
-------------

Python: 3.5, 3.6


Contribute
----------

Follow the steps on the `how to contribute <https://github.com/BBVA/data-refinery/blob/master/CONTRIBUTING.md>`_ document.

.. |Build Status| image:: https://travis-ci.org/BBVA/data-refinery.svg
   :target: https://travis-ci.org/BBVA/data-refinery
.. |Coverage| image:: https://codecov.io/gh/BBVA/data-refinery/branch/master/graph/badge.svg
   :target: https://codecov.io/gh/BBVA/data-refinery
.. |Docs| image:: https://readthedocs.org/projects/data-refinery/badge/?version=latest
   :target: http://data-refinery.readthedocs.io/?badge=latest
.. |Version| image:: https://img.shields.io/pypi/v/data-refinery.svg
   :target: https://pypi.org/project/data-refinery
.. |PyVersions| image:: https://img.shields.io/pypi/pyversions/data-refinery.svg
   :target: https://pypi.org/project/data-refinery
.. |License| image:: https://img.shields.io/badge/License-Apache%202.0-blue.svg
   :target: https://opensource.org/licenses/Apache-2.0


