Skip to main content

Manage and load dataprotocols.org Data Packages

Project description

datapackage provides means to work with DataPackages as defined on dataprotocols.org.

>> import datapackage
>>
>> # Note trailing slash is important for data.okfn.org
>> datapkg = datapackage.DataPackage('http://data.okfn.org/data/cpi/')
>>
>> print datapkg.title
Annual Consumer Price Index (CPI)
>> print datapkg.description
Annual Consumer Price Index (CPI) for most countries in the world. Reference year is 2005.
>> # Weird example just to show how to work with data rows
>> print sum([row['CPI'] for row in datapkg.data])
668134.635662

Python support

datapackage supports both Python 2 and 3.

License

datapackage is available under the GNU General Public License, version 3. See LICENCE for more details.

Project details


Release history Release notifications | RSS feed

This version

0.4.3

Download files

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

Source Distribution

datapackage-0.4.3.tar.gz (29.9 kB view details)

Uploaded Source

File details

Details for the file datapackage-0.4.3.tar.gz.

File metadata

  • Download URL: datapackage-0.4.3.tar.gz
  • Upload date:
  • Size: 29.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for datapackage-0.4.3.tar.gz
Algorithm Hash digest
SHA256 30452d40536db96d8b82206a004be61ed050e2de6fd33bc0aae7dd7914c7476e
MD5 0e1d4071303abbe3463e2361600e3eac
BLAKE2b-256 ca9df27a33ba98dc14115d8971cd92c5d171714c7c39d037e1bc64a32e9fe36a

See more details on using hashes here.

Supported by

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