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.1.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.1-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pysfer-0.2.1.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.1.tar.gz
Algorithm Hash digest
SHA256 921c47a8cf3bb99e8e2f58df3fb8fa77425a31afc44691f16236e54504e1e12d
MD5 63773de5c3338fd7de6bc94f5d420bfe
BLAKE2b-256 cd2eb0369d16be1ece2866a955ddd48acb7f42793027e443015d6793998489b2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pysfer-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 6.4 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 368d6dda86a8c446d7a9a0aa099a8106b02776f35f9af264de17bba86a03565f
MD5 dbbb992e4b0733672fd28e56b03920ca
BLAKE2b-256 329c66991be12b72b215b8e40fe1157f05b33e48d8955e82fd17c9790330eb92

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