Upsonic Run
The cloud python function runner with docker and Upsonic Cloud.
Installation
You can install Upsonic by pip3:
pip3 install upsonic_run
Implementing
In this point you can use any Upsonic Cloud.
We will use the Free cloud for these examples and for free YOUR_CLOUD_KEY:
Upsonic cloud_key
YOUR_CLOUD_KEY = "cloud-***"
Also you can set any string for YOUR_GLOBAL_ENCRYPTION_KEY example:
YOUR_GLOBAL_ENCRYPTION_KEY = "Thisismypass"
Basic
from upsonic_run import Upsonic_Run
from upsonic import Upsonic_Cloud
YOUR_CLOUD_KEY = ""
YOUR_GLOBAL_ENCRYPTION_KEY = ""
INTERVAL = 15
cloud = Upsonic_Cloud(YOUR_CLOUD_KEY)
run = Upsonic_Run(cloud, YOUR_GLOBAL_ENCRYPTION_KEY, interval=INTERVAL)
# ------- REGISTER_FUNCTIONS -------
@cloud.active(encryption_key=YOUR_GLOBAL_ENCRYPTION_KEY)
def add(a, b, c=5):
return a + b + c
# ------- RUN -------
print(run.run("add", args_for_func=(15, 5), kwargs_for_func={"c": 25}))
$ 45
Functions
run.add_task("add", endless=False, thread=True, args_for_func=(15, 5), kwargs_for_func={"c": 25})
run.delete_task("add")
Contributing
Contributions to Upsonic Run are welcome! If you have any suggestions or find a bug, please open an issue on the GitHub repository. If you want to contribute code, please fork the repository and create a pull request.
License
Upsonic Run is released under the MIT License.
Contributors
Thank you for your contribution!
Metadata
Release files for upsonic-run 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| upsonic_run-0.1.1.tar.gz | 3.8 kB | Without provenance | Details for upsonic_run-0.1.1.tar.gz |
Release files / upsonic_run-0.1.1.tar.gz
| Download URL | upsonic_run-0.1.1.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b960e154928c8c498a783a689832a4281d6d9c05681e78166baa73c6c9c5a5d3
|
|
BLAKE2b-256 checksum How to use checksums |
d6f1b5ec39c9ff81b3d156ed270ed35bf1679478ca8768422092934f7ba045b9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for upsonic-run 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.