Skip to main content

Huggingchat api

You Star You Win A BILLION$$$(maybe,it's not impossible that it would happen)

This is my first pypi project. Experienced some annoying moments, but i managed to do it anyway

PyPI version PyPI pyversions

Downloads

pip install hugchat-api

Lastest Change

Last update: 2023-09-30

  • Fix: summarize api removed causing endless loop
  • Feat! : ( Testing, not sure if it's working 🤨 ) System prompt injection
  • rm: Open-Assistant is removed from ListBots
  • Fix: Chatflow error not shown in Message hence hard to debug from log
  • Update: Change multiple type hints to Union to adapt lower python version #87

Screenshots

Normal Chat

hugchat_normal

With Search Web

hugchat_web

Terminal Usage

Start up

python -m hugchat_api.terminal_cli -u your_email
Params Descriptions
-u Login Email
-p Use password or not (optional)
-f Ignore the saved cookie and login
--debug Open cli in with debug log type, log file can be found with the name: terminal_cli.log

Commands

Use / + command to execute:

Commands Descriptions
q/exit Exit the program
ls List all conversations
cd cd into the chosen conversation
new Create a new conversation
rm delete the chosen conversation
old Print out the conversation's histories
web Switch 'Search Web' enable option
pro Provide prompt for System

Anything not start with / will be seen as chat message.

Example:

(None) > /ls
#* Conversations established:
#
#       0. [649471fa525d2d2474973871] - Hello there! How can I help you? Let me know if you need something specific done.
#       1. [64946fb2525d2d247497382c] - Hi there! How can I assist you?

(None) > /cd 0
(647e09ccabd9de3d82d6fba0) > hi
#(user): hi
#(HFBot): ...
(647e09ccabd9de3d82d6fba0) > /web
#WEB_SEARCH is set to `True`
(647e09ccabd9de3d82d6fba0) > hi
# ...(steps about web search)
#(HFBot): ...

Metadata

Release files for hugchat-api 0.0.2.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hugchat-api 0.0.2.5
File Size Uploaded Provenance Actions
hugchat_api-0.0.2.5.tar.gz 31.9 kB Without provenance Details for hugchat_api-0.0.2.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hugchat-api 0.0.2.5
File Interpreter ABI Platform Actions
hugchat_api-0.0.2.5-py3-none-any.whl Python 3 none any Details for hugchat_api-0.0.2.5-py3-none-any.whl

Total release size: 68.1 kB

Release files / hugchat_api-0.0.2.5.tar.gz

Download URL hugchat_api-0.0.2.5.tar.gz
Size 31.9 kB
Tags Source
SHA-256 checksum
How to use checksums
4f11a3888f18380968476b0c547967739dab21716ce34ad94a0d1b01238b9672
BLAKE2b-256 checksum
How to use checksums
38380e82db1e36d821466191f3a9e04b50c3f8947590962b07f27aa3fafcde93
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Release files / hugchat_api-0.0.2.5-py3-none-any.whl

Download URL hugchat_api-0.0.2.5-py3-none-any.whl
Size 36.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
978e17194f3bcf9bb59059557438e42a1e5f2a95c72ad12b0345ea08505b7be0
BLAKE2b-256 checksum
How to use checksums
d348522729e38137d4f0dd702eeaf9e73a7dda3fc8031b576d05d0d09d35c84e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.18

Security for hugchat-api 0.0.2.5

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page