Django Audio Validator 🔉
This Library a Audio Validator For Django With d MIME type checking the magic numbers signature And Extension Use FileType Library
Feature 📌
- Audio File Type Check Use MIME Type
- Audio File Extension Check
Audio Type Supported ✅
- aac -
audio/aac - midi -
audio/midi - mp3 -
audio/mpeg - m4a -
audio/mp4 - ogg -
audio/ogg - flac -
audio/x-flac - wav -
audio/x-wav - amr -
audio/amr - aiff -
audio/x-aiff
How Use ? 👇
-
First Install The Library Use The Command :
pip install django-audio-validator -
Import Library In Your Model :
from audio_validator.validator import AudioValidator -
Pass Validator To Your Model And Set Type Of Audio :
Template :
AudioValidator("Audio Type Supported")Code Example :
class Attachment(models.Model): audio = models.FileField( upload_to=user_directory_path, blank=True, validators=[AudioValidator("mp3")], ) created_at = models.DateTimeField(auto_now_add=True)
Contribute This Project 🔗
If you would like to help me develop this project, you can do so through this link
Metadata
Release files for django-audio-validator 0.0.3
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-audio-validator-0.0.3.tar.gz | 3.9 kB | Without provenance | Details for django-audio-validator-0.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| django_audio_validator-0.0.3-py3-none-any.whl | Python 3 | none | any | Details for django_audio_validator-0.0.3-py3-none-any.whl |
Total release size: 8.1 kB
Release files / django-audio-validator-0.0.3.tar.gz
| Download URL | django-audio-validator-0.0.3.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
20aabb444e4290d38a54fee24908f0e9fd9c3dc680a76a2f5096d26d3390b4be
|
|
BLAKE2b-256 checksum How to use checksums |
e1a69aa828d8fff23fea99d7447a1bedd22499e72e4be29ca870737ac3b47d06
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.0
|
Release files / django_audio_validator-0.0.3-py3-none-any.whl
| Download URL | django_audio_validator-0.0.3-py3-none-any.whl |
|---|---|
| Size | 4.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7794e2cc4f0ec6c3ebcb04442dd66a5a7a646f598a020475fe741d36feb08088
|
|
BLAKE2b-256 checksum How to use checksums |
d7672f998cf8f30fbeebb39eaa0f0a748f84f47e9010c8ca6e475fc7a8c137a8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.0
|
Security for django-audio-validator 0.0.3
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.