RearFloor (Background)
RearFloor is a library to make your functions and class methods run in the background asynchronously with just 10 characters.
This is a lightweight library that takes <5 minutes to audit. Whether you're a small developer looking for a solution, or a large and soulless corporation, this library will save you seconds in both server response time and finding an answer on StackOverflow that does the same thing.
Installation
Use the package manager pip to install RearFloor.
pip install rearfloor
Usage
from rearfloor import rearfloor
# Here's a boring, synchronous function
def synchronousFunction(text_to_print: str):
print("Synchronous:", text_to_print)
# Now use that function.
# The rest of the program waits for it to stop before moving on.
synchronousFunction("Lame")
# Here's a rad, asynchronous function
@rearfloor
def asynchronousFunction(text_to_print: str):
print("Asynchronous:", text_to_print)
# Now use *that* function.
# The rest of the program moves on, reducing your wait time on tasks
# that aren't going to return or modify a value.
asynchronousFunction("Sick")
I use this to asynchronously write to the database in a high traffic, low response time Flask application. Now my customers can get a response in <90ms instead of 400-1500ms and the data is still recorded!
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
License
Metadata
Release files for rearfloor 1.0.0
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 |
|---|---|---|---|---|
| rearfloor-1.0.0.tar.gz | 3.2 kB | Without provenance | Details for rearfloor-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rearfloor-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for rearfloor-1.0.0-py3-none-any.whl |
Total release size: 6.8 kB
Release files / rearfloor-1.0.0.tar.gz
| Download URL | rearfloor-1.0.0.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1d5d8a4aa4443fafdb48bc81d947d83884fc932b3f955a7b175e56a409ead412
|
|
BLAKE2b-256 checksum How to use checksums |
2cda5fd54d79ef9d9dc4f66cc9d41d6c9ca0db5f750e88a7fc05c47b2ff11ce2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
|
Release files / rearfloor-1.0.0-py3-none-any.whl
| Download URL | rearfloor-1.0.0-py3-none-any.whl |
|---|---|
| Size | 3.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
099c74001320963fecda9570d502daf848040b6b4bcf640258323703b00fc41a
|
|
BLAKE2b-256 checksum How to use checksums |
e28a01a31fbf50ad758ab330d48c48fd59f3671178b9f87917d832805f77520b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.9
|
Security for rearfloor 1.0.0
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.