Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

newsbinpro_client-1.0.2.tar.gz (21.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

newsbinpro_client-1.0.2-py3-none-any.whl (24.9 kB view details)

Uploaded Python 3

File details

Details for the file newsbinpro_client-1.0.2.tar.gz.

File metadata

  • Download URL: newsbinpro_client-1.0.2.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

Hashes for newsbinpro_client-1.0.2.tar.gz
Algorithm Hash digest
SHA256 60965b4cdc3192cfb6a4121ea157e2c4765eb551275c9c2242bd59982f5bf7a6
MD5 92a37a6abcbba68809f93b0810aee24b
BLAKE2b-256 c9712057217f45b4ade359091cfe71e98bcc7bcdb2bb003c89d5bce843dff824

See more details on using hashes here.

File details

Details for the file newsbinpro_client-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for newsbinpro_client-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5cf8a89165e0b293566cb5589ec4916684df1433a4e72eec391e3c96b1ec2106
MD5 10d56476915bac065ec8941070375468
BLAKE2b-256 024654b722c0b6eb2ed607ff4c84df1c904bade0a5bd9a2ac1624390d87b33fe

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page