Skip to content

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Plaud AI API client πŸ““

PyPI PyPI - Python Version PyPI - License


Documentation: https://docs.plaud.ai/documentation/get_started/overview

Source Code: https://github.com/DmytroLitvinov/python-plaud-ai

PyPI: https://pypi.org/project/plaud-ai/


Python API wrapper around Plaud AI API. Feel free to contribute and make it better! πŸš€

Installation

pip install plaud-ai

Usage

  1. Request creating APP for you via Plaud API Survey (taken link from documentation)
# Example of using Plaud AI API to generate API token
from plaud_ai import PlaudAIAPIClient

client_id = 'xxxxxxxxxxxxxxx'
secret_key = 'yyyyyyyyyyyyyyy'

plaud_ai = PlaudAIAPIClient()
token_response = plaud_ai.api_token.generate_token(client_id, secret_key)
print(token_response.data, token_response.response_code)
api_token = token_response.data['api_token']

# Example of using Plaud AI API client to list devices
from plaud_ai import PlaudAIAPIClient

api_token = 'xxxxxxxxxxxxxxx'

plaud_ai = PlaudAIAPIClient(api_token)

devices_response = plaud_ai.devices_api.list()
print(devices_response.data, devices_response.response_code)

Webhooks

import json

from plaud_ai import is_valid_signature

payload_body = json.dumps(request.json).encode('utf-8')
signature_header = request.headers.get('Plaud-Signature')
webhook_secret = 'your_webhook_secret'

res = is_valid_signature(payload_body, signature_header, webhook_secret)

License

This project is licensed under the terms of the MIT license.

HOW TO MAKE A RELEASE

  • Add changes to CHANGELOG.md
  • Change version in plaud_ai/__init__.py and pyproject.toml
  • source .venv/bin/activate
  • python3 -m build --sdist --wheel
  • twine upload dist/*

Could be issues with license-file and other. Run next command to fix it:

  • pip install -U twine setuptools packaging build

About

Plaud.AI API client πŸ““

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages