Skip to main content

lidilei de package

Project description

lisdk SDK

一个简单的 Python SDK 示例项目,包含常用的工具类、加密工具和数据库操作封装。

功能特性

  • ApiUtils: 时间处理、随机数据生成、字典深度更新、配置文件读取。
  • Http: 基于 requests 封装的 HTTP 请求类。
  • RSAK: RSA 签名与验签工具。
  • MySQLConnection: 灵活的 MySQL 连接构造器与管理器。

安装

你可以通过 pip 安装该项目(开发模式):

pip install -e .

安装所有开发依赖:

pip install -e ".[dev]"

快速开始

from lisdk import ApiUtils

# 获取当前格式化时间
print(ApiUtils.now())

# 生成随机手机号
print(ApiUtils.mobiles(1))

更多示例请参考 examples/ 目录。

开发与测试

运行测试:

pytest tests/

代码格式化与检查:

ruff check .
black .

发布流程

  1. 删除旧的构建文件:rm -rf dist/
  2. 构建包:python3 -m build
  3. 上传到 PyPI:twine upload dist/*

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

lisdk-0.1.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

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

lisdk-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file lisdk-0.1.0.tar.gz.

File metadata

  • Download URL: lisdk-0.1.0.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for lisdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 30b67b8804408d8a5bcda44e6c1658a9e5f29f5cbc6575b1933eb4a2a306b698
MD5 1b67dc76a0efb8f6f65947559e73e4e7
BLAKE2b-256 72b6e30b9efd42cbc2c0dedf680c4fec5a427b4a3774b47462e81d4fec3a9bdf

See more details on using hashes here.

File details

Details for the file lisdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: lisdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for lisdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 26ef66e875e947feeb61fe2fed6d5bea569285be69bb4f7d30b4afb977772f71
MD5 0c2e48805eecb57fd3452283a532ac5b
BLAKE2b-256 9a2a7e43156a694be6d7edc793ccf13b27aeb740048db4b0143e4c975db93b06

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