Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/waseemofficial/cli-using-click

CLI using the click library.
https://github.com/waseemofficial/cli-using-click

Last synced: 22 days ago
JSON representation

CLI using the click library.

Awesome Lists containing this project

README

        











### Languages

![Python](https://img.shields.io/badge/-Python-000?&logo=Python)
![Bash](https://img.shields.io/badge/-Bash-000?&logo=gnu-bash&logoColor=white)
![Bash](https://img.shields.io/badge/-markdown-000?&logo=markdown)

### Technologies

![Linux](https://img.shields.io/badge/-Linux-000?&logo=Linux)
![GitHub](https://img.shields.io/badge/-GitHub-000?&logo=GitHub)




# CLI Using Click

>
> Use cli_commands.sh to check cli functionality
>

### Setup
```py
from setuptools import setup, find_packages
setup(
name="my_first_cli",
version="0.0.1",
py_modules=["main"],
include_requires=["click"],
entry_points={"console_scripts": ["cli=CLI.main:main_cli"]},
)

```

#### Using VHS for gif Recording

### installation

> `scoop install vhs`

### for recording

> `vhs new .tape`

using setup tools we can create a cli tool.
`pip install --editable .`

## Print Hello
`cli hello`

## Logging
`cli logging`

## Table
`cli table`


## CSV file viewer
`cli viewers csv ./data/population.csv --has-header -n 10 --format github`

## convert CSV to JSON
`cli converters csv -i ./data/population.csv -o ./data/test.json --has-headers --columns country -c code -c Y2020 -c Y2021`

## View JSON file
`cli viewers json ./data/test.json -n 25`