{"id":21128753,"url":"https://github.com/gavinwei121/Jetmaker","last_synced_at":"2025-07-08T23:33:14.269Z","repository":{"id":255643298,"uuid":"852668940","full_name":"gavinwei121/Jetmaker","owner":"gavinwei121","description":"An easy Python framework to build distributed systems","archived":false,"fork":false,"pushed_at":"2024-09-20T02:21:18.000Z","size":693,"stargazers_count":48,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-20T05:02:56.781Z","etag":null,"topics":["distributed-computing","distributed-systems","networking","networking-in-python","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gavinwei121.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-05T07:59:38.000Z","updated_at":"2024-10-29T21:44:45.000Z","dependencies_parsed_at":"2024-09-06T13:16:47.992Z","dependency_job_id":"9c6a5281-d8e4-4940-bfec-fb82a7dcf9dc","html_url":"https://github.com/gavinwei121/Jetmaker","commit_stats":null,"previous_names":["gavinwei121/jetmaker"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gavinwei121/Jetmaker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinwei121%2FJetmaker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinwei121%2FJetmaker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinwei121%2FJetmaker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinwei121%2FJetmaker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gavinwei121","download_url":"https://codeload.github.com/gavinwei121/Jetmaker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gavinwei121%2FJetmaker/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264366091,"owners_count":23596974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["distributed-computing","distributed-systems","networking","networking-in-python","python"],"created_at":"2024-11-20T05:02:24.887Z","updated_at":"2025-07-08T23:33:13.991Z","avatar_url":"https://github.com/gavinwei121.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"# Jetmaker\n![Jetmaker Background](assets/jetmaker-background.png)\nJetmaker is an end-to-end framework designed to simplify the development of distributed systems in Python. It enables distributed Python applications to seamlessly access each other's services, resources, objects, and data, making inter-application interactions feel as though they are operating within the same environment. Jetmaker also provides powerful namespace sharing and synchronization tools, allowing distributed applications to work together as a unified, coordinated system.\n\n# Installation\n```pip install jetmaker```\n\n# Commmunication\nJoin this [Discord Community](https://discord.gg/ajKwMGQR) to make Jetmaker better together ^_^ !!!\n\n# Resources\n[Visit Documentation](https://remeny-technologies.gitbook.io/jetmaker-documentation)\n\n# Getting Started\nBelow is a simple example of how two distributed nodes interact with each other's data, namespace and resource\n### Node 1\nUse the IP address and port of Node 1 to start this Jetmaker app, the node calling create_app will act as the coordinator node.\n```python\nfrom jetmaker import create_app\n\nhost = '\u003cyou ip address\u003e:\u003cyour port\u003e'\npwd = '\u003cyour password\u003e'\n\napp = create_app(host=host, password=pwd, join_as='main_node')\n```\ncreate a simple function and a simple stateful object for testing\n```python\ndef recv_string(string):\n    return f'{string} is received'\n\nclass Instance:\n    def __init__(self) -\u003e None:\n        self.val = 0\n    def set_value(self, val):\n        self.val = val\n    def get_value(self):\n        return self.val\n    \ninstance = Instance()\n```\nlink it to the app for the network applications to access\n```python\napp.share(recv_string, 'recv_str')\napp.share(instance, 'ins')\n```\nlet this persist if you it always available for access\n```python\napp.persist()\n```\n### Node 2\nOn another remote node, you can join the network of distributed applications and share services of Node 2 or access services of other nodes .\nJoin the app\n```python\nfrom jetmaker import join_app\n\nhost = '\u003caddress of Node 1\u003e:\u003cport of Node 1\u003e'\npwd = '\u003cyour password\u003e'\n\napp = join_app(host=host, password=pwd, join_as='other_node')\n```\nAccess the function shared by Node1\n```python\nresult = app.call('recv_str').run('this string')\n```\n```-\u003e this string is received```\n\nAccess the object shared by Node1\n```python\n\ninstance = app.Object('ins')\nprint(instance.get_value())\ninstance.set_value(100)\nprint(instance.get_value())\n```\n```\n-\u003e 0\n-\u003e 100\n```\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinwei121%2FJetmaker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgavinwei121%2FJetmaker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgavinwei121%2FJetmaker/lists"}