Skip to main content

Wrapper for State Data APIs

Project description

INFOINDIA

infoindia is a wrapper for STATE DATA APIs.

API KEY

Sign Up to get your api_key

Or Sign In if already a user

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.11.tar.gz (2.4 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.11-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: infoindia-1.1.11.tar.gz
  • Upload date:
  • Size: 2.4 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.11.tar.gz
Algorithm Hash digest
SHA256 974460714789b87ca2cfc33bc5c4e14ce2cce958f412411daae526472bdded1d
MD5 3f969d35527cc739f3934ca75e96c0cb
BLAKE2b-256 842d7798f51ed1f8644b028e1020fad0de933565632bfe2db974bb3ada7611dc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: infoindia-1.1.11-py3-none-any.whl
  • Upload date:
  • Size: 2.8 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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 385a1ba2ee4c06283d3158eef772ed325a31344ce37ec77bfa135d7cdd49a9bd
MD5 cd36512395ec5dec7eb49fed428ee283
BLAKE2b-256 6cd97a7a25f4830cc25d55a36341094a84efba0b6fad62e9f4771f4b34f99b42

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