{"id":16417432,"url":"https://github.com/rzashakeri/django-audio-validator","last_synced_at":"2025-10-30T00:18:52.641Z","repository":{"id":45506503,"uuid":"499590675","full_name":"rzashakeri/django-audio-validator","owner":"rzashakeri","description":"Django audio validator that verifies the mime and extension of audio files.","archived":false,"fork":false,"pushed_at":"2023-01-07T02:50:22.000Z","size":21190,"stargazers_count":15,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-28T07:01:40.254Z","etag":null,"topics":["django","extension","filetype","magic-numbers","mime","python","type","validation","validator"],"latest_commit_sha":null,"homepage":"https://djangopackages.org/packages/p/django-audio-validator/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rzashakeri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-03T17:10:30.000Z","updated_at":"2023-12-06T07:51:04.000Z","dependencies_parsed_at":"2023-02-06T10:46:55.341Z","dependency_job_id":null,"html_url":"https://github.com/rzashakeri/django-audio-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzashakeri%2Fdjango-audio-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzashakeri%2Fdjango-audio-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzashakeri%2Fdjango-audio-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rzashakeri%2Fdjango-audio-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rzashakeri","download_url":"https://codeload.github.com/rzashakeri/django-audio-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248936691,"owners_count":21186086,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","extension","filetype","magic-numbers","mime","python","type","validation","validator"],"created_at":"2024-10-11T07:11:30.403Z","updated_at":"2025-10-30T00:18:47.609Z","avatar_url":"https://github.com/rzashakeri.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"\u003cimg src=\"https://img.shields.io/badge/Django-092E20.svg?logo=Django\u0026logoColor=white\"\u003e \u003cimg src=\"https://img.shields.io/badge/Python-3776AB.svg?logo=Python\u0026logoColor=white\"\u003e [![Downloads](https://static.pepy.tech/personalized-badge/django-audio-validator?period=total\u0026units=international_system\u0026left_color=grey\u0026right_color=brightgreen\u0026left_text=Downloads)](https://pepy.tech/project/django-audio-validator) [![PyPI version](https://badge.fury.io/py/django-audio-validator.svg)](https://badge.fury.io/py/django-audio-validator) [![Documentation Status](https://readthedocs.org/projects/django-audio-validator/badge/?version=latest)](https://django-audio-validator.readthedocs.io/en/latest/?badge=latest)\n\n----------\n\n# file validator\nI made a more complete library with which you can validate all types of files, the new project has been tested and also supports more types, you can access it through the following link:\n[file validator](https://github.com/rzashakeri/file_validator)\n\n----------\n\n\n# Django Audio Validator 🔉\n\nThis Library a Audio Validator For Django With d MIME type checking the magic numbers signature And Extension Use FileType Library\n\n# Feature 📌\n\n1. Audio File Type Check Use MIME Type\n2. Audio File Extension Check\n\n\n# Audio Type Supported ✅\n\n- aac - `audio/aac`\n- midi - `audio/midi`\n- mp3 - `audio/mpeg`\n- m4a - `audio/mp4`\n- ogg - `audio/ogg`\n- flac - `audio/x-flac`\n- wav - `audio/x-wav`\n- amr - `audio/amr`\n- aiff - `audio/x-aiff`\n\n# How Use ? 👇\n\n1. First Install The Library Use The Command :\n\n   `pip install django-audio-validator`\n\n2. Import Library In Your Model :\n\n    `from audio_validator.validator import AudioValidator`\n\n3. Pass Validator To Your Model And Set Type Of Audio :\n\n\n    Template : ``` AudioValidator(\"Audio Type Supported\") ```\n\n    **Code Example :**\n\n    ```\n    class Attachment(models.Model):\n\n        audio = models.FileField(\n            upload_to=user_directory_path,\n            blank=True,\n            validators=[AudioValidator(\"mp3\")],\n        )\n        created_at = models.DateTimeField(auto_now_add=True)\n    ```\n\n# Contribute This Project 🔗\nIf you would like to help me develop this project, you can do so through this [link](https://github.com/rzashakeri/django-audio-validator)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzashakeri%2Fdjango-audio-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frzashakeri%2Fdjango-audio-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frzashakeri%2Fdjango-audio-validator/lists"}