Skip to main content

lesscode_options是自定义全局配置项,一个地方定义,全局使用

Project description

lesscode_options

介绍

lesscode_options是自定义全局配置项,一个地方定义,全局使用

示例

from lesscode_options.options import define, options

define(name="ceshi", type_=str, default="hello world", help_="说明", callback=str)
define(name="age", type_=int, default=5, help_="年龄", callback=str)

print(options.ceshi)
print(type(options.age))

options.ceshi = "hello"
print(options.ceshi)

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

lesscode_options-0.0.1.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

lesscode_options-0.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file lesscode_options-0.0.1.tar.gz.

File metadata

  • Download URL: lesscode_options-0.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for lesscode_options-0.0.1.tar.gz
Algorithm Hash digest
SHA256 fe07fac6a368a66c712ad86040283186e51258c3eb5632bb17a062b66f38c4db
MD5 60fc948612a728cda12f6590c224edcb
BLAKE2b-256 5f2e2ac102c9e1d756f1a8f2efd8b9fa40e555f8271de73588b308aa77ce9fac

See more details on using hashes here.

File details

Details for the file lesscode_options-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lesscode_options-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ea4f504c4e5abe549a2500e1590d8d64ce53999da6e863823ab01d9488c1d735
MD5 a6db647bdfd0848c4cf362e03fd28901
BLAKE2b-256 f2b4de31ac149d301100ec987bdccf29832988f8596a9aaf62af6789789f06b2

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