Skip to main content

Wrapper for State Data APIs

Project description

INFOINDIA

infoindia is a python client for retrieving data from STATE DATA APIs.

Installation

Use the package manager pip to install infoindia.

pip install infoindia

Usage

import infoindia as ind

# set 'api_key'
ind.set_api_key("xxxxxxxxxxxxAPI_KEYxxxxxxxxxxx")

# initialize state var
WB = ind.State('WB')

# fetch state data
WB.fetch()

# fetch all cities in state 
WB.fetch_cities()

# initialize ut var
PY = ind.UT('PY')

# fetch state data
PY.fetch()

# fetch all cities in UT 
PY.fetch_cities()

# initialize city var
SLG = ind.City('WB019')

# fetch city data
SLG.fetch()

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

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

infoindia-1.1.0.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

infoindia-1.1.0-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file infoindia-1.1.0.tar.gz.

File metadata

  • Download URL: infoindia-1.1.0.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.1

File hashes

Hashes for infoindia-1.1.0.tar.gz
Algorithm Hash digest
SHA256 72ab29033cab78714df353655c7ae050d0d88076c9497bd3693b58d4f28003bc
MD5 37adbb0101dd4987301ea2ded2365dbb
BLAKE2b-256 689dd750ae6f5c600520cdc8990f4952a460c148569fdb3adce49d519d083b80

See more details on using hashes here.

File details

Details for the file infoindia-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: infoindia-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.1

File hashes

Hashes for infoindia-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b213c79de14039049e5ed8251985f2e67dd598abd8a9e325e8fc3ae8ec0269cb
MD5 91f438522d653725338089468c25b4cc
BLAKE2b-256 5905ab289220eeff322580352469a6d596ab493dae545daa0e9a9d52d0f1d9f4

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