sallron

Dynamically schedule data aggregation ⚔️ 👁️ 🗄️
API agnostic data aggregation scheduler that automatically interacts with your interface class and sends responses to DB.
Dependencies
requests
schedule
pymongo
walrus
psutil
pytz
discord-logger
boto3
Setup
pip3 install sallron
DB Structure
To do
Usage
If you want a regular lifecycle, just run the following code:
import sallron
import ExampleInterface
sallron.configureye(
MONGO_CONN_STR='mongodb+srv://...',
MAX_STEEL_URL='https://5423csd3j.exe...',
ADMIN_COLLECTION='admin',
_WEBHOOK='https://discord.com/api/webhooks/...', # Discord webhook for logging
# AWS CONFIG
AWS_ACCESS_KEY_ID="asnwnwjsMANS...",
AWS_SECRET_ACCESS_KEY_ID="JASDWKkjndm$234/mkasd...",
AWS_REGION="us-east-2", # default
LOGGING_BUCKET='s3 bucket name for storing logs'
) # configure your MongoDB settings
sallron.ring_ruler(ExampleInterface, "my_interface")
Now, for auto-resets + notifications on exceptions/crashes, save the previous file as you normally would (i.e. runner.py) and create a new file (i.e. erunner.py):
from sallron import eternal_runner
from os.path import join, dirname
here = dirname(__file__)
if __name__ == "__main__":
filename = "runner.py"
filepath = join(here, filename)
eternal_runner(filepath)
Then just:
python3 erunner.py
Configureye
Required settings:
MONGO_CONN_STR
ADMIN_COLLECTION
Available settings (= std_value):
OS = ‘UBUNTU’
SAVE_LOGS = False
LOG_DIR = “logs/”
MAX_LOG_SIZE = 100000000 # 100Mb
Metadata
Release files for sallron 0.2.15
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 |
|---|---|---|---|---|
| sallron-0.2.15.tar.gz | 17.3 kB | Without provenance | Details for sallron-0.2.15.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sallron-0.2.15-py3-none-any.whl | Python 3 | none | any | Details for sallron-0.2.15-py3-none-any.whl |
Total release size: 36.3 kB
Release files / sallron-0.2.15.tar.gz
| Download URL | sallron-0.2.15.tar.gz |
|---|---|
| Size | 17.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bb1e57164ef2f061a0e628cef6f918a9bb5706f391fc54df0c74a361fcd725d7
|
|
BLAKE2b-256 checksum How to use checksums |
4096b154a637ecf483c424a0556f2116fb88cbaac91eb204e6b5a0e35bfdfeae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Release files / sallron-0.2.15-py3-none-any.whl
| Download URL | sallron-0.2.15-py3-none-any.whl |
|---|---|
| Size | 18.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9c4feea598bedd31bcf7f8daeb6d3f1c38aaa13e98bcdc140ec7fdafd303ecec
|
|
BLAKE2b-256 checksum How to use checksums |
3acf60fe8ac06891f77a6dcc7a265414be86cb421c5565bd93398bb4777c500f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.4
|
Security for sallron 0.2.15
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.