Plaud AI API client 📓
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
- 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__.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
Metadata
Release files for plaud-ai 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| plaud_ai-0.1.1.tar.gz | 7.2 kB | Without provenance | Details for plaud_ai-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| plaud_ai-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for plaud_ai-0.1.1-py3-none-any.whl |
Total release size: 15.1 kB
Release files / plaud_ai-0.1.1.tar.gz
| Download URL | plaud_ai-0.1.1.tar.gz |
|---|---|
| Size | 7.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
450cf95f0640b65180d874c6b433812a79f7996e11343d91560e386d373d3dee
|
|
BLAKE2b-256 checksum How to use checksums |
b6fc732bb328218017a2e468e3a00db5fb186efe576156567f28ad8532960169
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Release files / plaud_ai-0.1.1-py3-none-any.whl
| Download URL | plaud_ai-0.1.1-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07ba871512652d70688bd37a34b52a5ae38979f9e443ee852fcbe5ba9db493d9
|
|
BLAKE2b-256 checksum How to use checksums |
c762ee04e4de08ca18f8b41ed3f01435762b9ef137c81a1b62c3b47e33b7e197
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.4
|
Security for plaud-ai 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.