Skip to content

eocode/Python-Clients-CLI

Repository files navigation

Clients CLI

CRUD with Python

  • Python 3.7
  • Click Framework

Description

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

How to Run

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

Preview

Program


How to run Final Version

Execute this for install in terminal

python -m venv env
cd /env/Scripts/activate
pip install click
pip install --editable .

Code structure

  • 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

Commands

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]

Preview

Comand line Interface

List Data

About

Clients DataBase for Create, Read, Update and Delete, manipulable with terminal with Python

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages