A package to roast and get roasted by AI.
Project description
RoastedByAI
This is an unofficial Python package for https://roastedby.ai to roast and get roasted by AI.
How to install
Install the package using one of these pip commands (they both install the same package, the first command just does not always work properly on all devices, the second one should always work)
pip install roastedbyai
Windows:
python -m pip install roastedbyai
Linux:
python3 -m pip install roastedbyai
Usage
from roastedbyai import Conversation, Style
convo = Conversation(Style.valley_girl)
user_input = input("Start by roasting the AI:\n>>> ")
response1 = convo.send(user_input)
print(response1)
user_input = input("\nRoast the AI again:\n>>> ")
response2 = convo.send(user_input)
print(response2)
convo.kill()
# This step isn't necessary, the moment you don't use the `convo` object
# anymore, python will automatically handle it
print("\n---\nHistory:\n")
for msg in convo.history:
print(msg["role"], msg["content"], sep=": ")
Contributing
Feel free to open Pull Requests with new features, improvements or fixes.
Disclaimer/Credits
I am not affiliated with https://roastedby.ai, all credits for the AI go to them.
License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file roastedbyai-1.3.0.tar.gz
.
File metadata
- Download URL: roastedbyai-1.3.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bb3b9033e9a4e8dbdb69581d4a7fd82db12b89a44de880678321e9109a0fb094 |
|
MD5 | 9854fdbfe8ba161c1649d742ab770a1a |
|
BLAKE2b-256 | dc812244c40f1e9064e29cad45ba21411bf28a59b36054b72722d567c9ff14c0 |
File details
Details for the file roastedbyai-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: roastedbyai-1.3.0-py3-none-any.whl
- Upload date:
- Size: 21.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a76f1f452e77252e489598a9bbb0a17039fb37c73836c89ceca57e958193194 |
|
MD5 | 3a6d01fc641da887e5693c54425ba057 |
|
BLAKE2b-256 | 8b9d1bebea00fe7cd5eb721f4590ac45cb6c2e4460c3167e94859b09aa040e1d |