system.data_classes module

Sample data classes (Person, Book, Order, Address) used as example relations.

class system.data_classes.Person(name: str, birthday: str)[source]

Bases: object

A person with a name and a birthday, used as a sample relation.

name: str
birthday: str
class system.data_classes.Book(title: str, author: str, price: float)[source]

Bases: object

A book with a title, author, and price, used as a sample relation.

title: str
author: str
price: float
class system.data_classes.Order(person_name: str, book_title: str)[source]

Bases: object

An order linking a person to a book by name and title, used as a sample relation.

person_name: str
book_title: str
class system.data_classes.Address(id: int, city: str, street: str, house_number: int)[source]

Bases: object

A postal address identified by id, used as a sample relation.

id: int
city: str
street: str
house_number: int