Python access to the CityIQ api.
Project description
==========
CityIQ API
==========
This module and command line tool provides access to the CityIQ_ API, with
particular focus on getting metadata and parking events. The interface includes
a basic access object for getting metadata and events, a scraper object for
mass downloading events, and a command line tool for downloading and processing
events.
Installation
============
Use pip::
pip install cityiq
Configuration
=============
The program requires a configuration file that hold credentials and urls. You can generate a default configuration with ::
ciq_config -w
The generated file is configured for the San Diego system. To you this system , you will just need to add your client id and secret.
The code will look for this file in several places in this order:
- The path specified by the ``CITYIQ_CONFIG`` env var
- ``.city-iq.yaml`` in the current dir
- ``city-iq.yaml`` in the current dir
- ``.city-iq.yaml`` in the user's home dir
Use
===
The :py:class:`cityiq.api.CityIq` object is the main entry point for the API. It is constructed on a
:py:class:`cityiq.config.Config` object. For mass downloading and processing events, the :py:class`cityiq.scrape
.EventScraper` is the main object, also constructed from a ``Config``
Devlopment
==========
Committing
----------
The project scaffold gets the version number for the module from git. To get the version number::
$ python setup.py --version
Set the version with a tag. The version numbers are specified with PEP440_ ::
$ git tag 0.0.1
Publishing
----------
Publish the project to to PyPI_ with twine::
pip install twine
twine upload dist/*
Scaffolding
-----------
This project has been set up using PyScaffold 3.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.
.. _CityIQ: https://developer.currentbyge.com/cityiq
.. _PEP440: http://www.python.org/dev/peps/pep-0440/
.. _PyPI: https://pypi.org/
CityIQ API
==========
This module and command line tool provides access to the CityIQ_ API, with
particular focus on getting metadata and parking events. The interface includes
a basic access object for getting metadata and events, a scraper object for
mass downloading events, and a command line tool for downloading and processing
events.
Installation
============
Use pip::
pip install cityiq
Configuration
=============
The program requires a configuration file that hold credentials and urls. You can generate a default configuration with ::
ciq_config -w
The generated file is configured for the San Diego system. To you this system , you will just need to add your client id and secret.
The code will look for this file in several places in this order:
- The path specified by the ``CITYIQ_CONFIG`` env var
- ``.city-iq.yaml`` in the current dir
- ``city-iq.yaml`` in the current dir
- ``.city-iq.yaml`` in the user's home dir
Use
===
The :py:class:`cityiq.api.CityIq` object is the main entry point for the API. It is constructed on a
:py:class:`cityiq.config.Config` object. For mass downloading and processing events, the :py:class`cityiq.scrape
.EventScraper` is the main object, also constructed from a ``Config``
Devlopment
==========
Committing
----------
The project scaffold gets the version number for the module from git. To get the version number::
$ python setup.py --version
Set the version with a tag. The version numbers are specified with PEP440_ ::
$ git tag 0.0.1
Publishing
----------
Publish the project to to PyPI_ with twine::
pip install twine
twine upload dist/*
Scaffolding
-----------
This project has been set up using PyScaffold 3.1. For details and usage
information on PyScaffold see https://pyscaffold.org/.
.. _CityIQ: https://developer.currentbyge.com/cityiq
.. _PEP440: http://www.python.org/dev/peps/pep-0440/
.. _PyPI: https://pypi.org/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
cityiq-0.0.4.tar.gz
(459.4 kB
view details)
Built Distribution
File details
Details for the file cityiq-0.0.4.tar.gz
.
File metadata
- Download URL: cityiq-0.0.4.tar.gz
- Upload date:
- Size: 459.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.29.0 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
58830c7125b3045bda918c0bbe44d795dc23267dde31382fdec06d4a7cf3bb5d
|
|
MD5 |
3f27aea7ee28011293a184819329999e
|
|
BLAKE2b-256 |
d5f6bc1896d012453a777dde5df3806cafeb77134646e7bc2cbe982228620a10
|
File details
Details for the file cityiq-0.0.4-py2.py3-none-any.whl
.
File metadata
- Download URL: cityiq-0.0.4-py2.py3-none-any.whl
- Upload date:
- Size: 21.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.29.0 CPython/3.6.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
94685ac0c8467b9248a9e71efb0d070b33b60006641aa7fb4b311e9c17328a93
|
|
MD5 |
008dcc258290270d1cb8707e7424b671
|
|
BLAKE2b-256 |
d5b5ab5390a7aae9cc3bc9b383bca56e20fb0538506abc75ddfde16d9f527253
|