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 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 import Model >>> from frankfurt import fields >>> >>> class FirstModel(Model): ... text = fields.CharField(max_length=200) >>> >>> m = FirstModel(text='example') >>> m['text'] 'example'
Project details
Release history Release notifications | RSS feed
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.1b25.tar.gz
(10.7 kB
view details)
File details
Details for the file frankfurt-0.1b25.tar.gz
.
File metadata
- Download URL: frankfurt-0.1b25.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e5987feb437c271b7fce0f1fd3776663d78a682a63255aac6c3ce69df822a1bc |
|
MD5 | 594c20a36e1d27e7a9ba97bb2122cf49 |
|
BLAKE2b-256 | b4baf0fa7a2cc53c5bcb9c47083bded92dd8648a0313c4145440509ec6019b46 |