Python CLI JSON CRUD supported by Click.
python -m venv venv
source venv/Scripts/activate
pip install -r requirements.txt
python cli.py
- User listing:
python cli.py users
- User search by ID:
python cli.py user 1
- 1 is the ID of the user to search for.
- User creation:
python cli.py new --name SomeName --lastname SomeLastname
- --name and --lastname are required.
- User deletion:
python cli.py delete 1
- 1 is the ID of the user to be deleted.
- User modification:
python cli.py update 1 --name newName --lastname newLastname
- 1 is the ID of the user to be modified.
- --name must be follow for a string.
- --lastname must be follow for a string.
- --name and --lastname can be provided separately as well.