Python Scheduler library for Avrio
Project description
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)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyavrio-scheduler-20.0.0.tar.gz.
File metadata
- Download URL: pyavrio-scheduler-20.0.0.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ea3620f9f5b2cf8aaeccf4850fb5a654b8d1a48663cec8e1b11c7d2b661057da
|
|
| MD5 |
55184d5e57ad9f6799aee158ddc79dcc
|
|
| BLAKE2b-256 |
bbb0ac77db7360819a81a9c040449f22eea4a077c7fe8469f3db693fc82c3a0e
|
File details
Details for the file pyavrio_scheduler-20.0.0-py3-none-any.whl.
File metadata
- Download URL: pyavrio_scheduler-20.0.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a8d24f7541b2e3608360e25da84afe239384c70db781459fc8754fc75d90d2ff
|
|
| MD5 |
44d21860a5e0660a62aa269b69c9953c
|
|
| BLAKE2b-256 |
16d60e436cd8bd2f218f8c712ce3219970b6b37af7ecf040415c9ba146ed3870
|