Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexprengere/simplepythonpackage
A minimalist Python package, with packaging, docs and tests.
https://github.com/alexprengere/simplepythonpackage
Last synced: about 2 months ago
JSON representation
A minimalist Python package, with packaging, docs and tests.
- Host: GitHub
- URL: https://github.com/alexprengere/simplepythonpackage
- Owner: alexprengere
- License: apache-2.0
- Created: 2014-03-28T15:06:42.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-03-28T15:08:06.000Z (almost 11 years ago)
- Last Synced: 2024-10-12T18:57:39.173Z (3 months ago)
- Language: Python
- Size: 145 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
Simple Python Package
=====================This is a simple Python package containing everything:
documentation, tests, packaging.Examples
--------This is an aggregation module:
.. code-block:: python
>>> from aggregation import aggregate, _read_file
This is an example:
.. code-block:: python
>>> from StringIO import StringIO
>>> a = StringIO("""ORY^CDG^2
... ORY^CDG^3""")
>>> aggregate(_read_file(a))
{'ORY': 5.0}Packaging
---------Source distribution may be created using:
.. code-block:: bash
$ python setup.py sdist
Installation may be performed with:
.. code-block:: bash
$ python setup.py install --user
Tests
-----.. code-block:: bash
$ python test.py -v