A FFMPEG interface for Python by DavidRodriguezSoaresCUI
Project description
FFmpyg - A FFMPEG interface for Python by DavidRodriguezSoaresCUI
A library by me, for my purposes, with goals:
- Powerful: makes it easy to do complex actions
- Transparent: its power shouldn't come at the cost of losing the ability to exploit the full range of features of FFMPEG
- Specific: tailored to my needs (see PlexOptimizer)
- Self-sufficient: uses as little non-built-in libraries as possible
- Documented: has type hints and comments
- Statically tested: see
Code quality
section
While I do provide this work under a permissive license, I do not provide any guarantees of any kind, so use it at your own discretion.
Code quality
This library was written while using the Black formatter for PEP-8 compliance and code style consistency, a choice made to enhance source code readability. Note that the author reserves the right to locally disable Black formatting in those rare instances where manual formatting looked better in their opinion.
The code is also checked by multiple static checkers, to ensure some level of stability and runtime safety: Mypy, Bandit, Pylint, Flake8
The author chose to exclude some rules:
-
Bandit
B404,B603
: This library uses thesubprocess
module for external calls, but commands are constructed in a way to avoid as much as possible the possibility of exploit. -
Pylint
line-too-long, invalid-name, too-many-branches, too-many-locals, too-many-arguments, too-many-statements
: The author understands why following these rules is in general good practice, but they found them to be sometimes too constraining and chose to disregard them at their discretion. -
Flake8
E203,E221,E501
: Either incompatible with Black or the author felt like some exceptions enhanced readability
Note: False positive warnings are typically disabled with an inline comment
A Windows script for running these modules (with exceptions listed above) on the source code files is provided (outputs file analyze_code_report.txt
): analyze_code.bat
Any commit/PR to master branch must pass static checks with MINIMAL amount of warnings !
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
Built Distribution
File details
Details for the file FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz
.
File metadata
- Download URL: FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz
- Upload date:
- Size: 26.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2ee95df8cf77e83a683f6f8d28561ad1b790c49a4ee95057cdc0d40dbb8738e0 |
|
MD5 | d52a0cc8d6694b70330cb570f1d7e1d2 |
|
BLAKE2b-256 | 11fc3368b042b1cf04552b3ce1e27b16006039605874caeaab608fe818532dd8 |
File details
Details for the file FFmpyg_DavidRodriguezSoaresCUI-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: FFmpyg_DavidRodriguezSoaresCUI-0.0.6-py3-none-any.whl
- Upload date:
- Size: 30.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b6f4d5a2e0afebc0b9faaa35b36c2378943ebd014efbf0295796c9e6a10e3e1 |
|
MD5 | 5707853ed82d64505f97f8c1a94f9e85 |
|
BLAKE2b-256 | 3d6176a7886fbc563da95a76e95583bc87aa8166850bf2a6a9f525741aadef79 |