Skip to main content

Experimental utilities for the lush ecosystem.

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.2.tar.gz (11.6 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.2-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lush_exp-0.1.2.tar.gz
  • Upload date:
  • Size: 11.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.2.tar.gz
Algorithm Hash digest
SHA256 0eeb2baa271d179a26b82f81c4e3f1f256ee2630b938de47c7c4845637f158a6
MD5 79c983a635bc138932497351b7167134
BLAKE2b-256 025f1d12a632325b360e4275df37e25ec3e254ed684cac7eca7d2f9f951fcc6c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lush_exp-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e5ec29e79bc8fa9acd24afde155bd4b68178b7925e864fe222a524769f7fe6aa
MD5 bb6448a0b1f38a4f3691a5029f87d7b3
BLAKE2b-256 41247b5214247d25e9717a3b7563ec36ddf8f9817cd43c32c26af1e9fedff4c0

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