Skip to main content

Plex Content Manager

PyPI version License: MIT GitHub

A command-line tool for managing and curating Plex Media Server content.

Features

  • Connect to your Plex server securely
  • List all empty collections across your libraries
  • Delete empty collections with confirmation
  • Batch operations with force option to skip confirmations

Installation

From PyPI (Recommended)

pip install plexcontentmanager

If you encounter an "externally-managed-environment" error, use one of these alternative installation methods:

Using pipx

# Install pipx if not already installed
pip install --user pipx
pipx ensurepath

# Install plexcontentmanager
pipx install plexcontentmanager

Using a virtual environment

# Create a virtual environment
python -m venv venv

# Activate the virtual environment
source venv/bin/activate  # On Windows: venv\Scripts\activate

# Install plexcontentmanager
pip install plexcontentmanager

From Source

git clone https://github.com/alexboutros/plexcontentmanager.git
cd plexcontentmanager
pip install -e .

Usage

Configuration

First, configure your Plex server connection:

plexcontent config --server "https://your-plex-server:32400" --token "your-plex-token"

You can view your current configuration:

plexcontent config

Test Connection

Verify that your connection to the Plex server is working:

plexcontent test-connection

Managing Collections

List all empty collections:

plexcontent list-empty-collections

Delete empty collections (with confirmation):

plexcontent delete-empty-collections

Delete empty collections without confirmation:

plexcontent delete-empty-collections --force

Finding Your Plex Token

https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/

Security & Privacy

This application stores your Plex token locally in ~/.plexcontentmanager/config.json. The token is:

  • Never transmitted to any server other than your specified Plex server
  • Stored as plaintext in the configuration file
  • Only used to authenticate with your Plex server

For security reasons:

  • The source code is available on GitHub for review
  • You can optionally use a dedicated Plex account with limited permissions for this tool
  • You can delete the configuration file (~/.plexcontentmanager/config.json) when not in use

Metadata

Release files for plexcontentmanager 0.1.1

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

Source distribution (sdist)

Source distribution for plexcontentmanager 0.1.1
File Size Uploaded Provenance Actions
plexcontentmanager-0.1.1.tar.gz 5.7 kB Without provenance Details for plexcontentmanager-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plexcontentmanager 0.1.1
File Interpreter ABI Platform Actions
plexcontentmanager-0.1.1-py3-none-any.whl Python 3 none any Details for plexcontentmanager-0.1.1-py3-none-any.whl

Total release size: 12.6 kB

Release files / plexcontentmanager-0.1.1.tar.gz

Download URL plexcontentmanager-0.1.1.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7657e86c943416f167c86d26e9271c6db1edb84d108e97ff5563c534218d6c6d
BLAKE2b-256 checksum
How to use checksums
cb3f07d71e26da0814839a1137c94e78d7626a70a0aee21d60eb23c8e9554466
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / plexcontentmanager-0.1.1-py3-none-any.whl

Download URL plexcontentmanager-0.1.1-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ca6883336e51e4a7ae57f0bad97546d2290cee6db94f52af9262060fe973d11c
BLAKE2b-256 checksum
How to use checksums
b3c576cc4b8a46d8a2b20321ca8023428b77b2676853e4d24acee03a13befbb1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for plexcontentmanager 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

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