Skip to main content

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 the subprocess 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

FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz (26.6 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz.

File metadata

File hashes

Hashes for FFmpyg_DavidRodriguezSoaresCUI-0.0.6.tar.gz
Algorithm Hash digest
SHA256 2ee95df8cf77e83a683f6f8d28561ad1b790c49a4ee95057cdc0d40dbb8738e0
MD5 d52a0cc8d6694b70330cb570f1d7e1d2
BLAKE2b-256 11fc3368b042b1cf04552b3ce1e27b16006039605874caeaab608fe818532dd8

See more details on using hashes here.

File details

Details for the file FFmpyg_DavidRodriguezSoaresCUI-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for FFmpyg_DavidRodriguezSoaresCUI-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 1b6f4d5a2e0afebc0b9faaa35b36c2378943ebd014efbf0295796c9e6a10e3e1
MD5 5707853ed82d64505f97f8c1a94f9e85
BLAKE2b-256 3d6176a7886fbc563da95a76e95583bc87aa8166850bf2a6a9f525741aadef79

See more details on using hashes here.

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