Join Happy Universe
Project description
安装
# 通过uv安装
uv add jhu
# 按需安装依赖包, 目前有 auth,security,orm和webhook
uv add 'jhu[auth]'
使用
Auth模块
[!NOTE] Auth模块为第三方应用登录的便捷工具,目前支持飞书和钉钉
from jhu.auth import DingTalk,FeiShu
if __name__ == "__main__":
ding_ak = "ding_ak"
ding_sk = "ding_sk"
d = DingTalk(ding_ak, ding_sk)
# 设置redirect_uri
d.create_login_url("http://localhost:9000/")
# 这里的code从redirect_uri返回的code中获取
d.get_user_info("968999a21b9b38c794d230c5d80742bc")
feishu_ak = "feishu_ak"
feishu_sk = "feishu_sk"
f = FeiShu(feishu_ak, feishu_sk)
# 设置redirect_uri
f.create_login_url("http://localhost:9000/")
# 这里的code从redirect_uri返回的code中获取
f.get_user_info("b8ag458bd0f54712be8c6877273ce415")
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
jhu-1.7.4.tar.gz
(11.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
jhu-1.7.4-py3-none-any.whl
(13.0 kB
view details)
File details
Details for the file jhu-1.7.4.tar.gz.
File metadata
- Download URL: jhu-1.7.4.tar.gz
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4404f2f3bf6eca8e230a8cb7e86c7d0466f4b1b1e798f45c9498c3ee248d02b7
|
|
| MD5 |
39855f8fe20b7225d988c7a4d131e074
|
|
| BLAKE2b-256 |
d4fe1691a7c9d0e900664777f7b45f0d858255d607cc8460bbadbcfd37bd8a34
|
File details
Details for the file jhu-1.7.4-py3-none-any.whl.
File metadata
- Download URL: jhu-1.7.4-py3-none-any.whl
- Upload date:
- Size: 13.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd9f342e9775cde162be9544aa574097c757001ab71ad7535dfedc4656cb8ba2
|
|
| MD5 |
43d6b85bf0c89b22d11cbb5b2ec04dff
|
|
| BLAKE2b-256 |
0434233609f192dfc77431e5b0f335d576053d6d8d360fb002993148ac06ee4a
|