Skip to main content

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

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)

Source distribution for newsbinpro-client 1.0.3
File Size Uploaded
newsbinpro_client-1.0.3.tar.gz 21.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for newsbinpro-client 1.0.3
File Interpreter ABI Platform
newsbinpro_client-1.0.3-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files

1.0.2

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