Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/motoki317/traq-py
traQ API Client Library for Python
https://github.com/motoki317/traq-py
traq traq-bot
Last synced: 3 months ago
JSON representation
traQ API Client Library for Python
- Host: GitHub
- URL: https://github.com/motoki317/traq-py
- Owner: motoki317
- Created: 2022-02-16T04:07:49.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-02-16T04:23:04.000Z (over 2 years ago)
- Last Synced: 2024-07-17T13:55:13.723Z (4 months ago)
- Topics: traq, traq-bot
- Language: Python
- Homepage:
- Size: 235 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# traq.py
[![PyPI version](https://badge.fury.io/py/traq.svg)](https://badge.fury.io/py/traq)
traQ v3 API library for Python >= 3.6.
## Generation
```shell
./generate.sh 3.0.0-0
# Configure PyPI account and ~/.pypirc
./upload.sh
```## Usage
A quick example of posting message to a channel:
```python
from traq import ApiClient, Configuration
from traq.api.message_api import MessageApi
from traq.model.post_message_request import PostMessageRequestif __name__ == '__main__':
client = ApiClient(Configuration(access_token="your-access-token"))
m_api = MessageApi(client)
message = m_api.post_message("channel-id", post_message_request=PostMessageRequest("おいす〜"))
print(message)
```For more, see [./out/README.md](./out/README.md)
## References
- https://openapi-generator.tech/docs/generators/python
- https://packaging.python.org/en/latest/tutorials/packaging-projects/