Skip to main content

Python library for unrealIRCD json-rpc

Project description

UNREALIRCD-RPC-PY

Static Badge Static Badge Dynamic JSON Badge Static Badge

If you are using Python3, this package can help you to parse all json responses it does all the work for you.

How to use this package

$ pip3 install unrealircd_rpc_py

How to work with

This package allows easy interfacing with UnrealIRCd through regular Python3 code, such as:

    from unrealircd_rpc_py.Loader import Loader

    # Initialize your connexion to unrealircd
    rpc = Loader(
            req_method='requests', # you can also use 'socket'
            url='https://your.irc.domaine.org:8600/api',
            endpoint='api',
            host='your.irc.domaine.org',
            port=8600,
            username='apiname',
            password='apiPASSWORD',
            debug_level=10
        )

    # Enjoy the power of JSON-RPC

    User = rpc.User
    response = User.get('adator')

    print(f'Nickname: {response.name}')
    print(f'Ip: {response.ip}')

    Channels = rpc.Channel
    response = Channels.list_(_object_detail_level=3)

    for chan in Channels.DB_CHANNELS:
        if chan.name == '#welcome':
            print(f'Channel: {chan.name}')
            print(f'Created on: {chan.creation_time}')
            print(f'Bans: {chan.bans}')
            print(f'Members: {chan.members}')

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

unrealircd_rpc_py-0.0.5.tar.gz (17.4 kB view details)

Uploaded Source

Built Distribution

unrealircd_rpc_py-0.0.5-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

Details for the file unrealircd_rpc_py-0.0.5.tar.gz.

File metadata

  • Download URL: unrealircd_rpc_py-0.0.5.tar.gz
  • Upload date:
  • Size: 17.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.11

File hashes

Hashes for unrealircd_rpc_py-0.0.5.tar.gz
Algorithm Hash digest
SHA256 ab2424b23a19870d7c731874c8cd938f90784dd9fcc130a93227aa478fd1345d
MD5 9eab54d5aa705b331ee3aedddd9fe4db
BLAKE2b-256 65f41936fb49e13fcd559298f38e2142b470c1dd0efb60c6747b652e61295540

See more details on using hashes here.

File details

Details for the file unrealircd_rpc_py-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for unrealircd_rpc_py-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 430df81ed7a20da5dd9ff32fc5cad1634e1d276469b74a2477754924792e34cc
MD5 feafd8c1ffcdb5aa1e9db14613fad810
BLAKE2b-256 39760b245bcb1df6534f2465e0269e367bef07912a00726f5c84b76bbc2ea547

See more details on using hashes here.

Supported by

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