liberal-alpha 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ include README.md
2
+ prune tests
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.1
2
+ Name: liberal_alpha
3
+ Version: 0.1.0
4
+ Summary: Liberal Alpha Python SDK for interacting with gRPC-based backend
5
+ Home-page: https://github.com/capybaralabs-xyz/Liberal_Alpha
6
+ Author: capebaralabs
7
+ Author-email: donny@capybaralabs.xyz
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+
14
+ # Liberal Alpha SDK
15
+
16
+ 📡 **Liberal Alpha SDK** 是一个用于与 gRPC 后端交互的 Python SDK,适用于需要提交数据、处理 Alpha 信号的用户。
17
+
18
+ ---
19
+
20
+ ## 🚀 安装
21
+
22
+ 在终端运行以下命令:
23
+ ```bash
24
+ pip install liberal_alpha
25
+
26
+ 📖 使用示例
27
+ 1️⃣ 初始化 SDK
28
+ 你可以使用 默认参数 初始化:
29
+ from liberal_alpha import initialize, liberal
30
+
31
+ initialize()
32
+ 或者 自定义参数:
33
+ initialize(host="127.0.0.1", port=8128)
34
+ 2️⃣ 发送数据
35
+ JSON_Object = {
36
+ "Price": 100000,
37
+ "Volume": 50,
38
+ "Volume_USD": 5000000,
39
+ }
40
+
41
+ liberal.send_data("BTC_SOURCE1", JSON_Object, record_id="1")
42
+ 3️⃣ 发送 Alpha 信号
43
+ alpha_data = {
44
+ "signal": "buy",
45
+ "confidence": 0.85
46
+ }
47
+
48
+ liberal.send_alpha("Alpha_ID", alpha_data, record_id="1")
@@ -0,0 +1,35 @@
1
+ # Liberal Alpha SDK
2
+
3
+ 📡 **Liberal Alpha SDK** 是一个用于与 gRPC 后端交互的 Python SDK,适用于需要提交数据、处理 Alpha 信号的用户。
4
+
5
+ ---
6
+
7
+ ## 🚀 安装
8
+
9
+ 在终端运行以下命令:
10
+ ```bash
11
+ pip install liberal_alpha
12
+
13
+ 📖 使用示例
14
+ 1️⃣ 初始化 SDK
15
+ 你可以使用 默认参数 初始化:
16
+ from liberal_alpha import initialize, liberal
17
+
18
+ initialize()
19
+ 或者 自定义参数:
20
+ initialize(host="127.0.0.1", port=8128)
21
+ 2️⃣ 发送数据
22
+ JSON_Object = {
23
+ "Price": 100000,
24
+ "Volume": 50,
25
+ "Volume_USD": 5000000,
26
+ }
27
+
28
+ liberal.send_data("BTC_SOURCE1", JSON_Object, record_id="1")
29
+ 3️⃣ 发送 Alpha 信号
30
+ alpha_data = {
31
+ "signal": "buy",
32
+ "confidence": 0.85
33
+ }
34
+
35
+ liberal.send_alpha("Alpha_ID", alpha_data, record_id="1")
@@ -0,0 +1,48 @@
1
+ Metadata-Version: 2.1
2
+ Name: liberal-alpha
3
+ Version: 0.1.0
4
+ Summary: Liberal Alpha Python SDK for interacting with gRPC-based backend
5
+ Home-page: https://github.com/capybaralabs-xyz/Liberal_Alpha
6
+ Author: capebaralabs
7
+ Author-email: donny@capybaralabs.xyz
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: License :: OSI Approved :: MIT License
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.6
12
+ Description-Content-Type: text/markdown
13
+
14
+ # Liberal Alpha SDK
15
+
16
+ 📡 **Liberal Alpha SDK** 是一个用于与 gRPC 后端交互的 Python SDK,适用于需要提交数据、处理 Alpha 信号的用户。
17
+
18
+ ---
19
+
20
+ ## 🚀 安装
21
+
22
+ 在终端运行以下命令:
23
+ ```bash
24
+ pip install liberal_alpha
25
+
26
+ 📖 使用示例
27
+ 1️⃣ 初始化 SDK
28
+ 你可以使用 默认参数 初始化:
29
+ from liberal_alpha import initialize, liberal
30
+
31
+ initialize()
32
+ 或者 自定义参数:
33
+ initialize(host="127.0.0.1", port=8128)
34
+ 2️⃣ 发送数据
35
+ JSON_Object = {
36
+ "Price": 100000,
37
+ "Volume": 50,
38
+ "Volume_USD": 5000000,
39
+ }
40
+
41
+ liberal.send_data("BTC_SOURCE1", JSON_Object, record_id="1")
42
+ 3️⃣ 发送 Alpha 信号
43
+ alpha_data = {
44
+ "signal": "buy",
45
+ "confidence": 0.85
46
+ }
47
+
48
+ liberal.send_alpha("Alpha_ID", alpha_data, record_id="1")
@@ -0,0 +1,8 @@
1
+ MANIFEST.in
2
+ README.md
3
+ setup.py
4
+ liberal_alpha.egg-info/PKG-INFO
5
+ liberal_alpha.egg-info/SOURCES.txt
6
+ liberal_alpha.egg-info/dependency_links.txt
7
+ liberal_alpha.egg-info/requires.txt
8
+ liberal_alpha.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ grpcio>=1.40.0
2
+ protobuf>=3.20.0
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,23 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ setup(
4
+ name="liberal_alpha", # 你的 PyPI 包名
5
+ version="0.1.0", # 初始版本号
6
+ author="capebaralabs", # 你的名字
7
+ author_email="donny@capybaralabs.xyz", # 你的邮箱
8
+ description="Liberal Alpha Python SDK for interacting with gRPC-based backend",
9
+ long_description=open("README.md", encoding="utf-8").read(), # 读取 README 作为 PyPI 介绍
10
+ long_description_content_type="text/markdown", # 说明内容格式
11
+ url="https://github.com/capybaralabs-xyz/Liberal_Alpha", # 你的 GitHub 地址
12
+ packages=find_packages(exclude=["tests", "tests.*"]), # 自动找到所有 Python 包
13
+ install_requires=[
14
+ "grpcio>=1.40.0", # 你的 SDK 依赖项
15
+ "protobuf>=3.20.0"
16
+ ],
17
+ classifiers=[
18
+ "Programming Language :: Python :: 3",
19
+ "License :: OSI Approved :: MIT License",
20
+ "Operating System :: OS Independent",
21
+ ],
22
+ python_requires=">=3.6", # 你的 SDK 适用的 Python 版本
23
+ )