Skip to main content

INTRODUCTION

pycomando is a Library for creating command line program's command with minimal effort pycomando is based on argparse allowing the creation of commands starting from a simple yml file.

sgstat

MAINTAINERS:

- Daniel Oberti (obertidaniel@gmail.com)

Install this package

Using a distribuible package:

This project is deployed as a python package. Once cloned we advice to install it with pip. In order to do that the user needs to open a command prompt, go into the directory containing the project and execute the next command:

git clone <REPO>

# creating the dist. package
cd <REPO>
python setup.py sdist

# install the dist. package (located on folder "sdist")
pip install <PACKAGE.tar.gz>

Using git + pip

git clone <REPO>
pip install -e <PACKAGE>

Using pypi

How to - uploading to pypi

# install the required tools
python -m pip install -U pip setuptools twine
python setup.py bdist_wheel
# (publicar en pypi)
python -m twine upload dist/* --skip-existing

How to - install from pypi

# install the package anywhere:
pip install <PACKAGE>

Uninstall this package

pip uninstall <PACKAGE>

Redis server setup using Docker

pycomando has an option to store commands into a redis db. You can use docker to deploy it easely as shown below:

Run redis in docker with:

$ docker run --name redis -p 7010:6379 -d redis:6.2.6

Autocomplete setup

tcsh:

eval `register-python-argcomplete --shell tcsh pycomando`

bash:

eval "$(register-python-argcomplete pycomando)"

Environment variables

# DEBUG_LEVEL can be used to set the app logging_level as shown below:
setenv DEBUG_LEVEL INFO
setenv DEBUG_LEVEL DEBUG
setenv DEBUG_LEVEL WARNING

setenv REDIS_SERVER sjs5-015s
setenv REDIS_PORT 7010

Usage Example

A simple usage example is on the folder "examples" (before run it, you should install this package)

References

Release files for pycomando 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for pycomando 0.2.0
File Interpreter ABI Platform
pycomando-0.2.0-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / pycomando-0.2.0-py2.py3-none-any.whl

Download URL pycomando-0.2.0-py2.py3-none-any.whl
Size 14.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8abfa5990bb9b8d3143008b7c1d2f4e33e75f586e63a4650931bdf306f67ef67
BLAKE2b-256 checksum
How to use checksums
450ed751629bd93655406b53f29189ce177e699bf6d138d581b94652853d86a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.4

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.11

1 release file

0.1.10

1 release file

0.1.9

1 release file

0.1.8

1 release file

0.1.7

1 release file

0.1.6

1 release file

0.1.5

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

2 release files

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page