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
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.2.tar.gz
(29.9 kB
view details)
File details
Details for the file datapackage-0.4.2.tar.gz
.
File metadata
- Download URL: datapackage-0.4.2.tar.gz
- Upload date:
- Size: 29.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb6338b2fcce8a8e6efa959b439e3e0dd0f180897196a99a15795066faf3a31c |
|
MD5 | d32d304927aa2ea497f336ffe45080a4 |
|
BLAKE2b-256 | 8dbea7af5f37bccab5ddaabdb9f0e1fdd419a8d9cc75dbe4a1f234001bf3e969 |