Automates Django app, model, serializer, and view generation from SQLAlchemy tables
Project description
DjangAutomate
Overview
DjangAutomate automates the creation of Django apps, models, serializers, and views directly from SQLAlchemy database tables. It eliminates manual code writing, enforces consistency, and speeds up development for Django projects.
Features
- Automatic Model Generation: Converts SQLAlchemy tables into Django models.
- Serializer & View Generation: Generates Django REST Framework serializers and views.
- Seamless ORM Transition: Helps migrate from SQLAlchemy to Django ORM.
- Configurable & Extensible: Customize generators to fit your project.
Installation
Install DjangAutomate using pip:
pip install djangautomate
Or using Poetry:
poetry add djangautomate
Usage
Generate Django Models from SQLAlchemy
from djangautomate.generators import ModelGenerator
generator = ModelGenerator("sqlite:///example.db", "your_table")
model_code = generator.generate()
print(model_code)
Automate Full Django App Generation
from djangautomate import Djangautomate
automator = Djangautomate("sqlite:///example.db", "users", app_name="my_app")
automator.generate_code_files()
Documentation
The full documentation is hosted on Read the Docs:
https://djangautomate.readthedocs.io
To build the documentation locally:
git clone https://github.com/pr1m8/djangautomate.git
cd djangautomate/docs
make html
Contributing
See CONTRIBUTING.md for contribution guidelines.
License
This project is licensed under the MIT License - see the LICENSE file.
Author
Developed by pr1m8 (GitHub).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file djangautomate-0.1.0.tar.gz.
File metadata
- Download URL: djangautomate-0.1.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2f7d1b21b36584220494d2927fb57af9427e752061bf4d68bf5b7994d4401ecf
|
|
| MD5 |
f2fea7a2bbbdb81164293a26c5134eac
|
|
| BLAKE2b-256 |
a7073ac2f91b9cdaabb5abe4927bb764c61cf4e36f543edb33de1bb6f4badeba
|
File details
Details for the file djangautomate-0.1.0-py3-none-any.whl.
File metadata
- Download URL: djangautomate-0.1.0-py3-none-any.whl
- Upload date:
- Size: 6.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.12.3 Linux/5.15.167.4-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94b0022560369448e5bb8a050aeeeaa723b1fe16938503ad0649dd208b0a24a2
|
|
| MD5 |
8729872cd90096e3cbe651b4d8f30b46
|
|
| BLAKE2b-256 |
a1a6b423eaaaaae08f6d4a8556ba67df251b30277d31c1598d6f83e7de1c46cb
|