Skip to main content

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:

class picklesocks:
    python_make_server = partial(make_server, pickle)
    python_send = partial(send, pickle)

class jsoncks:
    make_server = partial(make_server, json)
    send = partial(send, json)

Simple test program:

import sys

from pickledsocks import jsoncks

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(jsoncks.make_server(get, 3952))
else:
    asyncio.run(jsoncks.send("Hi server from client!", 3952))

Metadata

Release files for pickledsocks 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pickledsocks 0.1.8
File Size Uploaded Provenance
pickledsocks-0.1.8.tar.gz 3.2 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pickledsocks 0.1.8
File Interpreter ABI Platform
pickledsocks-0.1.8-py3-none-any.whl Python 3 none any Details

Total release size: 7.3 kB

Release files / pickledsocks-0.1.8.tar.gz

Download URL pickledsocks-0.1.8.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a1100788064a26ae5a83a04fadc494fa04bfdb3e598f36a9a33d455f1638e585
BLAKE2b-256 checksum
How to use checksums
9bd5144304d2c5c4a6e5d78c25e495ca3f3935f2c097583b95d715dea15fc993
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Release files / pickledsocks-0.1.8-py3-none-any.whl

Download URL pickledsocks-0.1.8-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b9a28f9ce9aed38ca1fac6bdcf77744924d5e737249f2650a1ead333004cf0b
BLAKE2b-256 checksum
How to use checksums
1467619f9dfac329d9b25a4fb4f5823f250e631d8a38b0b8153ced9559ba4925
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.2

Security for pickledsocks 0.1.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page