Skip to main content

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

Project details


Download files

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

Files for dtool-cli, version 0.7.0
Filename, size File type Python version Upload date Hashes
Filename, size dtool-cli-0.7.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page