{"id":26351711,"url":"https://github.com/ornella-gigante/gestor-clients-python","last_synced_at":"2026-05-06T08:32:21.239Z","repository":{"id":253642110,"uuid":"844102534","full_name":"Ornella-Gigante/Gestor-Clients-Python","owner":"Ornella-Gigante","description":"This is the final project from my Python curse using Tkinter as UI ","archived":false,"fork":false,"pushed_at":"2024-08-24T19:36:00.000Z","size":7326,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-09T10:48:34.734Z","etag":null,"topics":["client-server","csv","database","fastapi","mock","python","testing","tkinter-gui","tkinter-python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ornella-Gigante.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-18T11:48:57.000Z","updated_at":"2025-03-01T16:43:59.000Z","dependencies_parsed_at":"2024-08-24T20:26:12.037Z","dependency_job_id":null,"html_url":"https://github.com/Ornella-Gigante/Gestor-Clients-Python","commit_stats":null,"previous_names":["ornella-gigante/gestor-clients-python"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ornella-Gigante/Gestor-Clients-Python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ornella-Gigante%2FGestor-Clients-Python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ornella-Gigante%2FGestor-Clients-Python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ornella-Gigante%2FGestor-Clients-Python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ornella-Gigante%2FGestor-Clients-Python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ornella-Gigante","download_url":"https://codeload.github.com/Ornella-Gigante/Gestor-Clients-Python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ornella-Gigante%2FGestor-Clients-Python/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32684633,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client-server","csv","database","fastapi","mock","python","testing","tkinter-gui","tkinter-python"],"created_at":"2025-03-16T10:34:00.768Z","updated_at":"2026-05-06T08:32:21.223Z","avatar_url":"https://github.com/Ornella-Gigante.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Client Management Program\n\n## Overview\n\n        This Python program is from a Python course that I made from hektorprofe's repository. The program allows you to manage clients through a command-line interface and is designed to test basic Python skills. \n        Additionally, I've integrated FastAPI to provide a RESTful API for client management, allowing you to manage clients both via the CLI and API.\n        \n## The program includes functionality to:\n\n    List all clients.\n    Search for a client by their ID (DNI).\n    Add a new client with fields for name, surname, and DNI.\n    Update a client's name and surname based on their DNI.\n    Delete a client by DNI.\n    Exit the program.\n    The program operates with initial test data and does not save data to the disk, ensuring no two clients have the same DNI.\n\n\n# FastAPI Integration:\n\n    \n    GET /clients: List all clients.\n    GET /clients/{dni}: Retrieve a specific client by their DNI.\n    POST /clients: Add a new client.\n    PUT /clients/{dni}: Update an existing client.\n    DELETE /clients/{dni}: Delete a client.\n    \n\n\n## List all clients.\n\n    Search for a client by their ID (DNI).\n    Add a new client with fields for name, surname, and DNI.\n    Update a client's name and surname based on their DNI.\n    Delete a client by DNI.\n    Exit the program.\n    The program operates with initial test data and does not save data to the disk, ensuring no two clients have the same DNI.\n\n## Organization\n\n* Folder Structure:\n\n      Gestor de clientes/\n      requirements.txt (empty)\n      README.md (empty)\n      gestor/ (directory for scripts)\n      run.py - Main script to start the application.\n      menu.py - CLI menu interface.\n      database.py - Manages client data.\n      helpers.py - Contains utility functions.\n  \n* Mock Database:\n\n      Client Class: Defines client attributes and methods for displaying client information.\n      Clients Class: Static methods to handle client operations (search, create, update, delete) using a mock list.\n\n* Unit Testing:\n\n      Directory tests/ with __init__.py for test discovery.\n      test_database.py for unit tests using unittest.\n      Install pytest for running tests: pip install pytest.\n      Run tests with: pytest -v.\n\n  \n* Menu Implementation:\n\n      Menu options are handled in menu.py.\n      Utilizes helpers.py for input validation and clearing the screen.\n\n* CSV Persistence:\n\n      Clients are initially loaded from clientes.csv.\n      Changes are saved back to clientes.csv.\n      A separate test CSV file tests/clientes_test.csv is used to avoid modifying real data during tests.\n  \n* GUI Development:\n      \n      Future enhancements include a GUI using Tkinter:\n      MainWindow Class: Main window with Treeview for displaying clients and buttons for actions.\n      CreateClientWindow Class: Secondary window for adding new clients with real-time validation.\n      Installation and Running\n\n  \n* Install Dependencies:\n      \n      Ensure Python is installed.\n      Install required packages (if any) using pip.\n  \n* Run the Program:\n\n      Execute run.py to start the CLI interface.\n  \n* Testing:\n\n      Run unit tests with pytest to ensure the program functions correctly.\n\n\n\n## License and Copyright\n\n      This project is licensed under the MIT License and belongs to @hektorprofe\n      \n      For more information, visit---\u003e  https://github.com/hektorprofe\n\n\n\n\n# How does it look: \n\n\n![Image_demo](https://github.com/Ornella-Gigante/Gestor-Clients-Python/blob/main/FastAPI.png)\n\n\n## Demo video:\n\n\n\n[Demo](https://github.com/Ornella-Gigante/Gestor-Clients-Python/blob/main/FastAPI.webm)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fornella-gigante%2Fgestor-clients-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fornella-gigante%2Fgestor-clients-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fornella-gigante%2Fgestor-clients-python/lists"}