A package for Database to CRUD operations
Project description
DURC Is CRUD
DURC (Database to CRUD) is a Python package that simplifies the process of generating CRUD (Create, Read, Update, Delete) operations from database schemas. It automatically extracts relational models from your database and generates the necessary code artifacts.
Features
- Database Schema Extraction: Automatically extract database schema information including tables, columns, primary keys, foreign keys, and relationships.
- Relationship Detection: Automatically detect relationships between tables based on foreign keys and naming conventions.
- Code Generation: Generate code artifacts based on the extracted relational model (currently a placeholder, with full implementation coming soon).
- PostgreSQL Support: Currently optimized for PostgreSQL databases, with plans to support other database systems in the future.
- Django Integration: Seamlessly integrates with Django projects through management commands.
Installation
# Basic installation (includes testing capabilities)
pip install durc-is-crud
# Installation with development dependencies (for contributors)
pip install durc-is-crud[dev]
For detailed installation instructions, see the Installation Guide.
Quick Start
-
Add
durc_is_crudto yourINSTALLED_APPSin your Django settings:INSTALLED_APPS = [ # ... 'durc_is_crud', # ... ]
-
Extract the relational model from your database:
python manage.py durc_mine --include mydb.public
-
Compile the relational model into code artifacts:
python manage.py durc_compile
-
Run tests for the DURC package:
# Run all tests (both standalone and Django-dependent) python manage.py durc_test # Run only standalone tests that don't require Django python manage.py durc_test --standalone-only # Run only tests that require Django python manage.py durc_test --django-only
For more detailed usage instructions, see the Usage Guide.
Documentation
Requirements
- Python 3.6+
- Django 3.0+
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
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 durc_is_crud-0.1.0.tar.gz.
File metadata
- Download URL: durc_is_crud-0.1.0.tar.gz
- Upload date:
- Size: 24.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2336a59f4f851ad050e753e1bd9096918a11a329ba3cde6bc277b6e47d094556
|
|
| MD5 |
fae1d4dc874aa02c09da02c9de18a178
|
|
| BLAKE2b-256 |
3cc0b034cd52ec31bc18b3c85864c3e0a2ce7dcfb304a968e3ae4d1c681e919b
|
File details
Details for the file durc_is_crud-0.1.0-py3-none-any.whl.
File metadata
- Download URL: durc_is_crud-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1afb39611b690949a52860d03409b81a741eaa59cf0ce4634ec3ef304798fa70
|
|
| MD5 |
1871cf1102c8fe99a6d84c0d08822845
|
|
| BLAKE2b-256 |
3e2904bc30b8147f47a152c89a7f20a521f1574602f21ed2220bfc5473e654c6
|