Python TalkWave
Overview 📖
TalkWave is an AI chatbot for developers written in Python. It features a simple HTML frontend and is designed to be accessible across various browsers and devices. TalkWave supports asynchronous operations and can handle multiple requests simultaneously.
Features ✨
- Accepts a range of parameters to customize the response, such as max tokens, temperature, and stopping conditions.
- Accessible design for cross-browser and device compatibility (Chrome, Firefox, Safari, Edge, and mobile).
- Accurately limits billing with limits and ID binding to prevent exceeding API limits and incurring charges.
- Implements rate limiting functionality to prevent exceeding API limits and incurring charges.
- Plain Python implementation with a limited number of dependencies for easy installation and use.
- Stores responses in log files, JSON, and Markdown formats for easy analysis and sharing.
- Supports multiple GPT models for generating responses, including
gpt-3.5-turbo,text-davinci-002,text-curie-001,text-babbage-001,text-ada-001.
Requirements 📋
- Python 3.6 or higher
- The
openai,tabulate, andpython-dotenvpackages - An OpenAI API key (get one here)
Installation 🛠
- Install the required packages:
pip install openai tabulate python-dotenv
- Clone the TalkWave repository:
git clone https://github.com/sebastienrousseau/talkwave.git
- Add your OpenAI API key to a
.envfile in the project directory:
OPENAI_API_KEY="your_api_key_here"
Usage 🚀
Command Line Interface
To use TalkWave, navigate to the project directory in your terminal and run the following command:
python talkwave -p "Your prompt here"
You can also specify additional options, such as the GPT model, maximum tokens, temperature, and user ID:
python talkwave -m 1 -p "Tell me a joke" -t 50 -T 0.5 -u "test@test.com" -r 5 -s -o "json"
For more information on the available options, run:
python talkwave --help
Web Frontend
To use the web frontend, navigate to the project directory in your terminal and run the following command:
python talkwave/frontend.py
Then, open your browser and navigate to http://127.0.0.1:5000. This
will open the TalkWave web frontend, which you can use to generate
responses.
File Structure 📁
.
├── talkwave
│ ├── data
│ ├── templates
│ │ ├── 404.html
│ │ └── index.html
│ ├── utils
│ │ ├── curl.py
│ │ └── dir.py
│ ├── __init__.py
│ ├── __main__.py
│ ├── core.py
│ └── frontend.py
├── CONTRIBUTING.md
├── Dockerfile
├── LICENSE-APACHE
├── LICENSE-MIT
├── MANIFEST.in
├── README.md
├── README_fr.md
├── TEMPLATE.md
├── pylintrc
├── pyproject.toml
├── requirements.txt
├── setup.cfg
└── setup.py
License 📜
The project is licensed under the terms of both the MIT license and the Apache License (Version 2.0).
Metadata
Release files for talkwave 0.0.6
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 | |
|---|---|---|---|---|
| talkwave-0.0.6.tar.gz | 18.4 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| talkwave-0.0.6-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 36.9 kB
Release files / talkwave-0.0.6.tar.gz
| Download URL | talkwave-0.0.6.tar.gz |
|---|---|
| Size | 18.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a391ef0497e0c1f3cf4f5da82daeef5edefc4b3e2a830c1ee20de348e6a571db
|
|
BLAKE2b-256 checksum How to use checksums |
9e204d356c75835c675f5dda07f0462391709b0b6a2b949761c45a2481f4621e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Release files / talkwave-0.0.6-py2.py3-none-any.whl
| Download URL | talkwave-0.0.6-py2.py3-none-any.whl |
|---|---|
| Size | 18.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
6b62499c49835672aeee8c829e1811cbbcbe3e0d13dd0e0808568bfeea9d732d
|
|
BLAKE2b-256 checksum How to use checksums |
55842fe5168bc858017a3897e62c16fbf756d733a09bf696d9cb2546ef09bfef
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.16
|
Security for talkwave 0.0.6
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.