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 two name spaces for registering commands:
dtool.dataset
dtool.collection
To create a dtool-cli plug-in, create a Python package with a dataset and/or a collection module(s). Below is the content of a hypothetical dtool_create/dataset.py file, aka the dataset module in a dtool-create plugin:
"""dataset command line module."""
import click
@click.command()
def create():
print("Creating dataset...")
Then create entry points along the lines of the below in the setup.py:
from setuptools import setup
setup(
...
entry_points={
"dtool.dataset": [
"create=dtool_create.dataset:create",
"markup=dtool_create.dataset:markup",
"manifest=dtool_create.dataset:manifest",
],
"dtool.collection": [
"create=dtool_create.collection:create",
"markup=dtool_create.collection:markup",
],
},
...
)
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
File details
Details for the file dtool-cli-0.1.0.tar.gz.
File metadata
- Download URL: dtool-cli-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
553c58242a7ce4135f791fc26c07a2c050be3850f8339dcbd3f8c1993299801b
|
|
| MD5 |
efe2710539db6f314a2d18db3f95a404
|
|
| BLAKE2b-256 |
53bde2464bca4d0815d9f8cf28d65997b50bf5811157d36064ad3cdec509fa5e
|