Mercury4Free Wrapper
A Python wrapper for the Mercury web API.
Installation
pip install Mercury4Free
Basic Usage
from Mercury4Free.mercury import MercuryClient
client = MercuryClient()
response = client.send_message("What's the weather like?", reasoning_effort="medium")
print(response)
Methods
send_message(prompt, reasoning_effort="medium")
Returns the full response as a string.
stream_chat(messages, reasoning_effort="medium")
Generates a stream of tuples: (message_type, content).
message_type: "text", "reasoning", "reasoning_start", "reasoning_end", "text_start", "text_end", "debug", "error", "done"content: The text/reasoning token, error message, or raw JSON object for signaling types.
Reasoning Effort
The reasoning_effort must be one of:
instantlowmediumhigh
If an invalid value is provided, a ValueError will be raised.
Feel free to fork, star, and use this wrapper in your projects! (Not affiliated with Inception Labs and could be taken down at any time)
Metadata
Release files for Mercury4Free 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mercury4free-0.1.0.tar.gz | 4.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mercury4free-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.6 kB
Release files / mercury4free-0.1.0.tar.gz
| Download URL | mercury4free-0.1.0.tar.gz |
|---|---|
| Size | 4.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad403dd5c883f8662919b1dbb9187579b9285901731fb87c912e76557ad28dd0
|
|
BLAKE2b-256 checksum How to use checksums |
76677558e8438b8926b0c521cd9d83af392876735594850a50d23f22ca6d6168
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|
Release files / mercury4free-0.1.0-py3-none-any.whl
| Download URL | mercury4free-0.1.0-py3-none-any.whl |
|---|---|
| Size | 4.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
620223520f4852c3c76e58f6eb79d95d85d8f64e976a10da8bcd3377739e8a62
|
|
BLAKE2b-256 checksum How to use checksums |
9d10a0cf4d4a4c277950cb296b3f95db3d880627b8ebf421f2faab2e13b21387
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.0
|