Skip to main content

see README.md

Project description

lush-exp

这里放“还不想定型”的代码: 能用,但不保证 API 稳定.

目前主要分两块:

  • lush_exp.lush_security: JWT/CSP 相关小工具
  • lush_exp.lush_scriptx: 调试/Mock 辅助

一个最小的 JWT 例子:

from lush_exp.lush_security.jwt_manager import JWTConfig, JWTManager, SimpleIDPayload

manager = JWTManager(JWTConfig(secret_key="change-me"))
token = manager.encrypt_model(SimpleIDPayload(id="123"), subject="encrypted_id")
payload = manager.decrypt_model(token, SimpleIDPayload, verify_subject="encrypted_id")

开发

uv sync -p 3.10 --frozen
uv run -p 3.10 pytest

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

lush_exp-0.1.1.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

lush_exp-0.1.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file lush_exp-0.1.1.tar.gz.

File metadata

  • Download URL: lush_exp-0.1.1.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lush_exp-0.1.1.tar.gz
Algorithm Hash digest
SHA256 9b9439d263924f082f933c8c4fc54bb288016c1d3a348d475bd5de5af9e0e2f4
MD5 d0e8e7a78a0bc878ce4f45c6af6c4395
BLAKE2b-256 59f67e4a98e21cc873b72ec8ff4cd51eeec6c98a82e3b055fcc708f61bc3a256

See more details on using hashes here.

File details

Details for the file lush_exp-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lush_exp-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.3 {"installer":{"name":"uv","version":"0.11.3","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for lush_exp-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7da9107a9d4293f975dc1207fcf514217ca5124341988f2471d7182d5371767a
MD5 aa2fdfc19cf1d9d07a4368dbff5a2167
BLAKE2b-256 154d8b5c2afce0109ad7678b6467e541f5c51c3f3750b0c58325b8e75d83b050

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