Skip to main content

Commands to manage project integration with data.world.

Project description

Commands to manage project integration with data.world.

  • Free software: ISC license

Features

  • Create a project (dataset) on data.world

  • Push data files from a local directory to a data.world project

Setup instructions

Assuming you have DataKit installed, run the following to install the datakit-dworld plugin:

$ pip install -e 'git+https://github.com/associatedpress/datakit-dworld.git#egg=datakit-dworld'

Create a configuration file at ~/.datakit/plugins/datakit-dworld/config.json to tell the plugin about your data.world account. It should look like this:

{
  "username": "USERNAME",
  "api_token": "API_TOKEN"
}

Replace USERNAME with the username you will use on data.world to publish datasets.

Log in to data.world as that same user, and go to your Advanced settings page. You’ll see two long tokens under the “API Token” section. Copy the one labeled “Admin”, and paste that into your configuration file in place of API_TOKEN.

How to use

When in a datakit project, you’ll have two new commands:

  • datakit dworld create, which creates a new project (dataset) on data.world. This requires a --slug option to help set the project’s URL. For example, if your username is example-human, then running datakit dworld create --slug example-dataset will create an empty dataset at https://data.world/example-human/example-dataset.

  • datakit dworld push, which uploads data files (CSV, etc.) from your project to data.world. This defaults to uploading any files in your project’s data/public directory, but you can specify a different directory with --source-dir.

  • datakit dworld summary, which updates the dataset’s overall Markdown summary on data.world. This assumes a Markdown file exists at publish/distro_summary.md; if that is not present, it creates one based on the dataset’s existing summary.

Credits

This plugin was created with Cookiecutter and the associatedpress/cookiecutter-datakit-plugin project template (a modified version of the most excellent audreyr/cookiecutter-pypackage).

Project details


Download files

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

Source Distribution

datakit-dworld-1.0.0.tar.gz (16.0 kB view details)

Uploaded Source

Built Distribution

datakit_dworld-1.0.0-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file datakit-dworld-1.0.0.tar.gz.

File metadata

  • Download URL: datakit-dworld-1.0.0.tar.gz
  • Upload date:
  • Size: 16.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.1

File hashes

Hashes for datakit-dworld-1.0.0.tar.gz
Algorithm Hash digest
SHA256 ddeb457553052b479a200237a6b5d4821e523cca4e974eb20bfa3ec311bdb45d
MD5 c3a3db6330c59e2a7658cf77d544f716
BLAKE2b-256 e83195826c0a2b2c7685851cdac7098822df752724d672e012a49bf46fdcf2f4

See more details on using hashes here.

File details

Details for the file datakit_dworld-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: datakit_dworld-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/54.1.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.1

File hashes

Hashes for datakit_dworld-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c54731ef136f471dc43bccd093d9a4294a8018b15d808c3180a5ca194e8062f9
MD5 7a5152f1dcd9135478a0e5bcfdd8e2d0
BLAKE2b-256 97c38dc8c16bedd84241994a40b126b3d7cee5d8dcf883c602c2bfa97d7a9464

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