Metadata-Version: 2.1
Name: pickledsocks
Version: 0.1.6
Summary: Websockets lib
Author-email: Ivan Z <ivangzimmerman@gmail.com>
Project-URL: Homepage, https://github.com/pypa/sampleproject
Project-URL: Issues, https://github.com/pypa/sampleproject/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# pickledsocks


Facilitate connections processes.

Python programs communicate amongst themselves with `pickle` or `json`.
They must communicate with non-python programs with `json`, because
of course non-python processes cannot use `pickle`.


Here's the code, an overview of the important functions:

```python
python_make_server = partial(make_server, pickle)
python_send = partial(send, pickle)


json_make_server = partial(make_server, json)
json_send = partial(send, json)
```

# Simple test program:

```python

import sys
import pickledsocks

is_server = sys.argv[1].strip() == 'y'

def get(data):
    print(f"I got data: {data}")
    return "I got your dataif is_server:

if is_server:
    asyncio.run(module.json_make_server(get, 3952))
else:
    asyncio.run(module.json_send("Hi server from client!", 3952))
```
