Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Data management command line tool: dtool.

Project Description

Data management command line tool: dtool.

Overview

The dtool-cli python package provides a skeleton command line interface to dtool that other “dtool” command line packages can be plugged into.

It makes use of click and click-plugins.

Creating a plugin

The dtool-cli plug-in system exposes name space dtool.cli for registering commands.

To create a dtool-cli plug-in, create a Python package and register the function of interest in the setup.py file. Below is the content of a hypothetical dtool_create/__init__.py file:

import click

@click.command()
def create():
    print("Creating dataset...")

@click.command()
def freeze():
    print("Freezing dataset...")

To create an entry point for this function add the below in the setup.py:

from setuptools import setup

setup(
    ...
    entry_points={
        "dtool.cli": [
            "create=dtool_create:create",
            "freeze=dtool_create:freeze",
        ],
    },
    ...
)

Installation

To install the dtool-cli package.

cd dtool-cli
python setup.py install
Release History

Release History

This version
History Node

0.6.0

History Node

0.5.0

History Node

0.4.0

History Node

0.3.0

History Node

0.1.0

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
dtool-cli-0.6.0.tar.gz (3.0 kB) Copy SHA256 Checksum SHA256 Source Sep 25, 2017

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting