Skip to main content

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

Project description

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

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

plexcontentmanager-0.1.1.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

plexcontentmanager-0.1.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file plexcontentmanager-0.1.1.tar.gz.

File metadata

  • Download URL: plexcontentmanager-0.1.1.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for plexcontentmanager-0.1.1.tar.gz
Algorithm Hash digest
SHA256 7657e86c943416f167c86d26e9271c6db1edb84d108e97ff5563c534218d6c6d
MD5 3a2ca524a1eef057782883199101fc08
BLAKE2b-256 cb3f07d71e26da0814839a1137c94e78d7626a70a0aee21d60eb23c8e9554466

See more details on using hashes here.

File details

Details for the file plexcontentmanager-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for plexcontentmanager-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ca6883336e51e4a7ae57f0bad97546d2290cee6db94f52af9262060fe973d11c
MD5 ec134cbb71ce0b5b49611708c92fb937
BLAKE2b-256 b3c576cc4b8a46d8a2b20321ca8023428b77b2676853e4d24acee03a13befbb1

See more details on using hashes here.

Supported by

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