Giter VIP home page Giter VIP logo

django-audio-validator's Introduction

Downloads PyPI version Documentation Status


file validator

I 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: file validator


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 ๐Ÿ“Œ

  1. Audio File Type Check Use MIME Type
  2. 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 ? ๐Ÿ‘‡

  1. First Install The Library Use The Command :

    pip install django-audio-validator

  2. Import Library In Your Model :

    from audio_validator.validator import AudioValidator

  3. 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

django-audio-validator's People

Contributors

rzashakeri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mohamedtsx

django-audio-validator's Issues

Broken

The filetype dependency you set set in requirements.txt did not specify a version.
The filetype package has been updated and now the mappings in audio_type_dic are now incorrect.
mp3 is now mapped to mkv for example.
This package is now broken.

Typos in description

There seem to be a few typos in your About description. Perhaps something like the following?

An audio validator for Django with MIME type and file extension checking.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.