datapackage 1.0.0a14
pip install datapackage==1.0.0a14
Newer version available (1.15.4)
Released:
Utilities to work with Data Packages as defined on specs.frictionlessdata.io
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Open Knowledge Foundation
- Tags frictionless data, open data, json schema, table schema, data package, tabular data package
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
Project description
# datapackage-py
[](https://travis-ci.org/frictionlessdata/datapackage-py)
[](https://coveralls.io/github/frictionlessdata/datapackage-py?branch=master)
[](https://pypi.python.org/pypi/datapackage)
[](https://gitter.im/frictionlessdata/chat)
A library for working with [Data Packages](http://specs.frictionlessdata.io/data-package/).
> Version v1.0 includes various important changes. Please read a [migration guide](#v10).
## Features
- `Package` class for working with data packages
- `Resource` class for working with data resources
- `Profile` class for working with profiles
- `validate` function for validating data package descriptors
- `infer` function for inferring data package descriptors
## Getting Started
### Installation
The package use semantic versioning. It means that major versions could include breaking changes. It's highly recommended to specify `datapackage` version range in your `setup/requirements` file e.g. `datapackage>=1.0,<2.0`.
```bash
datapackage infer '**/*.csv'
Data package descriptor:
{'profile': 'tabular-data-package',
'resources': [{'encoding': 'utf-8',
'format': 'csv',
'mediatype': 'text/csv',
'name': 'data',
'path': 'data/datapackage/data.csv',
'profile': 'tabular-data-resource',
'schema': ...}}]}
```
#### ` make install
```
To run tests with linting and coverage:
```bash
pylama --sort <path>
```
For testing `tox` configured in `tox.ini` is used.
It's already installed into your environment and could be used separately with more fine-grained control as described in documentation - https://testrun.org/tox/latest/.
For example to check subset of tests against Python 2 environment with increased verbosity.
All positional arguments and options after `--` will be passed to `py.test`:
```bash
tox -e py27 -- -v tests/<path>
```
Under the hood `tox` uses `pytest` configured in `pytest.ini`, `coverage`
and `mock` packages. This packages are available only in tox envionments.
Here is a list of the library contributors:
- Tryggvi Björgvinsson <tryggvi.bjorgvinsson@okfn.org>
- Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
- Edouard <edou4rd@gmail.com>
- Michael Bauer <mihi@lo-res.org>
- Alex Chandel <alexchandel@gmail.com>
- Jessica B. Hamrick <jhamrick@berkeley.edu>
- Ricardo Lafuente
- Paul Walsh <paulywalsh@gmail.com>
- Luiz Armesto <luiz.armesto@gmail.com>
- hansl <hansl@edge-net.net>
- femtotrader <femto.trader@gmail.com>
- Vitor Baptista <vitor@vitorbaptista.com>
- Bryon Jacob <bryon@data.world>
## Changelog
Here described only breaking and the most important changes. The full changelog and documentation for all released versions could be found in nicely formatted [commit history](https://github.com/frictionlessdata/datapackage-py/commits/master).
### v1.0
This version includes various big changes. A migration guide is under development and will be published here.
### v0.8
Last pre-v1 stable version of the library.
[](https://travis-ci.org/frictionlessdata/datapackage-py)
[](https://coveralls.io/github/frictionlessdata/datapackage-py?branch=master)
[](https://pypi.python.org/pypi/datapackage)
[](https://gitter.im/frictionlessdata/chat)
A library for working with [Data Packages](http://specs.frictionlessdata.io/data-package/).
> Version v1.0 includes various important changes. Please read a [migration guide](#v10).
## Features
- `Package` class for working with data packages
- `Resource` class for working with data resources
- `Profile` class for working with profiles
- `validate` function for validating data package descriptors
- `infer` function for inferring data package descriptors
## Getting Started
### Installation
The package use semantic versioning. It means that major versions could include breaking changes. It's highly recommended to specify `datapackage` version range in your `setup/requirements` file e.g. `datapackage>=1.0,<2.0`.
```bash
Data package descriptor:
{'profile': 'tabular-data-package',
'resources': [{'encoding': 'utf-8',
'format': 'csv',
'mediatype': 'text/csv',
'name': 'data',
'path': 'data/datapackage/data.csv',
'profile': 'tabular-data-resource',
'schema': ...}}]}
```
#### `
```
To run tests with linting and coverage:
```bash
```
For testing `tox` configured in `tox.ini` is used.
It's already installed into your environment and could be used separately with more fine-grained control as described in documentation - https://testrun.org/tox/latest/.
For example to check subset of tests against Python 2 environment with increased verbosity.
All positional arguments and options after `--` will be passed to `py.test`:
```bash
tox -e py27 -- -v tests/<path>
```
Under the hood `tox` uses `pytest` configured in `pytest.ini`, `coverage`
and `mock` packages. This packages are available only in tox envionments.
Here is a list of the library contributors:
- Tryggvi Björgvinsson <tryggvi.bjorgvinsson@okfn.org>
- Gunnlaugur Thor Briem <gunnlaugur@gmail.com>
- Edouard <edou4rd@gmail.com>
- Michael Bauer <mihi@lo-res.org>
- Alex Chandel <alexchandel@gmail.com>
- Jessica B. Hamrick <jhamrick@berkeley.edu>
- Ricardo Lafuente
- Paul Walsh <paulywalsh@gmail.com>
- Luiz Armesto <luiz.armesto@gmail.com>
- hansl <hansl@edge-net.net>
- femtotrader <femto.trader@gmail.com>
- Vitor Baptista <vitor@vitorbaptista.com>
- Bryon Jacob <bryon@data.world>
## Changelog
Here described only breaking and the most important changes. The full changelog and documentation for all released versions could be found in nicely formatted [commit history](https://github.com/frictionlessdata/datapackage-py/commits/master).
### v1.0
This version includes various big changes. A migration guide is under development and will be published here.
### v0.8
Last pre-v1 stable version of the library.
Project details
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Open Knowledge Foundation
- Tags frictionless data, open data, json schema, table schema, data package, tabular data package
Classifiers
- Development Status
- Intended Audience
- License
- Programming Language
- Topic
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
Built Distribution
File details
Details for the file datapackage-1.0.0a14.tar.gz
.
File metadata
- Download URL: datapackage-1.0.0a14.tar.gz
- Upload date:
- Size: 76.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f00c4f2c37b64c8c526ea2d26a4456e91994b8c3ec23683c38361b1f72f71bda |
|
MD5 | d5c40057f4da43f00a5dfbf0930ec9b4 |
|
BLAKE2b-256 | 1936c70b2aa95761c3f196b08cacc3112428861e131fee83c7d5f4d43271487e |
File details
Details for the file datapackage-1.0.0a14-py2.py3-none-any.whl
.
File metadata
- Download URL: datapackage-1.0.0a14-py2.py3-none-any.whl
- Upload date:
- Size: 80.8 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 692ed7b3d0ee5405f66078e9ea2fd9be2631da1465b3e3c212bf98c663c17448 |
|
MD5 | 852eb9fed13e7434694498134e58bb50 |
|
BLAKE2b-256 | d3a7965002ad3f1202824b5b425af2e6775105a71533bdb5393daeb21a356cb6 |