orm

An async ORM. 🗃

https://github.com/encode/orm

Science Score: 10.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • â—‹
    CITATION.cff file
  • â—‹
    codemeta.json file
  • â—‹
    .zenodo.json file
  • â—‹
    DOI references
  • â—‹
    Academic publication links
  • ✓
    Committers with academic emails
    1 of 17 committers (5.9%) from academic institutions
  • â—‹
    Institutional organization owner
  • â—‹
    JOSS paper metadata
  • â—‹
    Scientific vocabulary similarity
    Low similarity (12.0%) to scientific vocabulary

Keywords from Contributors

asgi parsing json-schema mkdocs
Last synced: 11 months ago · JSON representation

Repository

An async ORM. 🗃

Basic Info
  • Host: GitHub
  • Owner: encode
  • License: bsd-3-clause
  • Language: Python
  • Default Branch: master
  • Homepage: https://www.encode.io/orm
  • Size: 496 KB
Statistics
  • Stars: 1,793
  • Watchers: 41
  • Forks: 99
  • Open Issues: 21
  • Releases: 0
Created over 7 years ago · Last pushed almost 4 years ago
Metadata Files
Readme License

README.md

ORM

Build Status Coverage Package version

The orm package is an async ORM for Python, with support for Postgres, MySQL, and SQLite. ORM is built with:

Because ORM is built on SQLAlchemy core, you can use Alembic to provide database migrations.


Documentation: https://www.encode.io/orm


Installation

shell $ pip install orm

You can install the required database drivers with:

shell $ pip install orm[postgresql] $ pip install orm[mysql] $ pip install orm[sqlite]

Driver support is provided using one of asyncpg, aiomysql, or aiosqlite.


Quickstart

Note: Use ipython to try this from the console, since it supports await.

```python import databases import orm

database = databases.Database("sqlite:///db.sqlite") models = orm.ModelRegistry(database=database)

class Note(orm.Model): tablename = "notes" registry = models fields = { "id": orm.Integer(primarykey=True), "text": orm.String(maxlength=100), "completed": orm.Boolean(default=False), }

Create the tables

await models.create_all()

await Note.objects.create(text="Buy the groceries.", completed=False)

note = await Note.objects.get(id=1) print(note)

Note(id=1)

```

— 🗃 —

ORM is BSD licensed code. Designed & built in Brighton, England.

Owner

  • Name: Encode
  • Login: encode
  • Kind: organization

Collaboratively funded software development.

GitHub Events

Total
  • Watch event: 34
  • Fork event: 3
Last Year
  • Watch event: 34
  • Fork event: 3

Committers

Last synced: about 1 year ago

All Time
  • Total Commits: 105
  • Total Committers: 17
  • Avg Commits per committer: 6.176
  • Development Distribution Score (DDS): 0.619
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Tom Christie t****m@t****m 40
Amin Alaee m****e@g****m 34
florimondmanca f****a@g****m 7
Kirt Gittens k****s@y****m 6
Emad Mokhtar e****r@v****l 2
Konstantin Chernyshkov x****e@g****m 2
Mng 5****i 2
Ray Zane r****e@g****m 2
thiagovarela t****a@g****m 2
Darrel O'Pry d****y 1
AndTheDaysGoBy a****3@w****u 1
EmilioCarrion 5****n 1
FoxMaSk f****k 1
GDWR 5****R 1
Jeff Astor s****s@g****m 1
Tim Gates t****s@i****m 1
lynskylate l****e@g****m 1
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: about 1 year ago

All Time
  • Total issues: 43
  • Total pull requests: 59
  • Average time to close issues: about 1 year
  • Average time to close pull requests: 7 months
  • Total issue authors: 31
  • Total pull request authors: 22
  • Average comments per issue: 3.07
  • Average comments per pull request: 0.98
  • Merged pull requests: 41
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 1
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 1
  • Pull request authors: 0
  • Average comments per issue: 1.0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • aminalaee (5)
  • tomchristie (4)
  • malikoth (3)
  • foxmask (3)
  • dlo (2)
  • rossigee (1)
  • liudonghua123 (1)
  • FrostiiWeeb (1)
  • yi250 (1)
  • florimondmanca (1)
  • coderanger (1)
  • SepehrBazyar (1)
  • iasukas (1)
  • zezic (1)
  • patrys (1)
Pull Request Authors
  • aminalaee (33)
  • Mng-dev-ai (3)
  • kcrebound (2)
  • rzane (2)
  • AndTheDaysGoBy (2)
  • asnelling (1)
  • EmilioCarrion (1)
  • kiddten (1)
  • blue-hope (1)
  • florimondmanca (1)
  • tomchristie (1)
  • Jastor11 (1)
  • SepehrBazyar (1)
  • pykulytsky (1)
  • dongweiming (1)
Top Labels
Issue Labels
feature (7) bug (2) enhancement (2) question (2) good first issue (1)
Pull Request Labels

Packages

  • Total packages: 2
  • Total downloads:
    • pypi 5,108 last-month
  • Total docker downloads: 34
  • Total dependent packages: 3
    (may contain duplicates)
  • Total dependent repositories: 79
    (may contain duplicates)
  • Total versions: 18
  • Total maintainers: 1
pypi.org: orm

An async ORM.

  • Versions: 17
  • Dependent Packages: 3
  • Dependent Repositories: 78
  • Downloads: 5,070 Last month
  • Docker Downloads: 34
Rankings
Stargazers count: 1.7%
Dependent repos count: 1.7%
Dependent packages count: 2.3%
Average: 3.0%
Docker downloads count: 3.5%
Downloads: 4.1%
Forks count: 4.6%
Maintainers (1)
Last synced: over 1 year ago
pypi.org: savannah

Migrations.

  • Versions: 1
  • Dependent Packages: 0
  • Dependent Repositories: 1
  • Downloads: 38 Last month
Rankings
Stargazers count: 1.7%
Forks count: 4.6%
Dependent packages count: 10.0%
Average: 17.2%
Dependent repos count: 21.7%
Downloads: 48.3%
Maintainers (1)
Last synced: over 1 year ago

Dependencies

requirements.txt pypi
  • anyio >=3.0.0,<4
  • autoflake *
  • black *
  • codecov *
  • databases *
  • flake8 *
  • isort *
  • mkautodoc *
  • mkdocs *
  • mkdocs-material *
  • mypy *
  • pytest *
  • pytest-cov *
  • twine *
  • typesystem *
  • wheel *
setup.py pypi
  • databases *