Skip to main content

Python access to the CityIQ api.

Project description

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

Or, to write the config to ~/.city-iq.yaml

$ ciq_config -wu

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

After generating a config file you can run the ciq_ programs to get events, assets and locations. The ciq_assets will list all of the system assets as JSON lines:

$ ciq_assets

The Documentation has more details, but not much more.

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/.

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.13.tar.gz (656.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cityiq-0.0.13-py2.py3-none-any.whl (25.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file cityiq-0.0.13.tar.gz.

File metadata

  • Download URL: cityiq-0.0.13.tar.gz
  • Upload date:
  • Size: 656.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cityiq-0.0.13.tar.gz
Algorithm Hash digest
SHA256 78d030f686df780ac70bf9db8f57f0d7754848abeff0f4a56c658b4cf9abce88
MD5 7dd2a32cfecf7cb6694515ad36fc9891
BLAKE2b-256 a93361fea5fef345468b137550666ce3cf01aea3cfbc631bdd4f74ef2251f8d9

See more details on using hashes here.

File details

Details for the file cityiq-0.0.13-py2.py3-none-any.whl.

File metadata

  • Download URL: cityiq-0.0.13-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

File hashes

Hashes for cityiq-0.0.13-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 cd78f4d9cb28fd1c12398d53da5cdedf0d13f64728b5bb6fab5656ad24ddc3ed
MD5 d6773bcb4b54606f44e35ad298f98ff8
BLAKE2b-256 91c7bbbf5bc3e710727cfe606342c9e5bd851e98ddc9f58e7758a1efdc2422af

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page