Skip to main content

Sliver gRPC client library.

Project description

SliverPy

SliverPy is a Python gRPC client library for Sliver. SliverPy can be used to automate any operator interaction with Sliver and connects to servers using gRPC over Mutual TLS (i.e., multiplayer) using Sliver operator configuration files. For more details, please see the project documentation.

SliverPy Documentation Status License: GPL v3

Install

Install the package using pip, for best compatibility use Sliver Server v1.4.11 or later:

pip3 install sliver-py

Examples

For more examples please read the project documentation.

List Sessions / Async List Sessions

#!/usr/bin/env python3

import os
import asyncio
from sliver import SliverClientConfig, SliverClient, AsyncSliverClient

CONFIG_DIR = os.path.join(os.path.expanduser("~"), ".sliver-client", "configs")
DEFAULT_CONFIG = os.path.join(CONFIG_DIR, "default.cfg")


def main():
    ''' Client example '''
    config = SliverClientConfig.parse_config_file(DEFAULT_CONFIG)
    client = SliverClient(config)
    client.connect()
    print('Sessions: %r' % client.sessions())


async def run():
    ''' Async client example '''
    config = SliverClientConfig.parse_config_file(DEFAULT_CONFIG)
    client = AsyncSliverClient(config)
    await client.connect()
    sessions = await client.sessions()
    print('[async] Sessions: %r' % sessions)

if __name__ == '__main__':
    main()
    asyncio.run(run())

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

sliver-py-0.0.0.tar.gz (70.1 kB view details)

Uploaded Source

Built Distribution

sliver_py-0.0.0-py3-none-any.whl (71.5 kB view details)

Uploaded Python 3

File details

Details for the file sliver-py-0.0.0.tar.gz.

File metadata

  • Download URL: sliver-py-0.0.0.tar.gz
  • Upload date:
  • Size: 70.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for sliver-py-0.0.0.tar.gz
Algorithm Hash digest
SHA256 10e6efd54f4b2333febf43047490df25ecaf099f5ef6def10cd2808c3afa7077
MD5 5ebfd826bf475a8c2ead6d850b9d0006
BLAKE2b-256 4c4c1fb99de88cb09e2d8cdd3beafb3ab3a669c71f7c6868ea4eedb139f67be2

See more details on using hashes here.

File details

Details for the file sliver_py-0.0.0-py3-none-any.whl.

File metadata

  • Download URL: sliver_py-0.0.0-py3-none-any.whl
  • Upload date:
  • Size: 71.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for sliver_py-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 696b73761085cf858f344c15761527adeb35f308d7f921591357792b56efa287
MD5 7d55147834c6217091bad16c5e769290
BLAKE2b-256 d799ec71e08f7fb83e83ade382df2a5934e02b1607662891e326ca5f523b4970

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