Metadata-Version: 2.1
Name: fistro
Version: 0.2.0
Summary: A fixture generator based on type annotations.
Home-page: https://github.com/kingoodie/fistro
License: MIT
Keywords: fixture,testing,tool,dataclasses,annotations
Author: Pablo Cabezas
Author-email: pabcabsal@gmail.com
Requires-Python: >=3.7.0,<3.8.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.7
Description-Content-Type: text/x-rst

Fistro
======

.. image:: https://img.shields.io/pypi/v/fistro.svg
    :target: https://pypi.org/project/fistro/

.. image:: https://img.shields.io/pypi/pyversions/fistro.svg
    :target: https://pypi.org/project/fistro/

.. image:: https://img.shields.io/circleci/project/github/kingoodie/fistro.svg
    :target: https://circleci.com/gh/kingoodie/fistro

.. image:: https://codecov.io/gh/kingoodie/fistro/branch/master/graph/badge.svg
    :target: https://codecov.io/gh/kingoodie/fistro

A fixture generator based on type annotations.

Examples
--------

>>> from dataclasses import dataclass
>>> from datetime import datetime, date
>>>
>>> from fistro.fistro import generate
>>>
>>>
>>> @dataclass
>>> class Employee:
>>>     id: int
>>>     birthday: date
>>>     last_access: datetime
>>>     password: str
>>>     name: str = 'Carlos SÃ¡nchez'
>>>
>>>
>>> employee = generate(Employee)()
>>> print(employee)

It will show something like this:

>>> Employee(id=7621035066, name='Carlos SÃ¡nchez', birthday=datetime.date(259, 2, 21), last_access=datetime.datetime(2190, 11, 7, 7, 3, 20), password=":F'5nr\x0ch~")


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

>>> pip install fistro


Credits
--------
In memoriam of `Chiquito de la Calzada <https://es.wikipedia.org/wiki/Chiquito_de_la_Calzada>`_.
