Skip to content

A tool to create custom objects from database outputs

License

Notifications You must be signed in to change notification settings

mbml84/python-dao

Repository files navigation

Python DAO

A tool to create custom objects from database outputs

Installation

pip install git+https://github.com/mbml84/python-dao

Use example :

from python_dao.decorators import DecoratorFactory

decorator = DecoratorFactory()

class Person:

    def __init__(self, name: str, age: str):
        self.name = name
        self.age = age


@decorator(Person)
def get_persons_from_db() -> list[Person]:
    # Your code to fetch data from DB
    results = ...

    return results

About

A tool to create custom objects from database outputs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages