Skip to main content

A Python wrapper for the Microsoft Open Data API.

Usage

>>> from open_data import OpenData
>>> od = OpenData()
>>> od.catalog()
['bls', 'dc', ... ]
>>> od.catalog('dc')
['BankLocations', 'TrafficCameras', 'ZoningPermits', ... ]
>>> data = od.query('dc', 'BankLocations')
>>> print data
{'all': ['of', 'your', 'data']}
>>> # Data returned in XML format.
... od.query('dc', 'BankLocations', format='xml')
>>> # JSON-P data is also available.
... od.query('dc', 'BankLocations', callback='my_callback')

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_data-1.0.tar.gz (6.5 kB view details)

Uploaded Source

File details

Details for the file open_data-1.0.tar.gz.

File metadata

  • Download URL: open_data-1.0.tar.gz
  • Upload date:
  • Size: 6.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for open_data-1.0.tar.gz
Algorithm Hash digest
SHA256 426fdf8f21cf96a14f71551a86bea3aa9ddd3bfa8815300402d5f6ad8e69b3e4
MD5 4176d7179d5270c33f86f6882b277f1a
BLAKE2b-256 b70fbde46f6ad8fbc52b900057df100845820e4d25d9baa1329f1ed380cbb3f6

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page