Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bradleybonitatibus/asyncpd
Asyncio compatible PagerDuty API client with dataclass responses.
https://github.com/bradleybonitatibus/asyncpd
api-client asyncio pagerduty python
Last synced: 27 days ago
JSON representation
Asyncio compatible PagerDuty API client with dataclass responses.
- Host: GitHub
- URL: https://github.com/bradleybonitatibus/asyncpd
- Owner: bradleybonitatibus
- License: apache-2.0
- Created: 2023-09-04T20:13:44.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-07T17:36:20.000Z (over 1 year ago)
- Last Synced: 2024-12-24T02:35:22.685Z (about 1 month ago)
- Topics: api-client, asyncio, pagerduty, python
- Language: Python
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# `asyncpd`
`asyncio` compatible PagerDuty REST API client with `dataclass`-typed response models.
[![ci](https://github.com/bradleybonitatibus/asyncpd/actions/workflows/ci.yaml/badge.svg)](https://github.com/bradleybonitatibus/asyncpd/actions/workflows/ci.yaml)
[![PyPI version](https://badge.fury.io/py/asyncpd.svg)](https://badge.fury.io/py/asyncpd)## Usage
Here is an example usage snippet for interacting with the PagerDuty API
with this package:
```python
import asynciofrom asyncpd import APIClient
async def main():
client = APIClient(
token="my_pagerduty_oauth_token",
)print(await client.abilities.list())
print(await client.abilities.is_enabled("sso"))if __name__ == "__main__":
loop = asyncio.get_event_loop()
loop.run_until_complete(main())```
## Supported APIs
The following list displays what API resources are available in this package.
- [x] Abilities
- [x] Addons
- [x] Analytics
- [ ] Audit
- [ ] Automation Actions
- [ ] Paused Incident Reports
- [ ] Business Services
- [ ] Custom Fields
- [ ] Change Events
- [ ] Escalation Policies
- [ ] Event Orchestrations
- [ ] Extension Schemas
- [ ] Extensions
- [ ] Incidents
- [ ] Incident Workflows
- [ ] Licenses
- [ ] Log Entries
- [ ] Maintenance Windows
- [ ] Notifications
- [ ] On-Calls
- [ ] Priorities
- [ ] Response Plays
- [ ] Rulesets
- [ ] Schedules
- [ ] Service Dependencies
- [ ] Services
- [ ] Webhooks
- [ ] Standards
- [ ] Status Dashboards
- [ ] Tags
- [ ] Teams
- [ ] Templates
- [ ] Users
- [ ] Vendors
- [ ] EventsV2