-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
python-opendata-transport | ||
========================= | ||
|
||
Python API for interacting with `transport.opendata.ch <http://transport.opendata.ch/>`_. | ||
|
||
Installation | ||
------------ | ||
The module is available from the `Python Package Index <https://pypi.python.org/pypi>`_. | ||
|
||
.. code:: bash | ||
$ pip3 install python_opendata_transport | ||
## Usage | ||
|
||
.. code:: bash | ||
>>> from opendata_transport import OpendataTransport | ||
>>> data = OpendataTransport('Bern', 'Biel') | ||
>>> data.get_data() | ||
>>> print(data.connections) | ||
Development | ||
----------- | ||
For development is recommanded to use a ``venv``. | ||
|
||
.. code:: bash | ||
$ python3.6 -m venv | ||
$ source bin/activate | ||
$ python3 setup.py develop | ||
License | ||
------- | ||
``python-opendata-transport`` is licensed under MIT, for more details check LICENSE. |