walkframe / d2a

A translator Django into SQLAlchemy.

Home Page:https://docs.walkframe.com/products/d2a/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

https://github.com/walkframe/d2a/workflows/build/badge.svg?branch=master

https://app.fossa.com/api/projects/git%2Bgithub.com%2Fwalkframe%2Fd2a.svg?type=largealt:https://app.fossa.com/projects/git%2Bgithub.com%2Fwalkframe%2Fd2a?ref=badge_large

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

Link

About

A translator Django into SQLAlchemy.

https://docs.walkframe.com/products/d2a/

License:MIT License


Languages

Language:Python 99.9%Language:Dockerfile 0.1%