Commit Graph

3 Commits

Author SHA1 Message Date
洛水居室
b74b9aef33
Refactor BaseClient class and add cookie property accessor
Added a `cookies` property accessor to the `BaseClient` class, which retrieves cookies from the `httpx` AsyncClient object and returns a `simnet.client.cookies.Cookies` object (which is a custom implementation of the `httpx.Cookies` class). Additionally, the initialization function was refactored to better support using cookies. Now, if `account_id` is not passed in, it will be retrieved from the cookies.
2023-05-09 15:19:36 +08:00
洛水居室
14b107b5a1
🎨 Organize client subdirectories and add __all__ variable
Moves all subdirectories from 'simnet/client' to 'simnet/client/components' and adds the `__all__` variable to all affected files.

This change is intended to improve code organization and make it easier to manage exported symbols from these modules.
2023-05-05 20:04:41 +08:00
洛水居室
90ee5725e0
Add Base Client 2023-05-02 01:02:52 +08:00