# Django Petra
Django Petra is a powerful collection of utilities and enhancements for Django Rest Framework (DRF), designed to streamline the process of building RESTful APIs. It provides convenience functions, tools, and patterns to help developers write clean, efficient, and maintainable code.
## Features
### Core Functionality
- Enhanced DRF core components for common API development tasks
- Customized base classes with improved functionality
- Utility functions and mixins for common API patterns
- Simplified pagination, routing, and data serialization
### File Storage
- Flexible storage system supporting both local and S3 storage
- Easy file operations (put, get, delete, update, etc.)
- Temporary URL generation for S3
- Directory listing and file management
### Email Management
- Enhanced email sending capabilities
- HTML template support with inline CSS
- Queue-based email sending using Celery
- Attachment support including inline images
### CORS Handling
- Comprehensive CORS middleware
- Configurable CORS settings
- Origin whitelist and regex support
- Preflight request handling
### API Logging
- Automatic API request/response logging
- Performance metrics tracking
- Client IP tracking
- Detailed request/response information storage
### Task Scheduling
- Celery integration for background tasks
- Flexible scheduling patterns (cron-style)
- Various scheduling intervals (seconds to yearly)
- Queue management
### Database Utilities
- Raw query helpers
- Custom model managers
- Soft delete functionality
- Time-stamped model mixins
Raw data
{
"_id": null,
"home_page": "https://django-petra.code4mk.org/",
"name": "django-petra",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.6",
"maintainer_email": null,
"keywords": "django, drf, django-rest-framework, django-rest-api, django-petra, code4mk",
"author": "Mostafa Kamal",
"author_email": "hiremostafa@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/a2/65/2e46ba3fd4cb8b4d04d32421aabea40bf7243188864062cb1420a51ac6a8/django_petra-0.0.4.tar.gz",
"platform": null,
"description": "# Django Petra\n\nDjango Petra is a powerful collection of utilities and enhancements for Django Rest Framework (DRF), designed to streamline the process of building RESTful APIs. It provides convenience functions, tools, and patterns to help developers write clean, efficient, and maintainable code.\n\n## Features\n\n### Core Functionality\n- Enhanced DRF core components for common API development tasks\n- Customized base classes with improved functionality\n- Utility functions and mixins for common API patterns\n- Simplified pagination, routing, and data serialization\n\n### File Storage\n- Flexible storage system supporting both local and S3 storage\n- Easy file operations (put, get, delete, update, etc.)\n- Temporary URL generation for S3\n- Directory listing and file management\n\n### Email Management\n- Enhanced email sending capabilities\n- HTML template support with inline CSS\n- Queue-based email sending using Celery\n- Attachment support including inline images\n\n### CORS Handling\n- Comprehensive CORS middleware\n- Configurable CORS settings\n- Origin whitelist and regex support\n- Preflight request handling\n\n### API Logging\n- Automatic API request/response logging\n- Performance metrics tracking\n- Client IP tracking\n- Detailed request/response information storage\n\n### Task Scheduling\n- Celery integration for background tasks\n- Flexible scheduling patterns (cron-style)\n- Various scheduling intervals (seconds to yearly)\n- Queue management\n\n### Database Utilities\n- Raw query helpers\n- Custom model managers\n- Soft delete functionality\n- Time-stamped model mixins\n\n",
"bugtrack_url": null,
"license": null,
"summary": "A utility package for Django that makes API development easier for developers.",
"version": "0.0.4",
"project_urls": {
"Changelog": "https://github.com/code4mk/django-petra/blob/main/CHANGELOG.md",
"Homepage": "https://django-petra.code4mk.org/",
"Source": "https://github.com/code4mk/django-petra"
},
"split_keywords": [
"django",
" drf",
" django-rest-framework",
" django-rest-api",
" django-petra",
" code4mk"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "43df13aca39243a13a67c9ce65b5f2bfb148bd50b572eda0cc9c262dcad72b19",
"md5": "f9b1032fb9518900cc3021bff10774d3",
"sha256": "48ab8929057891ccf286d5575c1a5cf693b3a8522bcdc24571b0bbda022abf31"
},
"downloads": -1,
"filename": "django_petra-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f9b1032fb9518900cc3021bff10774d3",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.6",
"size": 35602,
"upload_time": "2024-11-07T09:09:43",
"upload_time_iso_8601": "2024-11-07T09:09:43.595922Z",
"url": "https://files.pythonhosted.org/packages/43/df/13aca39243a13a67c9ce65b5f2bfb148bd50b572eda0cc9c262dcad72b19/django_petra-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "a2652e46ba3fd4cb8b4d04d32421aabea40bf7243188864062cb1420a51ac6a8",
"md5": "7ec15f25e34e58b38d7640665fc8e049",
"sha256": "ed54ad43b9ab3cadfc6b28ee11e20cc7aa62a2024e8c9ad6f3ff58b7becab307"
},
"downloads": -1,
"filename": "django_petra-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "7ec15f25e34e58b38d7640665fc8e049",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.6",
"size": 26746,
"upload_time": "2024-11-07T09:09:45",
"upload_time_iso_8601": "2024-11-07T09:09:45.853100Z",
"url": "https://files.pythonhosted.org/packages/a2/65/2e46ba3fd4cb8b4d04d32421aabea40bf7243188864062cb1420a51ac6a8/django_petra-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-07 09:09:45",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "code4mk",
"github_project": "django-petra",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "django-petra"
}