# RoastedByAI
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a>
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)
```shell
pip install roastedbyai
```
Windows:
```shell
python -m pip install roastedbyai
```
Linux:
```shell
python3 -m pip install roastedbyai
```
---
## Usage
```python
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
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.
Raw data
{
"_id": null,
"home_page": "https://github.com/jvherck/roastedbyai",
"name": "roastedbyai",
"maintainer": "jvherck",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "jan@vhjan.me",
"keywords": "python, ai, roasting, roasted, roast, roastedbyai",
"author": "jvherck",
"author_email": "jan@vhjan.me",
"download_url": "https://files.pythonhosted.org/packages/dc/81/2244c40f1e9064e29cad45ba21411bf28a59b36054b72722d567c9ff14c0/roastedbyai-1.3.0.tar.gz",
"platform": null,
"description": "# RoastedByAI\r\n<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png\" /></a>\r\n\r\nThis is an *unofficial* Python package for https://roastedby.ai to roast and get roasted by AI.\r\n\r\n\r\n---\r\n\r\n\r\n## How to install\r\nInstall the package using one of these pip commands (they both \r\ninstall the same package, the first command just does not always \r\nwork properly on all devices, the second one should always work)\r\n\r\n```shell\r\npip install roastedbyai\r\n```\r\nWindows:\r\n```shell\r\npython -m pip install roastedbyai\r\n```\r\nLinux:\r\n```shell\r\npython3 -m pip install roastedbyai\r\n```\r\n\r\n\r\n---\r\n\r\n\r\n## Usage\r\n\r\n```python\r\nfrom roastedbyai import Conversation, Style\r\n\r\nconvo = Conversation(Style.valley_girl)\r\n\r\nuser_input = input(\"Start by roasting the AI:\\n>>> \")\r\nresponse1 = convo.send(user_input)\r\nprint(response1)\r\n\r\nuser_input = input(\"\\nRoast the AI again:\\n>>> \")\r\nresponse2 = convo.send(user_input)\r\nprint(response2)\r\n\r\nconvo.kill()\r\n# This step isn't necessary, the moment you don't use the `convo` object\r\n# anymore, python will automatically handle it\r\n\r\nprint(\"\\n---\\nHistory:\\n\")\r\nfor msg in convo.history:\r\n print(msg[\"role\"], msg[\"content\"], sep=\": \")\r\n```\r\n\r\n\r\n---\r\n\r\n\r\n## Contributing\r\nFeel free to open Pull Requests with new features, improvements or fixes.\r\n\r\n\r\n---\r\n\r\n\r\n## Disclaimer/Credits\r\nI am not affiliated with https://roastedby.ai, all credits for the AI go to them.\r\n\r\n\r\n---\r\n\r\n\r\n## License\r\n<a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/4.0/\"><img alt=\"Creative Commons License\" style=\"border-width:0\" src=\"https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png\" /></a><br />This work is licensed under a <a rel=\"license\" href=\"http://creativecommons.org/licenses/by-nc-sa/4.0/\">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>.\r\n\r\n",
"bugtrack_url": null,
"license": "CC BY-NC-SA 4.0",
"summary": "A package to roast and get roasted by AI.",
"version": "1.3.0",
"project_urls": {
"Documentation": "https://github.com/jvherck/roastedbyai",
"Homepage": "https://github.com/jvherck/roastedbyai",
"Source": "https://github.com/jvherck/roastedbyai",
"Tracker": "https://github.com/jvherck/roastedbyai/issues"
},
"split_keywords": [
"python",
" ai",
" roasting",
" roasted",
" roast",
" roastedbyai"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "8b9d1bebea00fe7cd5eb721f4590ac45cb6c2e4460c3167e94859b09aa040e1d",
"md5": "3a6d01fc641da887e5693c54425ba057",
"sha256": "9a76f1f452e77252e489598a9bbb0a17039fb37c73836c89ceca57e958193194"
},
"downloads": -1,
"filename": "roastedbyai-1.3.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "3a6d01fc641da887e5693c54425ba057",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 20974,
"upload_time": "2024-06-07T21:41:02",
"upload_time_iso_8601": "2024-06-07T21:41:02.977579Z",
"url": "https://files.pythonhosted.org/packages/8b/9d/1bebea00fe7cd5eb721f4590ac45cb6c2e4460c3167e94859b09aa040e1d/roastedbyai-1.3.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "dc812244c40f1e9064e29cad45ba21411bf28a59b36054b72722d567c9ff14c0",
"md5": "9854fdbfe8ba161c1649d742ab770a1a",
"sha256": "bb3b9033e9a4e8dbdb69581d4a7fd82db12b89a44de880678321e9109a0fb094"
},
"downloads": -1,
"filename": "roastedbyai-1.3.0.tar.gz",
"has_sig": false,
"md5_digest": "9854fdbfe8ba161c1649d742ab770a1a",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 10896,
"upload_time": "2024-06-07T21:41:04",
"upload_time_iso_8601": "2024-06-07T21:41:04.732244Z",
"url": "https://files.pythonhosted.org/packages/dc/81/2244c40f1e9064e29cad45ba21411bf28a59b36054b72722d567c9ff14c0/roastedbyai-1.3.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-07 21:41:04",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "jvherck",
"github_project": "roastedbyai",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "roastedbyai"
}