# DataHub Extensions for datapackage-pipelines
## Install
```
pip install datapackage-pipelines-datahub
```
## Usage
You will need [DataHub Command Line tool](http://docs.datahub.io/publishers/cli/#installation) to be installed on you machine.
You can use datapackage-pipelines-datahub as a plugin for [dpp](https://github.com/frictionlessdata/datapackage-pipelines#datapackage-pipelines). In pipeline-spec.yaml it will look like this
```yaml
...
- run: datahub.dump.to_datahub
```
*Note: For pushing datasets to testing server set `DATAHUB_ENV=testing`*
### dump.to_datahub
publishes DataSet to [DataHub.io](http://next.datahub.io/)
Parameters:
* `config` - full path to the `config.json` file. Default: `~/.config/datahub/config.json`
* Alternatively you can just set `DATAHUB_JSON` environt variable to be equal to the path to the config file
* `findability` - Dataset visibility on the DataHub.io. One of `public` (default), `private`, `unlisted`.
* other `data push` related options. Eg: `schedule`, `name` etc... see `data push -h` for more.
Example:
```
datahub:
title: my-dataset
pipeline:
-
run: load_metadata
parameters:
url: http://example.com/my-datapackage/datapackage.json
-
run: load_resource
parameters:
url: http://example.com/my-datapackage/datapackage.json
resource: my-resource
-
run: datahub.dump.to_datahub
parameters:
findability: private
schedule: every 2d
config: config/config.json.datahq
```
## Install
```
pip install datapackage-pipelines-datahub
```
## Usage
You will need [DataHub Command Line tool](http://docs.datahub.io/publishers/cli/#installation) to be installed on you machine.
You can use datapackage-pipelines-datahub as a plugin for [dpp](https://github.com/frictionlessdata/datapackage-pipelines#datapackage-pipelines). In pipeline-spec.yaml it will look like this
```yaml
...
- run: datahub.dump.to_datahub
```
*Note: For pushing datasets to testing server set `DATAHUB_ENV=testing`*
### dump.to_datahub
publishes DataSet to [DataHub.io](http://next.datahub.io/)
Parameters:
* `config` - full path to the `config.json` file. Default: `~/.config/datahub/config.json`
* Alternatively you can just set `DATAHUB_JSON` environt variable to be equal to the path to the config file
* `findability` - Dataset visibility on the DataHub.io. One of `public` (default), `private`, `unlisted`.
* other `data push` related options. Eg: `schedule`, `name` etc... see `data push -h` for more.
Example:
```
datahub:
title: my-dataset
pipeline:
-
run: load_metadata
parameters:
url: http://example.com/my-datapackage/datapackage.json
-
run: load_resource
parameters:
url: http://example.com/my-datapackage/datapackage.json
resource: my-resource
-
run: datahub.dump.to_datahub
parameters:
findability: private
schedule: every 2d
config: config/config.json.datahq
```
Metadata
Release files for datapackage-pipelines-datahub 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datapackage_pipelines_datahub-0.0.6-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Release files / datapackage_pipelines_datahub-0.0.6-py2.py3-none-any.whl
| Download URL | datapackage_pipelines_datahub-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 5.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
9a627afeab27661dd35c7867aa6af278eedf0a83b0597aaf57b2f1ac1dc19a56
|
|
BLAKE2b-256 checksum How to use checksums |
e5f99ef51cd6ad3764d2f22a4f19d0a17581722792a810185dba934dfd95dd4f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.11.1 setuptools/36.0.1 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.12
|