Skip to main content

aud is a python package that aims to make bulk file edits easy enough for anyone with minimal scripting or python knowledge

Project description

CircleCI
  • Support for Python 3.8

  • Support for Windows & Ubuntu

  • Requires ffmpeg is already installed and updated

Installing FFMPEG:

>> On Linux:
apt-get install ffmpeg libavcodec-extra

>> On Mac:
brew install ffmpeg --with-libvorbis --with-sdl2 --with-theora

>> On Windows:
>> visit https://www.ffmpeg.org/download.html
>> download and install the appropriate package
>> ensure it is added to your PATH and you can call it from cmd

To start contributing:

>> git clone https://github.com/zdhoward/aud-rework.git
>> cd aud-rework
>> virtualenv venv
>> python3 -m pip install -r requirements.txt

Getting Started

from aud import Dir

[T] a = Dir(directory)

Core Operations

[T] a.get_all()
[T] a.get_single()
[T] a.backup(target_directory)
[T] a.move(target_directory)
[T] a.copy(target_directory)
[T] a.zip(target_location, format, options[])
[T] a.log(msg)

Config

[T] a.config_get_whitelist()
[T] a.config_set_whitelist(list) # should accept regex too
[T] a.config_get_blacklist()
[T] a.config_set_blacklist(list) # should accept regex too
[T] a.config_set_log_file(target_location)
[T] a.config_set_extensions(extensions[])
[T] a.config_get_extensions()

File Name Operations

[T] a.name_upper()
[T] a.name_lower()
[T] a.name_iterate(zerofill, seperator)
[T] a.name_prepend(string)
[T] a.name_append(string)
[T] a.name_replace(target, replacement)
[T] a.name_replace_spaces(replacement)

Audio FX Operations:

[T] a.afx_normalize(target_level, passes)
[T] a.afx_fade(in_fade, out_fade)
[T] a.afx_pad(in_pad, out_pad)
[T] a.afx_watermark(file, frequency_min, frequency_max)
[T] a.afx_join(files[])
[T] a.afx_prepend(file)
[T] a.afx_append(file)
[T] a.afx_strip_silence(silence_length, silence_threshold, padding)
[T] a.afx_invert_stereo_phase('left') ## accepts left, right, and both
[T] a.afx_lpf(cutoff)
[T] a.afx_hpf(cutoff)
[T] a.afx_gain(amount)

Conversion Operations:

[T] a.convert_to_mono()
[T] a.convert_to_stereo()
[T] a.convert_to_wav(sample_rate)
[T] a.convert_to_mp3(bit_rate)
[T] a.convert_to_flac()
[T] a.convert_to_raw()
[T] a.convert_to(format)

Things to come:

[ ] a.vfx_overlay_image(image)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aud-0.8.3.tar.gz (9.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page