Skip to main content

A python lib created from Difficult Rocket development

Project description

lib-not-dr

A python lib came from Difficult Rocket development

一个在 Difficult Rocket 开发中 分离出来的 python 库

Information/信息

  • Version / 版本: 0.3.2
  • Author / 作者: shenjackyuanjie 3695888@qq.com

shenjackyuanjie

更新日志|Change Log

License/许可证

MPL-2.0

安装/Install

pip install lib-not-dr
pip install lib-not-dr[nuitka]
# install with nuitka support

发布计划 / Release Plan

文档/Docs

使用/Usage

Logger

WIP 等待 0.4.0

from lib_not_dr import loggers

logger = loggers.get_logger("test")

logger.fine('Hello World!')
logger.debug('Hello World!')
logger.trace('Hello tracing!')
logger.info('Hello World!')  # info!
logger.warn('warnnnnnnn')
logger.error('Hello World!')
logger.fatal('good bye world')

# tag
logger.info('this message if from tag', tag='test')
logger.debug('this debug log if from admin', tag='admin')

# end
logger.debug('and this message ends with none', end=' ')
logger.trace('so this message will be in the same line', tag='same line!')

Nuitka pyproject paser

pyproject.toml 内的配置

Config in pyproject.toml

前往 example/nuitka 查看更多例子

[tool.lndl.nuitka.cli]
main = "main.py"
# --main=main.py
standalone = true
onefile = false
[tool.lndl.nuitka]
script = "xxx.py"

通过 lndl_nuitka 命令行工具使用

Use with lndl_nuitka command line tool

lndl_nuitka .
lndl_nuitka . -- --onefile
# add --onefile to nuitka
lndl_nuitka . -y
# run without confirmation
lndl_nuitka . -n
# do not run

通过 lib_not_dr.nuitka.reader 模块使用

Use with lib_not_dr.nuitka.reader

from tomli import loads
from lib_not_dr.nuitka.reader import main, run_nuitka

pyproject_toml = loads(open("pyproject.toml", "r").read())
nuitka_config = pyproject_toml["tool"]["lndl"]["nuitka"]
nuitka_config["product_version"] = "0.1.0"
command = main(nuitka_config)
run_nuitka(command)

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lib-not-dr-0.3.3rc0.tar.gz (36.5 kB view details)

Uploaded Source

Built Distribution

lib_not_dr-0.3.3rc0-py3-none-any.whl (42.9 kB view details)

Uploaded Python 3

File details

Details for the file lib-not-dr-0.3.3rc0.tar.gz.

File metadata

  • Download URL: lib-not-dr-0.3.3rc0.tar.gz
  • Upload date:
  • Size: 36.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.10.4 CPython/3.8.18+

File hashes

Hashes for lib-not-dr-0.3.3rc0.tar.gz
Algorithm Hash digest
SHA256 68f8f92162602dfada7a73d5c9d461790a5765c24b17c7c2fdfacb91cb035949
MD5 d66942fb26e653259b9c4189657451d5
BLAKE2b-256 b5fddfde221a689edaf8fdfeabb1147b54a85bc826f8f2559abae1c42b96fc2e

See more details on using hashes here.

File details

Details for the file lib_not_dr-0.3.3rc0-py3-none-any.whl.

File metadata

File hashes

Hashes for lib_not_dr-0.3.3rc0-py3-none-any.whl
Algorithm Hash digest
SHA256 9ffd838481837d8324625875f208c45846eb5894b6cdb1c47ade2a997b940eb9
MD5 48d7ab28db9a334232d0f38b8711725d
BLAKE2b-256 1e6dc0af51a1d1b915e7871da38a68e86631a3b95167f243f7f729e588a9a74b

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