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.

⚠️ Support for Sliver v1.5+ is a work in progress.

SliverPy Documentation Status License: GPL v3

Install

Install the package using pip, for best compatibility use Sliver Server v1.5 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.16.tar.gz (79.6 kB view details)

Uploaded Source

Built Distribution

sliver_py-0.0.16-py3-none-any.whl (82.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: sliver-py-0.0.16.tar.gz
  • Upload date:
  • Size: 79.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for sliver-py-0.0.16.tar.gz
Algorithm Hash digest
SHA256 5f44ba432e298dd73ed2687408b294a719e7aef8a15f981456bba443bbccfbf6
MD5 0db5f5f440db296be32cde3d51542f10
BLAKE2b-256 4ecde829a0d4f63a6cf09c7e938985e956ca29d759a9ead6d9faec1d247d1447

See more details on using hashes here.

File details

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

File metadata

  • Download URL: sliver_py-0.0.16-py3-none-any.whl
  • Upload date:
  • Size: 82.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.0 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for sliver_py-0.0.16-py3-none-any.whl
Algorithm Hash digest
SHA256 118266073ab3a3feb03f653a92b4f3cd73095b503993aa96b6eac3aad52f9888
MD5 2880ce22069b0265a08c23434b719ed0
BLAKE2b-256 7e8b18cbcfe5181a82ee258d35af2a7b4ea846c29f6d2e9905ccf7d6f8b44a75

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