a function to run code on a server, away from the client
Project description
Lilliepy Bling
this function is able to run code far from the client into a private server (the server self-destructs after the function has been ran and returns value)
_server
_server is the function, it takes 3 args:
- name
- func
- args
name
name takes in "name", just slap that in there and you are good to go
func
func is the function you want to execute away from the client, you dont put args in the function here
args
args takes in parameters that are needed for the function in func to run, this is an optional parameter
Example
from lilliepy_bling import _server
def expensive_fibonacci(n):
if n <= 1:
return n
return expensive_fibonacci(n - 1) + expensive_fibonacci(n - 2)
def no_arg_function():
return "This function takes no arguments."
result_1 = _server(__name__, no_arg_function)
result_2 = _server(__name__, no_arg_function)
print(result_1, result_2)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lilliepy_bling-1.0.0.tar.gz.
File metadata
- Download URL: lilliepy_bling-1.0.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cf6edfcc94af5182a81485e8317e7d7328cef4aff8b0147792d046e3427ec8b5
|
|
| MD5 |
b5ac62cb761b981342c8c9485485aadc
|
|
| BLAKE2b-256 |
a4402b1d5653c1880b5e11a3bd16ae81f03868be81af7f1782aeddae4ee085a6
|
File details
Details for the file lilliepy_bling-1.0.0-py3-none-any.whl.
File metadata
- Download URL: lilliepy_bling-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a191ffbf001ef33a9968101860993fe4761feb18ef8b6bd58c81e2e25b53add
|
|
| MD5 |
a3f87f0b7e6875db0e928a0d989c91d3
|
|
| BLAKE2b-256 |
2808d4afb28e1eff528c397dffb834d3ff237a436da8d767092242668520f4f2
|