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.0.tar.gz (10.3 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.0-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lush_exp-0.1.0.tar.gz
  • Upload date:
  • Size: 10.3 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.0.tar.gz
Algorithm Hash digest
SHA256 07451a66771bb1b91b8a3809c49370eeefc127da10177b656554bfaa61da14b3
MD5 1a4844ffc4d18fb572e0b0d0cabd707c
BLAKE2b-256 f21dfc9b857f9650bbc76086f6230d058c62c20c57191f27fd4c02b21e7b02ed

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lush_exp-0.1.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cf55e62765159e6cf257f5b10b497d406343fe68b6db601d307d2d432fd733d7
MD5 565be849643f5f51ddb2dbf67e6d3069
BLAKE2b-256 1d3cdfd4335e617140b3cef8878bd6b46a71d1a632fbd8bc724417d7b3f73408

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