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

https://github.com/marcusoftnet/rptodo_project

Learning how to write a Python CLI tool
https://github.com/marcusoftnet/rptodo_project

Last synced: about 2 months ago
JSON representation

Learning how to write a Python CLI tool

Awesome Lists containing this project

README

          

# RP Todo

This is me learning how to make a Python CLI tool.

I worked from [this blog post](https://realpython.com/python-typer-cli/)

## Things I learned

- Setting up `python` to point to a versioned Python installation, from here
- `python -m` indicates which module to run `The -m stands for module-name in Python. The module name should be valid in Python`
- Tests needs to be prefixed with `test_` to be picked up by `python -m pytest tests/`