Value objects for Python
Project description
precious
========
.. image:: https://img.shields.io/pypi/v/precious.svg
:target: https://pypi.python.org/pypi/precious
:alt: Latest PyPI version
.. image:: .png
:target:
:alt: Latest Travis CI build status
Value object for Python
Why?
----
- there is namedtuple
- defining custom methods, subclassing is a mess
- default arguments? nope
- no explicit signatures (type hints!)
- [] access, iterable interface
- goals:
- readability
- pythonic
- benefits of __init__ and function signature
- explicitness
- performance
- usage examples:
Usage
-----
Installation
------------
========
.. image:: https://img.shields.io/pypi/v/precious.svg
:target: https://pypi.python.org/pypi/precious
:alt: Latest PyPI version
.. image:: .png
:target:
:alt: Latest Travis CI build status
Value object for Python
Why?
----
- there is namedtuple
- defining custom methods, subclassing is a mess
- default arguments? nope
- no explicit signatures (type hints!)
- [] access, iterable interface
- goals:
- readability
- pythonic
- benefits of __init__ and function signature
- explicitness
- performance
- usage examples:
Usage
-----
Installation
------------
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
precious-0.1.0.tar.gz
(2.6 kB
view hashes)