Armanc Toolkit
A comprehensive toolkit containing various utilities for Django and Python development, with enhanced Inertia.js integration.
Features
Django Inertia Integration
Enhanced Inertia.js support for Django applications with:
- InertiaResponse: Advanced response handling with message support
- View Mixins: Complete set of class-based views for Inertia.js
InertiaResponseMixin: Base mixin for Inertia responsesGenericView: Base view with form handlingTemplateView: Simple template renderingFormView: Form handling with validationListView: Model list views with paginationDetailView: Single object detail viewsCreateView: Object creation with formsUpdateView: Object editing with formsDeleteView: Object deletion with confirmation
Installation
pip install armanc-toolkit
Usage
Django Settings
Add the Inertia app to your Django settings:
INSTALLED_APPS = [
# ... your other apps
'armanc.django.inertia',
]
Views
from armanc.django.inertia.views import TemplateView, ListView, CreateView
from django.contrib.auth.models import User
class DashboardView(TemplateView):
template_name = 'Dashboard'
class UserListView(ListView):
model = User
template_name = 'Users/Index'
paginate_by = 10
class UserCreateView(CreateView):
model = User
template_name = 'Users/Create'
fields = ['username', 'email', 'first_name', 'last_name']
Response Handling
from armanc.django.inertia.response import InertiaResponse
def my_view(request):
return InertiaResponse(
request,
component='MyComponent',
props={'data': 'example'}
)
Requirements
- Python >=3.13
- Django >=4.2,<6.0
- djantic2 >=1.0.5
- inertia-django >=1.2.0
- telepath >=0.3.1
License
MIT License
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Metadata
Release files for armanc-toolkit 0.1.2
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 |
|---|---|---|---|---|
| armanc_toolkit-0.1.2.tar.gz | 10.2 kB | Without provenance | Details for armanc_toolkit-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| armanc_toolkit-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for armanc_toolkit-0.1.2-py3-none-any.whl |
Total release size: 21.1 kB
Release files / armanc_toolkit-0.1.2.tar.gz
| Download URL | armanc_toolkit-0.1.2.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cffb9001bc2845f716fcf50d3c67c27091617f47a3017b512cf15f85a32f3d88
|
|
BLAKE2b-256 checksum How to use checksums |
ba3b4d920509219f2ad86ed576145761c47fab55caed9e409fe2c0b8ff40c1c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|
Release files / armanc_toolkit-0.1.2-py3-none-any.whl
| Download URL | armanc_toolkit-0.1.2-py3-none-any.whl |
|---|---|
| Size | 11.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
12203baf112bd3b9de46cfc88987fc806a7dfb5151de9b40a10363aa58f8bde2
|
|
BLAKE2b-256 checksum How to use checksums |
19d1c16201330e055c524b6e548710a138c76d46fd7ae63d094ba30afda8eefb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.5
|
Security for armanc-toolkit 0.1.2
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.