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.

Source Distribution

dtool-cli-0.5.0.tar.gz (2.9 kB view details)

Uploaded Source

File details

Details for the file dtool-cli-0.5.0.tar.gz.

File metadata

  • Download URL: dtool-cli-0.5.0.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dtool-cli-0.5.0.tar.gz
Algorithm Hash digest
SHA256 fde2904d3ce39c413e37cabcbe2943445ae5af06e06d1742d76f9bdc310e016f
MD5 5702f653c5c29b8703fdc64091b94b28
BLAKE2b-256 0185081d280746cf1be04f30c958e87d81209bf502a1408fa589fe2a8bc8f03f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page