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.

Files for d2a, version 3.0.1
Filename, size File type Python version Upload date Hashes
Filename, size d2a-3.0.1-py3-none-any.whl (17.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size d2a-3.0.1.tar.gz (14.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page