Name | hgchat JSON |
Version |
0.1.3
JSON |
| download |
home_page | |
Summary | |
upload_time | 2023-05-06 17:21:12 |
maintainer | |
docs_url | None |
author | 0xMRTT |
requires_python | >=3.10,<4.0 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# Hugging Chat Python
## Installation
### As library
#### From Pypi
``` shell
pip install hgchat
```
#### From Codeberg
``` shell
pip install --index-url https://codeberg.org/api/packages/Bavarder/pypi/simple/ hgchat
```
### As an interactive prompt
``` shell
git clone https://codeberg.org/Bavarder/hgchat.git # or https://github.com/Bavarder/hgchat.git
cd hgchat
```
## Usage
### As library
``` python
from hgchat import HGChat
hgchat = HGChat()
r = hgchat.ask(user_input)
for i in r:
char = i["token"]["text"]
if char == "</s>":
print("\n", end="")
else:
print(char, end="")
```
### As an interactive prompt
``` shell
python chat.py
```
Raw data
{
"_id": null,
"home_page": "",
"name": "hgchat",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.10,<4.0",
"maintainer_email": "",
"keywords": "",
"author": "0xMRTT",
"author_email": "0xMRTT@proton.me",
"download_url": "https://files.pythonhosted.org/packages/2d/1a/e1d7a2cb7dc3be5e13bd82c62b44e174085d122057f485218c4d88d0cce5/hgchat-0.1.3.tar.gz",
"platform": null,
"description": "# Hugging Chat Python\n\n## Installation\n\n### As library\n\n#### From Pypi\n\n``` shell\npip install hgchat\n```\n\n#### From Codeberg\n\n``` shell\npip install --index-url https://codeberg.org/api/packages/Bavarder/pypi/simple/ hgchat\n```\n\n### As an interactive prompt\n\n``` shell\ngit clone https://codeberg.org/Bavarder/hgchat.git # or https://github.com/Bavarder/hgchat.git\ncd hgchat\n```\n\n## Usage\n\n### As library\n\n``` python\nfrom hgchat import HGChat\nhgchat = HGChat()\n\nr = hgchat.ask(user_input)\nfor i in r:\n char = i[\"token\"][\"text\"]\n if char == \"</s>\":\n print(\"\\n\", end=\"\")\n else:\n print(char, end=\"\")\n```\n\n### As an interactive prompt\n\n``` shell\npython chat.py\n```\n\n",
"bugtrack_url": null,
"license": "",
"summary": "",
"version": "0.1.3",
"project_urls": null,
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "317be26fdbce33e2bb68ba952cb21c260792a900766b8f767f040bdfbee48d03",
"md5": "f2e42b93717be1fa33cd2a938c1e10ac",
"sha256": "25725da85864cb57abd16d9ce15c270f785b7c1073ad30470609878226b93b0b"
},
"downloads": -1,
"filename": "hgchat-0.1.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f2e42b93717be1fa33cd2a938c1e10ac",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.10,<4.0",
"size": 2868,
"upload_time": "2023-05-06T17:21:10",
"upload_time_iso_8601": "2023-05-06T17:21:10.745774Z",
"url": "https://files.pythonhosted.org/packages/31/7b/e26fdbce33e2bb68ba952cb21c260792a900766b8f767f040bdfbee48d03/hgchat-0.1.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "2d1ae1d7a2cb7dc3be5e13bd82c62b44e174085d122057f485218c4d88d0cce5",
"md5": "2fb3b934f51080dff3b0b500d805ae26",
"sha256": "ac103eef866bc091af0b4c2c5097c5163868acde2a86001e526b8f1d9b7384d2"
},
"downloads": -1,
"filename": "hgchat-0.1.3.tar.gz",
"has_sig": false,
"md5_digest": "2fb3b934f51080dff3b0b500d805ae26",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.10,<4.0",
"size": 2554,
"upload_time": "2023-05-06T17:21:12",
"upload_time_iso_8601": "2023-05-06T17:21:12.487057Z",
"url": "https://files.pythonhosted.org/packages/2d/1a/e1d7a2cb7dc3be5e13bd82c62b44e174085d122057f485218c4d88d0cce5/hgchat-0.1.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-05-06 17:21:12",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "hgchat"
}