Skip to main content

psn_monitor

GitHub Release PyPI Version GitHub Stars Python Versions License OpenSSF Scorecard Last Commit Maintenance

Powerful tool for real-time monitoring of Sony PlayStation (PSN) players' activities.

psn_monitor_screenshot

🚀 Quick Install & Run

New to Python or unsure what is installed? Follow the Python install walkthrough first.

Install from PyPI:

pip install psn_monitor

Run the setup wizard:

psn_monitor --setup

The wizard asks for the target, the npsso code and optional notifications. Review the settings before saving them. See Setup & First Run for how to get the npsso code and the required privacy settings.

For the manual single-file method, dependencies and upgrade commands, see Installation.

Features

🔍 Activity Tracking

  • Gaming activity: Detect online and offline status, game starts, finishes and changes.
  • Session statistics: Measure time in each state, time per game and games played.
  • Session continuity: Preserve statistics through short offline interruptions.

📊 Profile Insights

  • Profile details: View PSN IDs, status, platform, PS+ membership, bio, languages and friendship details.
  • Recent games: See recently played titles, last played dates and total playtime.
  • Optional trophies: Include a trophy summary and recently earned trophies.

🔔 Notifications and History

  • Event alerts: Configure email, Discord and ntfy notifications independently.
  • CSV history: Save reported activity with timestamps.
  • Saved status: Resume monitoring with state retained across restarts.

⚙️ Setup and Configuration

  • Guided setup: Configure a target, credentials and alerts with --setup, then check them with --doctor.
  • Flexible settings: Use config files, dotenv files, environment variables and command-line options.
  • Terminal and runtime controls: Customize colours and adjust the running monitor through supported signals.

Common Commands

Use Quick Install & Run above for first-time setup. The table uses PyPI commands. For the manual script equivalents, see Run Individual Commands.

Replace the target placeholders with a PlayStation Network online ID. Monitoring requires the PSN NPSSO code described in the setup guide.

I want to... Run this
Configure the target, credentials and alerts psn_monitor --setup
Start monitoring with existing authentication psn_monitor <psn_user_id>
Check authentication, connectivity and one target psn_monitor --doctor <psn_user_id>
Enter or replace securely the npsso code psn_monitor --set-npsso
Configure and test webhook alerts Use the setup wizard or follow Webhook Settings
Save an SMTP password for email alerts psn_monitor --set-smtp-password
Send a test email psn_monitor --send-test-email
Save a new webhook URL psn_monitor --set-webhook-url
Send a test webhook psn_monitor --send-test-webhook
Show profile details once psn_monitor <psn_user_id> -i
Also show the trophy summary psn_monitor <psn_user_id> -i --trophies
Write every change to a CSV file psn_monitor <psn_user_id> -b changes.csv
Use a specific configuration and secrets file psn_monitor --config-file psn_monitor.conf --env-file .env <psn_user_id>
List every supported command-line flag psn_monitor --help

The monitored account must expose the activity described in User Privacy Settings.

Running the tool with no arguments offers the wizard if you have not saved an account. If an account is already saved, it starts monitoring that account.

The tool runs until interrupted (Ctrl+C). Use tmux or screen for persistence and run multiple copies to monitor several accounts.

For the npsso code, saved accounts and notification setup, see the full Setup & First Run guide.

For TLS verification, email and webhook setup, see Configuration. For notification choices, user information commands and output files, see Usage.

If a run fails, start with Doctor Preflight.

Documentation

Full documentation is available at misiektoja.github.io/psn_monitor:

Page What it covers
Installation Python walkthrough, PyPI or manual installation, upgrades
Setup & First Run Setup wizard, the npsso code, privacy settings, the first monitoring run
Configuration Config file, SMTP, webhooks, TLS verification, storing secrets, check intervals
Usage Monitoring mode, user information mode, notifications, CSV export, signals, terminal output
Troubleshooting --doctor preflight checks, what to do when something fails, --verbose and --debug output
Testing Running the offline suite, the linter and the docs build
About Change log, contributing, security, license, support

Change Log

See RELEASE_NOTES.md.

Contributing

Bug reports, documentation fixes and code contributions are welcome. See CONTRIBUTING.md for the development setup, the checks CI enforces and what a change needs before it is merged. Participation is covered by the Code of Conduct.

Security

Report a suspected vulnerability privately through GitHub security advisories, never as a public issue. SECURITY.md covers the reporting process, the supported versions and the security posture of stored credentials and configuration loading.

Maintainers

License

Licensed under GPLv3. See LICENSE. Dependency licenses are listed in THIRD_PARTY_NOTICES.md.

Support

Questions, bug reports and vulnerability reports each have a place, listed in SUPPORT.md.

If the project is useful to you, you can support its development through GitHub Sponsors or Buy Me a Coffee.

Metadata

Release files for psn-monitor 2.0

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

Source distribution (sdist)

Source distribution for psn-monitor 2.0
File Size Uploaded
psn_monitor-2.0.tar.gz 291.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for psn-monitor 2.0
File Interpreter ABI Platform
psn_monitor-2.0-py3-none-any.whl Python 3 none any Details

Total release size: 416.2 kB

Release files / psn_monitor-2.0.tar.gz

Download URL psn_monitor-2.0.tar.gz
Size 291.7 kB
Tags Source
SHA-256 checksum
How to use checksums
ef36a29b14a7d2dfb4d951faa3130511d339bca27e61cf9939983876220dbee6
BLAKE2b-256 checksum
How to use checksums
ce491b411a4cf9c3a5d05ef677c6c4a98cec1c7dd4d3f1cc36f0d0cbcc989a59
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 Sep 22, 2026.

Transparency log

Release files / psn_monitor-2.0-py3-none-any.whl

Download URL psn_monitor-2.0-py3-none-any.whl
Size 124.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e26019562e5c3a4013524918464a6d221c657877f5b29b78ea03b2ddd3da523c
BLAKE2b-256 checksum
How to use checksums
a4ad45979cd12d018835058f4efe2649988fa100471e60019eee402b5deb8dc2
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 Sep 22, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

2.0 This release

2 release files

1.9

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8

2 release files

1.7

2 release files

1.6

2 release files

1.5.1

2 release files

1.5

2 release files

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