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
Metadata
Release files for django-petra 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django_petra-0.0.6.tar.gz | 28.0 kB | Without provenance | Details for django_petra-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_petra-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for django_petra-0.0.6-py3-none-any.whl |
Total release size: 64.8 kB
Release files / django_petra-0.0.6.tar.gz
| Download URL | django_petra-0.0.6.tar.gz |
|---|---|
| Size | 28.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e31c35d4a84a3ad5e8abfafbb55b07b57bd9958e1b5d43c1aeb85536c75cfbfa
|
|
BLAKE2b-256 checksum How to use checksums |
1897b39aed217d6aa439a38e710a1ddbc4174f5c19a46746d3b416d56c613c2b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Release files / django_petra-0.0.6-py3-none-any.whl
| Download URL | django_petra-0.0.6-py3-none-any.whl |
|---|---|
| Size | 36.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2056c4f45e4960f323dd257a9de7ee91266b7e94bc045febf88e92c939ef2c7a
|
|
BLAKE2b-256 checksum How to use checksums |
3bef600fe943d599e50e87953e54753b71bb335018d7ee01aa452d0eaa265953
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.3
|
Security for django-petra 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.