Skip to main content

puppetry with objects

Project description

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.


pip install puppetry

Basic usage

Example class:

class HelloWorld(object):

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

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


from puppetry import RemoteServer

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


from puppetry import RemoteClient

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

See more examples in the example folder.


Clone repo:

git clone

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 sdist bdist_wheel
twine upload dist/*

Run some tests:

python test

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for puppetry, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size puppetry-0.0.1.tar.gz (4.5 kB) File type Source Python version None Upload date Hashes View
Filename, size puppetry-0.0.1-py3-none-any.whl (6.4 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page