Skip to main content

puppetry

Gitter Twitter

Remote objects, like puppet.

For a small project I need to communicate between two process. In one process I have a class which create an object. The other process should access the functions and variables of this object. The process play with the object like an puppetry.

Install

pip install puppetry

Basic usage

Example class:

class HelloWorld(object):

    def __init__(self, name=''):
        self.name = name

    def hello(self, name=None):
        if name: return 'Hello ' + name
        return 'Hello ' + self.name

Server:

from puppetry import RemoteServer

server = RemoteServer((HOST, PORT), obj=HelloWorld('world'))
server.start()

Client:

from puppetry import RemoteClient

client = RemoteClient((HOST, PORT))
print(client.hello())

client.name = 'puppetry'
print(client.hello())

See more examples in the example folder.

Development

Clone repo:

git clone https://github.com/axju/puppetry.git

Create virtual environment and update dev-tools:

python3 -m venv venv
source venv/bin/activate
pip install --upgrade wheel pip setuptools twine tox

Install local:

pip install -e .

Publish the packages:

python setup.py sdist bdist_wheel
twine upload dist/*

Run some tests:

tox
python setup.py test

Metadata

Release files for puppetry 0.0.1

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

Source distribution (sdist)

Source distribution for puppetry 0.0.1
File Size Uploaded Provenance
puppetry-0.0.1.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 10.9 kB

Release files / puppetry-0.0.1.tar.gz

Download URL puppetry-0.0.1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ff494a5bf045d716bfe2b4f81a60eae07ff792eb7d0fd6704864c0c525720f51
BLAKE2b-256 checksum
How to use checksums
1de8ba6ce330e5f6266fa7969dadda705a3e14745a04b10402e74d0b4182e3c7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

Release files / puppetry-0.0.1-py3-none-any.whl

Download URL puppetry-0.0.1-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94f1dc4526398ef03a8241a38fff012accbb500d47ccd85f7217f36773718195
BLAKE2b-256 checksum
How to use checksums
65b698edb0c53bc8df83cfa2393a23f13fb608a145ec81de3551168321606f74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0

Security for puppetry 0.0.1

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files No provenance

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