Skip to main content

icon

positive_tool

正體中文 | English

positive_tool 是一個輔助開發的 Python 工具函式庫。目標提供小而實用的工具。

主要功能

  • find_project_path:由指定路徑向上查找並回傳專案資料夾路徑。
  • build_logger:使用 logging 及 rich.RichHandler 建立 Logger 。

測試

uv sync --extra test
uv run pytest

貢獻

  • 歡迎提交 issue 和 pull request。

已知問題

暫未發現

使用

>>> from positive_tool import arg, pt
>>> from positive_tool.exceptions import exceptions
>>> 
def test_func(arg: int):
    ArgType("arg", arg, [int])
    print(arg)
>>> 
try:
    test_func("")
except exceptions.arg.ArgTypeWrongTypeError:
    pass
>>>test_func(10)
10

Metadata

Release files for positive-tool 0.7.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for positive-tool 0.7.4
File Interpreter ABI Platform
positive_tool-0.7.4-py3-none-any.whl Python 3 none any Details

Release files / positive_tool-0.7.4-py3-none-any.whl

Download URL positive_tool-0.7.4-py3-none-any.whl
Size 33.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64fbcca9f75d2502fb5c73bdee640a639acc6bca457a38dbcb8276113b83262d
BLAKE2b-256 checksum
How to use checksums
bcd95d13c7f6aa3320dc540dde208ba6f31adea5aa83a85b9df9981730c3cba4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.26 {"installer":{"name":"uv","version":"0.9.26","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}

Release history Release notifications | RSS feed

This release

0.7.4 This release

1 release file

0.6.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page