npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

plexpy-cli

v1.1.2

Published

A cli tool to interact with PlexPy

Downloads

3

Readme

plexpy-cli

A simple cli tool for monitoring Plex usage through PlexPy.

If you host Plex on a remote server you probably spend a fair amount of time interacting with that server on the command line. plexpy-cli is a simple tool to check plex usage from the command line. I wrote this for myself so I would be able to check plex usage quickly before doing things like updating plex, rebooting the server, or any other task that might effect plex playback.

For v1 the only thing plexpy-cli does is report Plex activity. Why? Well, because that's all I need it to do. I am happy to consider feature requests and implement reasonable features or take PRs. Keep in mind that this is built to interact with the PlexPy API and not Plex directly so it is limited by the PlexPy API. Interacting directly with Plex is outside the scope of this project.

(sensitive info redacted) plexpy-cli

Usage

Commands

| Command | Function | | --------------- | ------------------------- | | plexpy | get current plex activity | | plexpy activity | get current plex activity | | plexpy reset | reset plexpy credentials |

Options

| Option | Function | | ------------- | -------------------------------------- | | -V, --version | get plexpy-cli version | | -h, --help | list plexpy-cli options and commands | | -p, --plain | print results in plain text (no table) | | -f, --full | print tables without truncating text |

Installation

This guide assumes that you already have Plex and PlexPy installed on your machine.

  1. Download and install node.js

    node.js can be downloaded from here or if you want to install node from a package manager you can find instructions here.

  2. Install plexpy-cli globally

    npm install -g plexpy-cli

  3. Input your PlexPy credentials

    On first run plexpy-cli will prompt you for hostname, port, and api key. Your credentials will be stored for future use. For more information about these credentials view the credentials section.

    plexpy-cli

Credentials

  • Hostname: The hostname for your PlexPy installation. This could be your IP number or your domain name. DO include http:// if using http or https:// if using https. DO NOT include the port number. This will be inputted in the next step.

  • Port: The port number that PlexPy runs on. The default port is 8181 but you may be using 80 or 443 if you are using a reverse proxy.

  • API Key: Your PlexPy API key. You can find your key by navigating to PlexPy > Settings > Access Control. You might need to generate your first key if you have never done so before.