Skip to main content

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


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.5.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jhu-1.7.5-py3-none-any.whl (13.1 kB view details)

Uploaded Python 3

File details

Details for the file jhu-1.7.5.tar.gz.

File metadata

  • Download URL: jhu-1.7.5.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jhu-1.7.5.tar.gz
Algorithm Hash digest
SHA256 d9cb895402ddc5a5dbe2efd5538b59ddc77a24f398a62fb07ec976e5d38870c3
MD5 58321cb05523bbc05060621826fdd2c3
BLAKE2b-256 0fb865f2db2cb4047380d3160c2bdddec178842bc37b61252789f9f47f20c7a6

See more details on using hashes here.

File details

Details for the file jhu-1.7.5-py3-none-any.whl.

File metadata

  • Download URL: jhu-1.7.5-py3-none-any.whl
  • Upload date:
  • Size: 13.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.9 {"installer":{"name":"uv","version":"0.10.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jhu-1.7.5-py3-none-any.whl
Algorithm Hash digest
SHA256 93fbf1cd237616162b26e7182a240d7d9504eeaa7eca4369c974337f2b01e0a3
MD5 a8e63ff0ff6b76593b434fd1c719296e
BLAKE2b-256 65be2c06e9fa98eb691728214e0964b234ff81f8973ee52e2c5df09b3a71b1fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page