
Security News
Oxlint Introduces Type-Aware Linting Preview
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
|BuildStatus| |PypiVersion| |PyPiPythonVersions| |CodeCov|
|Docs|
A full Python implementation based on the Node.js package, ps4-waker, which is an unofficial API for the PS4 2nd Screen App.
This module is mainly targeted towards developers although the module does include a basic CLI.
Disclaimer: This project/module and I are not affiliated with or endorsed by Sony Interactive Entertainment LLC. As such this project may break at any time.
This module can perform almost every feature found in the PS4 Second Screen App.
Tested on:
Environment: Python 3.6/3.7/3.8
Operating System: Debian
Package can be installed with pip or from source.
It is advised to install the module in a virtual env.
Create virtual env first:
.. code:: bash
python -m venv .
source bin/activate
To install from pip:
.. code:: bash
pip install pyps4-2ndscreen
To install from source clone this repository and run from top-level:
.. code:: bash
pip install -r requirements.txt
python setup.py install
UDP is used to get status updates and retrieve user credentials. TCP is used to send commands to the PS4 Console.
This module uses UDP port 1987 by default as the source port for polling the PS4.
PS4 listens on ports 987 (Priveleged) to fetch user PSN credentials.
In order to obtain user credentials, the Python Interpreter needs access to port 987 on the host system. The credential service pretends to be a PS4 console and will receive broadcast packets from the PS4 2nd Screen app on port 987.
Example:
.. code:: bash
sudo setcap 'cap_net_bind_service=+ep' /usr/bin/python3.5
This is so you do not need sudo/root priveleges to run.
If you find that media art cannot be found. Please post an issue with your Region, Country, Title of game, an ID of game.
Thanks to hthiery for writing the underlying socket protocol in Python. https://github.com/hthiery/python-ps4
.. |BuildStatus| image:: https://circleci.com/gh/ktnrg45/pyps4-2ndscreen.svg?style=svg
:target: https://circleci.com/gh/ktnrg45/pyps4-2ndscreen
.. |PyPiVersion| image:: https://badge.fury.io/py/pyps4-2ndscreen.svg
:target: http://badge.fury.io/py/pyps4-2ndscreen
.. |PyPiPythonVersions| image:: https://img.shields.io/pypi/pyversions/pyps4-2ndscreen.svg
:alt: Python versions
:target: http://badge.fury.io/py/pyps4-2ndscreen
.. |Docs| image:: https://readthedocs.org/projects/pyps4-2ndscreen/badge/?version=dev
:target: https://pyps4-2ndscreen.readthedocs.io/en/dev/?badge=dev
:alt: Documentation Status
.. |CodeCov| image:: https://codecov.io/gh/ktnrg45/pyps4-2ndscreen/branch/dev/graph/badge.svg
:target: https://codecov.io/gh/ktnrg45/pyps4-2ndscreen/
:alt: Code Coverage
FAQs
PS4 2nd Screen Python Library
We found that pyps4-2ndscreen demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oxlint’s new preview brings type-aware linting powered by typescript-go, combining advanced TypeScript rules with native-speed performance.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.