No project description provided
Project description
Sydney.py
Python Client for Bing Chat, also known as Sydney.
Note This is an unofficial client.
Requirements
- Python 3.10 or newer
- Microsoft account with access to Bing Chat
Installation
To install Sydney.py, run the following command:
pip install sydney-py
or, if you use poetry:
poetry add sydney-py
Usage
To use Syndey.py you first need to extract the _U
cookie from Bing.
Then, set it as an environment variable:
export BING_U_COOKIE=<your-cookie>
Then, you can use the provided Syndey Client:
import asyncio
from sydney import SydneyClient
async def main() -> None:
syndey = SydneyClient()
await syndey.start_conversation()
response = await syndey.ask("Hello, how are you?")
print(response["item"]["messages"][1]["text"])
await syndey.close()
if __name__ == "__main__":
asyncio.run(main())
License
This project is licensed under the MIT License - see the LICENSE file for details.
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
sydney_py-0.1.2.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for sydney_py-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2438f3337e1340e65ded14d4e6f30a8b1a583489b2ccdcc9d83036ad279d94be |
|
MD5 | 01afcbda11fb1c5c25ceb00ae052592d |
|
BLAKE2b-256 | 0b3b8326aa5ce9af2d6672cce3bb9c9a1c22f9cea8fa50eef155649b140ce281 |