Skip to main content

Remote execution of a simple function on the server

Project description

FunFetch

PyPI PyPI - License Code style: black

Remote execution of a simple function on the server

All types of Python support objects.

Installation

pip install funfetch

Examples

Server

from funfetch import Server

server = Server()

@server.use()
async def test(game: str, test):
    return f"play {game}! just {test}"

server.run()

Client

from funfetch import Client
import asyncio

client = Client()

async def req():
    print(await client.test(game="testuser", test="test"))

asyncio.run(req())

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

funfetch-0.0.1.tar.gz (6.1 kB view hashes)

Uploaded Source

Built Distributions

funfetch-0.0.1-py3.8.egg (14.9 kB view hashes)

Uploaded Source

funfetch-0.0.1-py3-none-any.whl (7.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page