Skip to main content

A python lib created from Difficult Rocket development

Reason this release was yanked:

Bug

Project description

lib-not-dr

A python lib came from Difficult Rocket development

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

Information/信息

  • Version/版本: 0.1.6

Author/作者

shenjackyuanjie

License/许可证

MPL-2.0

安装/Install

pip install lib-not-dr

使用/Usage

Nuitka Compiler Helper

simple example 简单示例

import subprocess
from pathlib import Path
from lib_not_dr.nuitka.compile import CompilerHelper

compiler = CompilerHelper(src_file = Path("main.py"))

print(compiler)
subprocess.run(compiler.gen_subprocess_cmd())

more complex example 复杂示例

import sys
import subprocess
from pathlib import Path
from lib_not_dr.nuitka.compile import CompilerHelper

compiler = CompilerHelper(src_file = Path("main.py"), run_after_build=True)

print(compiler)

if '-y' in sys.argv or '--yes' in sys.argv:
    do_run = True
elif '-n' in sys.argv or '--no' in sys.argv:
    do_run = False
else: # do_run is None
    while (do_run := input("compile? [y/n]").lower()) not in ["y", "n", "yes", "no"]:
        pass
        # 获取用户输入是否编译
        # get user confirmation to compile or not
    do_run = True if do_run[0] == "y" else False

if do_run:
    subprocess.run(compiler.gen_subprocess_cmd())

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

Uploaded Source

Built Distribution

lib_not_dr-0.1.6-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

Details for the file lib-not-dr-0.1.6.tar.gz.

File metadata

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

File hashes

Hashes for lib-not-dr-0.1.6.tar.gz
Algorithm Hash digest
SHA256 60bd710b429dd12d648338d2bc9a6d4398224441d68822798aca606629dd5977
MD5 3c5f52856bdeb41d22aec69fac64ddd2
BLAKE2b-256 b96c6ee9deca869950509059f61278ec6d9f067eb69301565bc39c1b68213ed6

See more details on using hashes here.

File details

Details for the file lib_not_dr-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: lib_not_dr-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: pdm/2.8.2 CPython/3.8.18+

File hashes

Hashes for lib_not_dr-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 ba2cf8359578355b7cb391d0b965b6affab664951050977eafa70bb1edb3f8f6
MD5 b8044d43c4b1c14868276c5a07088670
BLAKE2b-256 c73ca43a609046b0921910bdf929d0e11dc588838b4fbaec7a5ed9a80493e8bb

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