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.0.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

lesscode_options-0.0.0-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lesscode_options-0.0.0.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.7.3

File hashes

Hashes for lesscode_options-0.0.0.tar.gz
Algorithm Hash digest
SHA256 020a77eb5918f147827b3f95bf553b1319589a9eeee21d2d0c2f7720dbb301c3
MD5 79b6c8dee6b374a5dfa09c60d1400232
BLAKE2b-256 cf6f8dd534b477dd0b34d02d5d21ba9f18ad8db4512915a8334f8b493129bd69

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lesscode_options-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1451d50b07a463552284b4a44bd4c81cbd4f7327a6c34e605fe6d78d04eb5c39
MD5 450466b6c10e228ef1fbd52f7ae093e8
BLAKE2b-256 43587b81f734a7232356d150ac1b162b7088b8d8a6a3ffac1f8333107bbc386f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page