A client for the Newsbin Pro Usenet Downloader
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file newsbinpro_client-1.0.3.tar.gz.
File metadata
- Download URL: newsbinpro_client-1.0.3.tar.gz
- Upload date:
- Size: 21.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a402ce7bae6caa07332bfc6943d4f8b43617a3800f5db854d3bfa74a45805d13
|
|
| MD5 |
8a3d293638aa0fb55caacbb250f418cc
|
|
| BLAKE2b-256 |
9836c73d1622f0eaa8c3132f724074cdae70fc8e52b40711072da8e656be6c94
|
File details
Details for the file newsbinpro_client-1.0.3-py3-none-any.whl.
File metadata
- Download URL: newsbinpro_client-1.0.3-py3-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1274d256bccaa86000467b5a65e0d098e8c1b39299064d444c52546aabb6e3de
|
|
| MD5 |
5cacc3510c490ae866c545485ac0f4d9
|
|
| BLAKE2b-256 |
15d67b8de178d61f7f8f9e9be878786146410b6d05b1a2bb43b6e87deefda87e
|