Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxim Avanov committed May 1, 2019
1 parent 39f444f commit 35ea383
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.rst
Expand Up @@ -19,7 +19,7 @@
:alt: Latest PyPI Release


**Development status: Alpha**
**Development status: Beta**

Typeit
------
Expand Down
28 changes: 23 additions & 5 deletions docs/quickstart_guide.rst
Expand Up @@ -4,11 +4,11 @@ Quickstart Guide

.. CAUTION::

The project is in an early development status, and a few public
The project is in a beta development status, and a few public
APIs may change in a backward-incompatible manner.


``typeit`` supports Python 3.7+.
``typeit`` supports Python 3.6+.


Installation
Expand Down Expand Up @@ -73,12 +73,20 @@ and rename the whole structure to better indicate the nature of the data:
}
mk_person, dict_person = type_constructor(Person, overrides)
mk_person, dict_person = type_constructor & overrides ^ Person
``typeit`` will handle creation of the constructor ``mk_person :: Dict -> Person`` and the serializer
``dict_person :: Person -> Dict`` for you.

``type_constructor & overrides`` produces a new type constructor that takes overrides into consideration,
and ``type_constructor ^ Person`` reads as "type constructor applied to the Person structure" and essentially
is the same as ``type_constructor(Person)``, but doesn't require parentheses around overrides (and extensions):

.. code-block:: python
(type_constructor & overrides & extension & ...)(Person)
Overrides
---------
Expand All @@ -99,7 +107,7 @@ our ``Person`` type:
}
mk_person, dict_person = type_constructor(Person, overrides)
mk_person, dict_person = type_constructor & overrides ^ Person
This is the way we can indicate that our Python structure has different field
Expand Down Expand Up @@ -137,5 +145,15 @@ any nested types, for instance:
}
mk_person, dict_person = type_constructor(Person, overrides)
mk_person, dict_person = type_constructor & overrides ^ Person
Extensions
----------

TODO

Handling errors
---------------

TODO
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -42,7 +42,7 @@ def requirements(at_path: Path):
description='typeit brings typed data into your project',
long_description=README,
classifiers=[
'Development Status :: 3 - Alpha',
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved',
'License :: OSI Approved :: MIT License',
Expand Down

0 comments on commit 35ea383

Please sign in to comment.