Skip to main content

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


Download files

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

Source Distribution

lilliepy_bling-1.0.0.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lilliepy_bling-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

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

Hashes for lilliepy_bling-1.0.0.tar.gz
Algorithm Hash digest
SHA256 cf6edfcc94af5182a81485e8317e7d7328cef4aff8b0147792d046e3427ec8b5
MD5 b5ac62cb761b981342c8c9485485aadc
BLAKE2b-256 a4402b1d5653c1880b5e11a3bd16ae81f03868be81af7f1782aeddae4ee085a6

See more details on using hashes here.

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

Hashes for lilliepy_bling-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8a191ffbf001ef33a9968101860993fe4761feb18ef8b6bd58c81e2e25b53add
MD5 a3f87f0b7e6875db0e928a0d989c91d3
BLAKE2b-256 2808d4afb28e1eff528c397dffb834d3ff237a436da8d767092242668520f4f2

See more details on using hashes here.

Supported by

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