Skip to main content

Frankfurt is an ORM based on asyncpg.

Project description

https://readthedocs.org/projects/frankfurt/badge/?version=latest https://travis-ci.com/jorgeecardona/frankfurt.svg?branch=master https://codecov.io/gh/jorgeecardona/frankfurt/branch/master/graph/badge.svg

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://github.com/jorgeecardona/frankfurt/

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


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.1b14.tar.gz (10.5 kB view details)

Uploaded Source

File details

Details for the file frankfurt-0.1b14.tar.gz.

File metadata

  • Download URL: frankfurt-0.1b14.tar.gz
  • Upload date:
  • Size: 10.5 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.1

File hashes

Hashes for frankfurt-0.1b14.tar.gz
Algorithm Hash digest
SHA256 6367a390e649ffd29da45b2cc8e0316e2850335b602c69e2248323b2156013b7
MD5 b95b9ddf3656cce57109b7c10a9d14b1
BLAKE2b-256 ba179f0c2837b58f920464e3b323770cd3c5aaaab647291203d50d768ca958cf

See more details on using hashes here.

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