You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Andriy Kushnir 386c232e55
Merge pull request #9 from Orhideous/pyup-scheduled-update-2019-03-01
3 years ago
.github Initial deploy-related stuff 3 years ago
tests Correct type inference 3 years ago
tinsel Correct type inference 3 years ago
.gitignore Added .gitignore 3 years ago
.pyup.yml create pyup.io config file 3 years ago
.travis.yml Try to fix python 3.7. builds due to travis-ci/travis-ci#9815 3 years ago
AUTHORS.rst Initial deploy-related stuff 3 years ago
CONTRIBUTING.rst Initial deploy-related stuff 3 years ago
HISTORY.rst Added dataclass support 3 years ago
LICENSE Initial commit 3 years ago
MANIFEST.in Initial deploy-related stuff 3 years ago
Makefile Initial deploy-related stuff 3 years ago
README.rst Added dataclass support 3 years ago
requirements_dev.txt Update twine from 1.12.1 to 1.13.0 3 years ago
setup.cfg Initial deploy-related stuff 3 years ago
setup.py Correct type inference 3 years ago
tox.ini Add coveralls report 3 years ago

README.rst

tinsel
======

*Your data IS your schema*

.. image:: https://img.shields.io/pypi/pyversions/tinsel.svg
:target: https://pypi.python.org/pypi/tinsel
.. image:: https://img.shields.io/pypi/v/tinsel.svg
:target: https://pypi.python.org/pypi/tinsel
.. image:: https://coveralls.io/repos/github/Orhideous/tinsel/badge.svg?branch=master
:target: https://coveralls.io/github/Orhideous/tinsel?branch=master
.. image:: https://img.shields.io/travis/Orhideous/tinsel.svg
:target: https://travis-ci.org/Orhideous/tinsel
.. image:: https://pyup.io/repos/github/Orhideous/tinsel/shield.svg
:target: https://pyup.io/repos/github/Orhideous/tinsel/

This tiny library helps to overcome excessive complexity in hand-written pyspark
dataframe schemas.

How?
----

Shape your data as ``NamedTuple`` or dataclasses - they can freely mix::

from dataclasses import dataclass
from tinsel import struct, transform
from typing import NamedTuple, Optional, Dict, List

@struct
@dataclass
class UserInfo: