ys_base
YS 统一 SDK:契约模型(contracts)、auth 客户端与差量同步(auth)、WebSocket RPC 基类(ws)、 本地存储(store,默认 SQLite)、子系统服务骨架(server,extra)、交易网关(trade,extra,P4 收编)。
pip install ys_base # 契约 + auth 客户端 + SQLite 存储
pip install ys_base[server] # + FastAPI 子系统骨架
pip install ys_base[trade] # + 交易网关(纯策略系统只装这个)
使用 uv 添加依赖:
uv add ys_base # 契约 + auth 客户端 + SQLite 存储
uv add "ys_base[server]" # + FastAPI 子系统骨架
uv add "ys_base[trade]" # + 交易网关(纯策略系统只装这个)
uv add "ys_base[trade]" --upgrade-package ys-base --index-url https://pypi.org/simple
设计文档:ys_auth/docs/架构方案.md(v6 终版)、契约初稿.md。
Metadata
Release files for ys_base 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ys_base-0.1.4.tar.gz | 48.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ys_base-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 108.6 kB
Release files / ys_base-0.1.4.tar.gz
| Download URL | ys_base-0.1.4.tar.gz |
|---|---|
| Size | 48.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ff49f85f22c2b6f99bfc16c8c6ad062fe35675da102ede6923118d5100038f4e
|
|
BLAKE2b-256 checksum How to use checksums |
876190cf109668ff39a974cae5ee2a9020c14c1b1a6d4f36544c4dc7c0d730b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / ys_base-0.1.4-py3-none-any.whl
| Download URL | ys_base-0.1.4-py3-none-any.whl |
|---|---|
| Size | 59.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
93848a8416ca8803930c69923aa42d99e50ea76a5155bf3744f34addb981a9f7
|
|
BLAKE2b-256 checksum How to use checksums |
4fc81fc3d9292cce85f2289b8e22b3577c8335a16eccca9af259c028ff7d638e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|