Skip to main content

socket_request is build and parses HTTP requests with unix domain sockets.

Project description

socket_request

socket_request is build and parses HTTP requests with unix domain sockets.

Installing socket_reuquest

socket_request is available on PyPI:

pip3 install socket-request

Officially supports Python 3.7+.

Examples:

import socket_request

docker = socket_request.DockerSock(unix_socket="/var/run/docker.sock")
docker.get_docker_images()
import socket_request

control_chain = socket_request.ControlChain(unix_socket="./cli.sock")
control_chain.stop()
control_chain.start()

ConnectSock

  • ConnectSock class
  • request(self, method="GET", url=None, headers={}, payload={}, files={}, return_dict=False) method

ControlChain

Parent class is ConnectSock class

  • ControlChain class
  • start() method
  • stop() method
  • reset() method
  • leave() method
  • backup() method
  • backup_list() method
  • restore(name="name") method
  • join(seed_list=["127.0.0.1:7100"], role=3) method
  • view_chain(detail=False, inspect=False) method
  • chain_config(payload={"key": "autoStart", "value": "true"}) method
  • view_system_config() method
  • system_config(payload={"key": "rpcIncludeDebug", "value": "true"}) method

DockerSock

Parent class is ConnectSock class

  • DockerSock class

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

socket_request-0.1.19-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file socket_request-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: socket_request-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 16.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.8

File hashes

Hashes for socket_request-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 a7c15d035e681a9056c14fefbadfe93db7d44f7f0cb4be7c2eee0457bfdda9f3
MD5 3afe7493b05a08b7f5420d3447a8f400
BLAKE2b-256 01f465dc0aa035bdca7e76ed3486e1a42e15f5680cee226400664bd5d98516ab

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