Skip to main content

Frankfurt is an ORM based on asyncpg.

Project description

Frankfurt is an Object-Relational Mapping (ORM) library, built on top of asyncpg. It takes ideas from Django, SQLAlchemy, GiNO, and tortoise-orm.

Source and issue tracker are available at https://gitlab.com/jorgeecardona/frankfurt/issues

Support Python >= 3.7.

Introduction

Frankfurt is an ORM built on top of asyncpg, henceo, it supports only PostgreSQL.

I am taking ideas from Django, SQLAlchemy and tortoise-orm to built this.

Installation

The recommended way to install frankfurt is via pip

pip install frankfurt

Quickstart

As expected, a model can be defined as follows:

>>> from frankfurt.models import Model
>>> from frankfurt import fields
>>>
>>> class FirstModel(Model):
...    text = fields.CharField(max_length=200)
>>>
>>> m = FirstModel(text='example')
>>> m['text']
'example'

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

frankfurt-0.1b40.tar.gz (15.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page