A utility package for Django that makes API development easier for developers.
Project description
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
django_petra-0.0.2.tar.gz
(25.0 kB
view details)
Built Distribution
File details
Details for the file django_petra-0.0.2.tar.gz
.
File metadata
- Download URL: django_petra-0.0.2.tar.gz
- Upload date:
- Size: 25.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 063bd8d7c614ce7fb786a0b67110cba7e9fbfa2cbf2c2f5ed3a164fb6eed7198 |
|
MD5 | 87950615f52310ec610979ebfadc7a45 |
|
BLAKE2b-256 | 4d55d5fc4ef4febab3bef11487e5b6d8e898c53a015df4676a49648a2a2d0349 |
File details
Details for the file django_petra-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: django_petra-0.0.2-py3-none-any.whl
- Upload date:
- Size: 33.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64e0988e93a08b6a324a9497d2b5fb80c28688f680e04afd3566bf7e04d8569b |
|
MD5 | 0ecff70b8c3b923320a2c99572cae695 |
|
BLAKE2b-256 | dc52174aee1c8a11a8b9c3d7cd95029f3b9dc0f65f13978b8f77464837ed8ba9 |