PyAvrio Scheduler
A Python library for authentication and scheduling.
Features
Authentication:
Supports both username/password and access token authentication. Maintains session state using the UserState class.
Scheduler Management:
Choose which topic you want to list: python_notebook, sql_notebook or data_quality List all available schedulers. Trigger specific schedulers by name and ID.
Installation
pip install pyavrio-scheduler
Usage
Authentication
You can authenticate using either username/password or an access token:
from pyavrio_scheduler import Authentication
auth = Authentication()
# Using username and password
auth.authenticate({
'method': 'password',
'username': 'user@example.com',
'password': 'secretpassword'
})
# Using access token
auth.authenticate({
'method': 'access_token',
'access_token': 'your-access-token'
})
The authentication state is maintained globally using the UserState singleton class.
Scheduler Operations:
Once authenticated, you can interact with the scheduler:
# Get scheduler instance from session
scheduler = session.get_scheduler()
# List all schedulers
schedulers = scheduler.list_all(topic_name)
#Triggering a scheduler
scheduler.trigger_scheduler(scheduler_name, scheduler_id, topic_name)
Metadata
Release files for pyavrio-scheduler 20.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 | |
|---|---|---|---|
| pyavrio-scheduler-20.0.0.tar.gz | 6.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyavrio_scheduler-20.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.6 kB
Release files / pyavrio-scheduler-20.0.0.tar.gz
| Download URL | pyavrio-scheduler-20.0.0.tar.gz |
|---|---|
| Size | 6.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ea3620f9f5b2cf8aaeccf4850fb5a654b8d1a48663cec8e1b11c7d2b661057da
|
|
BLAKE2b-256 checksum How to use checksums |
bbb0ac77db7360819a81a9c040449f22eea4a077c7fe8469f3db693fc82c3a0e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.4
|
Release files / pyavrio_scheduler-20.0.0-py3-none-any.whl
| Download URL | pyavrio_scheduler-20.0.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a8d24f7541b2e3608360e25da84afe239384c70db781459fc8754fc75d90d2ff
|
|
BLAKE2b-256 checksum How to use checksums |
16d60e436cd8bd2f218f8c712ce3219970b6b37af7ecf040415c9ba146ed3870
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.11.4
|