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.3.tar.gz (5.5 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.3-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pysfer-0.3.tar.gz
Algorithm Hash digest
SHA256 b361c7693f34e7bfe00408f79ff0c9e4ab2fdee083bd1db7cbccc6b378a882e3
MD5 25d0d1a33a91c42e75dd9f3d88a01203
BLAKE2b-256 4d73bcbdf5f92fb888e03d90ae34c53822eaa9a4c4b6dd8157ed61116b95713c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysfer-0.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cbce4c3a9b11a49829dbd04192c5ea51a65769d063d02e57e0b6dbae92e56d35
MD5 06234ec5d28755bd36053a00e59a9238
BLAKE2b-256 f067f6e59d7ea5f70a1bb070cd094e84cd0e4e88ad4dbb48b1a9d0a3d167dcf3

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