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! π
pip install plaud-ai- 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)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)This project is licensed under the terms of the MIT license.
- Add changes to
CHANGELOG.md - Change version in
plaud_ai/__init__.pyandpyproject.toml source .venv/bin/activatepython3 -m build --sdist --wheeltwine upload dist/*
Could be issues with license-file and other. Run next command to fix it:
pip install -U twine setuptools packaging build