This is an asyncio Python library to communicate with the Newsbin Pro Remote Control interface.
It implements all of Remote Control Version 6.10 Interface Spec.
Installation
pip install newsbinpro_client
Documentation
The full library documentation can be found here.
Getting started
In order to activate the remote control interface, go to Options - Settings, select _Remote Control
in the left menu, and check Enable Remote Control. You can optionally set a password and change the port.
Then click OK to save. If you have a firewall active in your machine, you need to open the TCP port for
access.
Check out the instructions on github.com/jonnybergdahl/Python-Newsbinpro-client. You will find a sample script that show how it is used.
Sample use
The following code connects to Newsbin Pro and prints out the version number and basic statistics.
import asyncio
from newsbinpro_client import NewsbinProClient
HOST = "172.30.1.60"
PORT = 118
PASSWORD = "password"
async def main(host: str, port: int, password: str) -> None:
# Create a client instance
client = NewsbinProClient(host,
port,
password)
print(f"Connecting to {host}:{port}")
await client.connect()
print(f"Newsbin Pro version : {client.newsbin_version}")
status = await client.get_status()
print(f"Current speed : {status.speed}")
print(f"Data folder free space : {status.data_folder_free_space_str}")
print(f"Download folder free space : {status.download_folder_free_space_str}")
await client.disconnect()
if __name__ == "__main__":
asyncio.run(main(HOST, PORT, PASSWORD))
Output:
Newsbin Pro version : Newsbin Server 6.91RC2
Current speed : 64702260
Data folder free space : 944.83 GB
Download folder free space : 944.83 GB
Metadata
Release files for newsbinpro-client 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| newsbinpro_client-1.0.3.tar.gz | 21.9 kB | Without provenance | Details for newsbinpro_client-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| newsbinpro_client-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for newsbinpro_client-1.0.3-py3-none-any.whl |
Total release size: 46.8 kB
Release files / newsbinpro_client-1.0.3.tar.gz
| Download URL | newsbinpro_client-1.0.3.tar.gz |
|---|---|
| Size | 21.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a402ce7bae6caa07332bfc6943d4f8b43617a3800f5db854d3bfa74a45805d13
|
|
BLAKE2b-256 checksum How to use checksums |
9836c73d1622f0eaa8c3132f724074cdae70fc8e52b40711072da8e656be6c94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Release files / newsbinpro_client-1.0.3-py3-none-any.whl
| Download URL | newsbinpro_client-1.0.3-py3-none-any.whl |
|---|---|
| Size | 24.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1274d256bccaa86000467b5a65e0d098e8c1b39299064d444c52546aabb6e3de
|
|
BLAKE2b-256 checksum How to use checksums |
15d67b8de178d61f7f8f9e9be878786146410b6d05b1a2bb43b6e87deefda87e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.6
|
Security for newsbinpro-client 1.0.3
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.