Skip to main content

Pysfer is a Python library for transfering data between python procseses.

Project description

Pysfer

jhc github python

Pysfer is a Python library for transfering data between python processes. With pysfer you can:

  • Acsess variables or data from different Python programs.
  • Acsess variables or data between 'Main program' and other procseses.
  • Access variables or data in same Python program.

Installation

Use the package manager pip to install pysfer.

pip install pysfer

Usage

import pysfer

# Update or create "my_var" with "Hello World" value
pysfer.default_synchronizer.update("my_var","Hello World!")

# Returns the value of "my_var"
new_var = pysfer.default_synchronizer.get("my_var")

# Delete "my_var" and its value
pysfer.default_synchronizer.delete("my_var")

# It can also read and write custom class values
class Point:
    def __init__(self, x: float, y: float) -> None:
        self.x = x
        self.y = y


p1 = Point(3, 4)
pysfer.default_synchronizer.update("p1", p1)

p2 = pysfer.default_synchronizer.get("p1", Point)
print(p2.x, p2.y) # Prints "3 4"

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. Please make sure to update tests as appropriate.

License

MIT

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

pysfer-0.2.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysfer-0.2.2-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file pysfer-0.2.2.tar.gz.

File metadata

  • Download URL: pysfer-0.2.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pysfer-0.2.2.tar.gz
Algorithm Hash digest
SHA256 7ef60d4350170226f03cfebdc3e87cb62f0fc2c8f41857b34395a731c5e9dbfa
MD5 99718ed5e10a708b4932693a7328c20e
BLAKE2b-256 90aff12e74beb64b1b5ae1e6a135cf551e38d4c26a4ca69c120c77b31ce6881d

See more details on using hashes here.

File details

Details for the file pysfer-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: pysfer-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for pysfer-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 003363d0597d50e0a9d627f89bceb17f54d982350808eee7326e2df59a983bea
MD5 a2d1955305a201ca1016645a3254a228
BLAKE2b-256 307f40f2f3e645826bfccce0dd4e5d1438c2b7e3425238b0547c35ab8fd77c78

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page