Skip to content

Jonatandb/Python-CLI_JSON-CRUD

Repository files navigation

Python CLI JSON CRUD supported by Click.

Python CLI JSON CRUD made by Jonatandb

Live preview

Setting up the project folder

python -m venv venv

Activating the environment

source venv/Scripts/activate

Installing the dependencies

pip install -r requirements.txt

Running the application

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.

Investigated sites