Recreating my first CRUD in python, but now more professional

Overview

🐍 PYTHON_COSTUMER_BASE 🐍

recreating my first CRUD in python, but now more professional

What technology and methodology were used?

At first, and I think the most obvious, I used python language to construct all the system. Now, going beyond the obviously I would like to demonstrate the Orientation Object (OO) system, was created in the base two classes which one is instantiated to create Menu object, and the other one is the Client which one is instantiated to create the object Client with name and birth date, the age is calculated automated by the class. In addition, the project was made thinking by the Test Drive Development (TDD) method and all the code was thought for the easy and quick maintenance.

About class Client

The class' constructor and "name" attribute

This object is made by a constructor with two instances, name and birth date. At first, in the input field the information typed by the user receive a small treatment eliminating all the spaces in the begging and in the end by the .strip() function, at the same moment other small treatment is applied for the Title() function, after that the input content is conducted to the object constructor to be instantiated. The name is validated automatically, if the user types a number among the string array the object will not be create and an error gone be raised to the user informing the problem, after the validation if everything is ok so the object receives the attribute name.

The class constructor, the "birthdate" and "age" attributes

The attribute birth date in the constructor work for two information. At first the date typed in the input field goes to a validator, an intern method to verify if the date format in in the standard and if it's valid, cause if the input field content "30/02/2002", for example, an error gone be raised to the user informing this kind of date is invalid (because February goes until 28th or 29th). After the validation, if everything is ok the date in the format dd/mm/yyy gone be returned to the "self.bith_date" attribute. After this validation the same information is donated to other inter method, the age generator. This inters method uses the birth date information and the actual date to calculate the age in the construction of the object. An important point is, if the attribute be invocated in other moment the age calc is made again, so the age will not be the same of the construction, for this this attribute receive a getter method, the first to protect and avoid being instantiated out of the class; all time this getter is invocated, the getter use the intern method to calculate based in the birth date, which is static.

👷 🚧 CAUTION! ⚠️ Area in construction 🚧 👷

About class Menu

The methods responsibilities

The files division

Owner
Ricardo Deo Sipione Augusto
Studying and developing my skills in python, HTML5, CSS3, JS, React, Angular and other software technologies
Ricardo Deo Sipione Augusto
Install packages with pip as if you were in the past!

A PyPI time machine Do you wish you could just install packages with pip as if you were at some fixed date in the past? If so, the PyPI time machine i

Thomas Robitaille 51 Jan 09, 2023
A NetBox Plugin that gives a UI for generating, comparing and deploying configurations to devices.

netbox_config_plugin - A plugin to generate, compare and deploy configurations This plugin allows you to execute your code to generate a config for a

Jo 11 Dec 21, 2022
LibreMind is a free meditation app made in under 24 hours. It has various meditation, breathwork, and visualization exercises.

libreMind Meditation exercises What is it? LibreMind is a free meditation app made in under 24 hours. It has various meditation, breathwork, and visua

1 May 24, 2022
Wordler - A program to support you to solve the wordle puzzles

solve wordle (https://www.powerlanguage.co.uk/wordle) A program to support you t

Viktor Martinović 2 Jan 17, 2022
A modern message based async agent framework

Munggoggo A modern message based async agent framework An asyncio based agent platform written in Python and based on RabbitMQ. Agents are isolated pr

24 Dec 28, 2022
Python Project Template

A low dependency and really simple to start project template for Python Projects.

Bruno Rocha 651 Dec 29, 2022
Simple web application, which has a single endpoint, dedicated to annotation parsing and convertion.

Simple web application, which has a single endpoint, dedicated to annotation parsing and conversion.

Pavel Paranin 1 Nov 01, 2021
Python program to start your zoom meetings

zoomstarter Python programm to start your zoom meetings More about Initially this was a bash script for starting zoom meetings, but as i started devel

Viktor Cvetanovic 2 Nov 24, 2021
ICEtool - ICEtool plugin for QGIS

ICEtool ICEtool is an all in one QGIS plugin to easily compute ground temperatur

Arthur Evrard 13 Dec 16, 2022
A Python package that provides astronomical constants.

AstroConst A Python package that provides astronomical constants. The code is being developed by Marc van der Sluys of the department of Astrophysics

Marc van der Sluys 1 Jan 10, 2022
This is the core of the program which takes 5k SYMBOLS and looks back N years to pull in the daily OHLC data of those symbols and saves them to disc.

This is the core of the program which takes 5k SYMBOLS and looks back N years to pull in the daily OHLC data of those symbols and saves them to disc.

Daniel Caine 1 Jan 31, 2022
Subnet calculator script using python

subnetCalculator Subnet calculator script using python3 Interactive Version Define the subnet variable interactively Use: subnetDict = subnetCalculato

1 Feb 15, 2022
A collection of tips for using MISP.

MISP Tip of the Week A collection of tips for using MISP. Published via BelgoMISP (todo) and this repository. Available in MD and JSON. Do you want to

Koen Van Impe 52 Jan 07, 2023
Live tracking, flight database and competition framework

SkyLines SkyLines is a web platform where pilots can share their flights with others after, or even during flight via live tracking. SkyLines is a sor

SkyLines 367 Dec 27, 2022
When should you berserk in lichess arena tournament games?

When should you berserk in a lichess arena tournament game? 1+0 arena tournament 3+0 arena tournament Explanation For details on how I arrived at the

18 Aug 03, 2022
Python interface to ISLEX, an English IPA pronunciation dictionary with syllable and stress marking.

pysle Questions? Comments? Feedback? Pronounced like 'p' + 'isle'. An interface to a pronunciation dictionary with stress markings (ISLEX - the intern

Tim 38 Dec 14, 2022
python scripts to perform coin die clustering (performed on Riedones3D).

python scripts to perform coin die clustering (performed on Riedones3D).

Sofiane 2 Apr 29, 2022
This is a survey of python's async concurrency features by example.

Survey of Python's Async Features This is a survey of python's async concurrency features by example. The purpose of this survey is to demonstrate tha

Tyler Lovely 4 Feb 10, 2022
Opensource Desktop application for kenobi.

Kenobi-Server WIP Opensource desktop application for Kenobi. Download the apple watch app to get started. What is this repo? It's repo for the opensou

Aayush 9 Oct 08, 2022
JD-backup is an advanced Python script, that will extract all links from a jDownloader 2 file list and export them to a text file.

JD-backup is an advanced Python script, that will extract all links from a jDownloader 2 file list and export them to a text file.

Kraken.snv 3 Jun 07, 2022