Skip to main content

Plexer

PyPI - Version

GitHub License Supported Python Versions

GitHub Issues or Pull Requests GitHub Downloads (all assets, all releases)

OpenSSF Scorecard OpenSSF Best Practices

Run Full Suite of Checks and Tests Release

Summary

A CLI tool made to make organizing your media for Plex Media Server easy. Normalize names of media files and directories to match the hierarchial requirements that Plex requires.

Features

Support

Currently, Plexer only supports organizing movies and other individual video files.

Roadmap

  • Support for TV Shows (#28)
  • Docker implementations (#29)
  • MacOS support (#30)
  • Windows support (#31)
  • Metadata inference using file/directory info (i.e. analyze the video files to "guess" what the name, year, etc is) (#32)

Install

Docker

The most portable way to install and run Plexer is by using Docker.

Via Container Registry

The easiest way to run Plexer in Docker is by using the public containers hosted on container registries. Plexer images are available on both Docker Hub and GitHub Container Registry. See the commands below for how to run Plexer using each registry.

Docker Hub
docker run --rm -it magneticstain/plexer-cli
Github Container Registry
docker run --rm -it ghcr.io/magneticstain/plexer-cli

Via Local Image Build

In the case that container registries are unavailable, there's also the option to build the image locally. To do that, check out the main branch of this repo, build the Plexer image, and run it.

git clone https://github.com/magneticstain/plexer-cli.git
docker build -t plexer_cli .
docker run --rm -it plexer_cli

Requirements

Linux and MacOS Native Install

If you've installed plexer-cli natively (i.e. outside of a Docker container) on Ubuntu, Devian, Fedora, etc, or MacOS, you will also need to install additional dependencies:

Python-Magic

While python-magic is imported in the standard fashion (via pip/python requirements), it itself depends on the presence of the libmagic C library. To install this library, follow the installation instructions provided in the python-magic README.

Media Metadata

The most important requirement before running plexer is to ensure that you've created a .plexer file in each of your target directories.

This is a JSON-formatted file that includes the movie metadata required by Plexer to perform its jobs.

Usage

The source directory is the directory containing the raw media. The destination is where you'd like to save the processed media to.

usage: plexer.py [-h] [-v] [--version] -s SOURCE_DIR -d DESTINATION_DIR

options:
  -h, --help            show this help message and exit
  -v, --verbose         Verbosity (-v, -vv, etc)
  --version             show program's version number and exit
  -s SOURCE_DIR, --source-dir SOURCE_DIR
  -d DESTINATION_DIR, --destination-dir DESTINATION_DIR

Support & Feedback

If you run into issues while using Plexer, think you know a way to make it better, or just need help using it, create a new issue within this project and they will triaged when possible.

Development

Software Stack

Hatch project Ruff

For developing with Plexer, there are several tools that are in use:

  1. Build Backend, Packaging, and Dependency Management:
    1. Hatch
  2. Analysis Tools:
    1. Ruff
  3. Testing:
    1. Pytest
    2. Tox

Coding Standards and Conventions

  • Pre-commit hooks are utilized and managed in .pre-commit-config.yml
    • For example, ruff is run as part of every commit
    • These pre-commit hooks MUST be installed and utilized by all developers

Testing

  • All functions MUST have unit tests created for them
  • Tests are executed using VS Code with the launch.json config file in .vscode

Metadata

Release files for plexer-cli 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plexer-cli 0.1.4
File Size Uploaded
plexer_cli-0.1.4.tar.gz 65.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for plexer-cli 0.1.4
File Interpreter ABI Platform
plexer_cli-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 76.5 kB

Release files / plexer_cli-0.1.4.tar.gz

Download URL plexer_cli-0.1.4.tar.gz
Size 65.1 kB
Tags Source
SHA-256 checksum
How to use checksums
8a07477d69f458d65db8b9c16bf8a505782239401b51d2a85029d2d1c2c60b6b
BLAKE2b-256 checksum
How to use checksums
9a2a9f4b65cadb16b702f7e1860c68c4b0a57ef97db23607f75c57b192d27cee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log

Release files / plexer_cli-0.1.4-py3-none-any.whl

Download URL plexer_cli-0.1.4-py3-none-any.whl
Size 11.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3fdf90cc2b196f3a8ef7f196abb51d62ab2f205a5920d3fd20336ec7a83adffe
BLAKE2b-256 checksum
How to use checksums
2047339bc1cd74004c45056d96ae15e281638e908e235e50ec7cf469d8b78cf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 10, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page