Skip to main content

It translates django models into sqlalchemy orm/expression objects.

Project description

https://badge.fury.io/py/d2a.svg https://github.com/walkframe/d2a/workflows/build/badge.svg?branch=master https://img.shields.io/pypi/dm/d2a.svg https://img.shields.io/badge/License-MIT-blue.svg

Requirements

  • Python: 3.5 or later.

    • Tested with 3.6, 3.9

  • Django: 2.x, 3.x

    • Tested with 2.2.9, 3.0.1, 3.1.1

  • SQLAlchemy: 1.1 or later.

    • Tested with 1.1.0, 1.4.1

2 STEPS TO USE

Installation

$ pip install d2a -U

Add d2a to settings.INSTALLED_APPS.

INSTALLED_APPS = [
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.messages',
    'django.contrib.staticfiles',
    # :
    # :
    'd2a',
]

Code generation

$ ./manage.py sqla_codegen

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

d2a-3.0.0.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

d2a-3.0.0-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file d2a-3.0.0.tar.gz.

File metadata

  • Download URL: d2a-3.0.0.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for d2a-3.0.0.tar.gz
Algorithm Hash digest
SHA256 970ce76fa58e76d4bb2b56040c1f7a020f808eac5b27526f905cc8bbff08bbae
MD5 faf57f06da1e53f67c78a4135f251c11
BLAKE2b-256 d9acba9fc0a4d7a2d287c281b1533adeba639fc6542968dd8bd536fa9231390d

See more details on using hashes here.

File details

Details for the file d2a-3.0.0-py3-none-any.whl.

File metadata

  • Download URL: d2a-3.0.0-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4

File hashes

Hashes for d2a-3.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b5799394550a2f1ec00432638c31772acb6b41395bc0f084e2f147db9316b34e
MD5 09d7167636cd60b7ae465019d85a8a04
BLAKE2b-256 095011612f0814085fbe919aba9d3902849cbbd07e8bc3b153e8d5cfe575e549

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