Python bindings for Opsgenie API
Project description
opsgenie-python-api
Low-level Python bindings for Opsgenie API.
This is a Opsgenie API client library to simplify the interaction with Opsgenie.
Opsgenie API documentation can be found at https://docs.opsgenie.com/docs/
Installation
Install current release by pip
pip install opsgenie-python-api
Getting Started
You need an API token for communicating with Opsgenie REST APIs.
Schedules API
from opsgenie.api.v2 import Schedules
schedules = Schedules(token='<your_api_auth_token>)
users = schedules.get_users()
print(users)
schedules = schedules.get_schedules()
print(schedules)
rotations = schedules.get_schedule_rotations("<scheduleid>")
print(rotations)
overrides = schedulesApi.get_schedule_overrides("<scheduleid>")
print(overrides)
timeline = schedulesApi.get_schedule_timeline("<scheduleid>")
print(timeline)
Contributing
Contribution is welcome. See CONTRIBUTING.md for more details.
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 opsgenie_python_api-0.2.tar.gz.
File metadata
- Download URL: opsgenie_python_api-0.2.tar.gz
- Upload date:
- Size: 6.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
645f20241f60a2b28907360382753aed15e97d20c7e11c83934caaaa90db1f7f
|
|
| MD5 |
3ae2d0299dc9e885834cf5bcdc16e120
|
|
| BLAKE2b-256 |
efe199fc9bf869739200eefe2e3a2bcbfdd86a4782717ededdf8bd9938bfb86c
|
File details
Details for the file opsgenie_python_api-0.2-py3-none-any.whl.
File metadata
- Download URL: opsgenie_python_api-0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
775aad1c79c486100756d0ac11c1356165f504ff9d6bc8e30b3be0e49824aaf1
|
|
| MD5 |
8514487e2c4b81fed9bbe04436b8f8ad
|
|
| BLAKE2b-256 |
fedeca2d7e0d4e8f6de1e6058e0574b521b6c84d89c1a4dd231ceacc1f765b24
|