A command line interface for coons.
Project description
COONS-CLI
A command line tools to interact with a coons instance.
Installation
Using PIP
pip install coons-cli
Configuration
You can set your generated personal token in a environment variable COONS_TOKEN
.
Commands
Once the coons-cli
package is installed you can run coons --help
command.
Get
Usage
Usage: coons get [OPTIONS] SIZE
Get a flat list of object from a coons instance.
Options:
-q, --query TEXT
--help Show this message and exit.
Add
Usage
Usage: coons add [OPTIONS] INPUT
Create object form a text file.
Options:
--help Show this message and exit.
Input file
The input file is an ascii(text) file of the form:
Informatic:interest
development -> Coons:project
realisation -> coons:web service
dependency -> invenio:software
dependency -> flask:software
realisation -> coons-ui:software
dependency -> angular:software
realisation -> coons-cli:software
dependency -> poetry:software
skills -> python:language
example -> misc:snippet
documentation -> python:web page
skills -> typescript:language
Each line is an object of the form name:type
. The predicate -> name:type
represents a link.
A sample of file can be found here.
Delete
Usage
Usage: coons delete [OPTIONS] QUERY
Delete object from a query, confirmation is required.
Options:
--help Show this message and exit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
coons-cli-0.1.0.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file coons-cli-0.1.0.tar.gz
.
File metadata
- Download URL: coons-cli-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a536b51fbf2db889711e61c127fb1b6c798bae4d1f0ba6bd7b9b0cbe99f0fb78 |
|
MD5 | 2518672912a4f04f33a4c3464ac6b13e |
|
BLAKE2b-256 | ca3f85df768aa8af1c8c5de9f3a286ca4b6d59e48bf72c00cc19b1ae1a333e9a |
File details
Details for the file coons_cli-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: coons_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4c151d3942e81f14b468b692a3b91657bac52c5d3ab055960af0e684b5ac951 |
|
MD5 | 9f3442c100c9821fe8cb250d1686c8f3 |
|
BLAKE2b-256 | cc6ddff5ccadc1e69762f131f204d05448a0d1610722cef581fa787a8a3d2ab9 |