a packages for validate audio file in django
Project description
Django Audio Validator 🔉
This Library a Audio Validator For Django With MIME And Extension Use FileType Library
Feature 📌
- Audio File Type Check
- Audio File Extension Check
How Use ? 👇
-
First Install The Library Use The Command :
pip install
-
Import Library In Your Model :
from audio_validator.validator import AudioValidator
-
Pass Validator To Your Model And Set Type Of Audio :
Audio Type Supported :
- aac
- midi
- mp3
- m4a
- ogg
- flac
- wav
- amr
- aiff
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for django-audio-validator-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed45b643dd3252d866e7d9fca7b245fc1c9dc88cc476b206ba76b5658ae59d0b |
|
MD5 | 42de887431f0d6fc3f217f68419bee7d |
|
BLAKE2b-256 | 06067490e06c9b1ad4cf2ce35096cbeabe23d81c1306856220649ea1f284abc9 |
Close
Hashes for django_audio_validator-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21e9094fe397ef0acad7194e23380147d87f8fbe70e8ffdb266687f19d2c1af7 |
|
MD5 | 862ced31eaccb3a705bf014ee361428b |
|
BLAKE2b-256 | e24c079e264a2582b737c7f2139f00191a9df05506467f593c4f2cf505640f3b |