Metadata-Version: 2.1
Name: socket-request
Version: 0.1.19
Summary: socket_request is build and parses HTTP requests with unix domain sockets.
Home-page: https://github.com/jinwoo-j/socket_request
Author: Jinwoo Jeong
Author-email: jinwoo@iconloop.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: halo (>=0.0.31)
Requires-Dist: devtools (>=0.6.1)
Requires-Dist: argparse (>=1.4.0)

# 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:

```python
import socket_request

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

```


```python
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


