frankfurt-0.1b9
توضیحات
Frankfurt is an ORM based on asyncpg.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | frankfurt-0.1b9 |
| نام | frankfurt |
| نسخه کتابخانه | 0.1b9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jorge E. Cardona |
| ایمیل نویسنده | jorgeecardona@gmail.com |
| آدرس صفحه اصلی | https://gitlab.com/jorgeecardona/frankfurt |
| آدرس اینترنتی | https://pypi.org/project/frankfurt/ |
| مجوز | - |
=============
Frankfurt ORM
=============
.. inclusion-marker-do-not-remove
``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
.. code:: bash
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'
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7 | Python |
نحوه نصب
نصب پکیج whl frankfurt-0.1b9:
pip install frankfurt-0.1b9.whl
نصب پکیج tar.gz frankfurt-0.1b9:
pip install frankfurt-0.1b9.tar.gz