Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonatandb/python-cli_json-crud
Python CLI: JSON CRUD
https://github.com/jonatandb/python-cli_json-crud
cli click crud crud-application jonatandb json python python-cli
Last synced: 4 days ago
JSON representation
Python CLI: JSON CRUD
- Host: GitHub
- URL: https://github.com/jonatandb/python-cli_json-crud
- Owner: Jonatandb
- Created: 2023-06-23T21:28:01.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-06-24T02:17:18.000Z (over 1 year ago)
- Last Synced: 2024-03-16T02:23:53.058Z (8 months ago)
- Topics: cli, click, crud, crud-application, jonatandb, json, python, python-cli
- Language: Python
- Homepage: https://replit.com/@Jonatandb/Python-CLIJSON-CRUD?v=1
- Size: 40 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Python CLI JSON CRUD supported by [Click](https://click.palletsprojects.com).
## Live preview
- https://replit.com/@Jonatandb/Python-CLIJSON-CRUD
### 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---
- [x] User listing:
> python cli.py users
- [x] User search by ID:
> python cli.py user 1
- 1 is the ID of the user to search for.
- [x] User creation:
> python cli.py new --name SomeName --lastname SomeLastname
- --name and --lastname are required.
- [x] User deletion:
> python cli.py delete 1
- 1 is the ID of the user to be deleted.
- [x] 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
- [Click documentation](https://click.palletsprojects.com/en/8.1.x/)
- [Github Markdown - Sintaxis de escritura y formato básicos](https://docs.github.com/es/get-started/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax)