CRUD with Python
- Python 3.7
- Click Framework
This code contains a simple CRUD program
See changes with the files history
- main.py CRUD based on Strings
- main2.py CRUD based on Lists
- main3.py CRUD with Dictionaries
- main4.py CRUD with Data Persistence in CSV
- pv.py CRUD final start program with terminal interpreter and POO
For build simple main.py and previous versions run this on terminal
python main.py
Change [x] for the advanced version for this program For build main[x].py run this on terminal
python main[x].py
Execute this for install in terminal
python -m venv env
cd /env/Scripts/activate
pip install click
pip install --editable .
- setup.py - Instalable in command line
- pv.py - Entry point program
- clients/commands.py - CLI Interface
- clients/services.py - Program logic
- clients/models.py - Interaction Objects
Help commands
pv --help
pv clients --help
Create a client
pv clients create
List a clients
pv clients list
Update a client
pv clients update [uid]
Delete a client
pv clients update [uid]