Skip to main content

`positive_tool` 一個輔助開發的 Python 工具模組。目標提供實用的工具

Project description

icon

positive_tool

正體中文 | English

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

主要功能

  • find_project_path:由指定路徑向上查找並回傳專案資料夾路徑。
  • build_logger:使用 loggingrich.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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

positive_tool-0.7.4-py3-none-any.whl (33.6 kB view details)

Uploaded Python 3

File details

Details for the file positive_tool-0.7.4-py3-none-any.whl.

File metadata

  • Download URL: positive_tool-0.7.4-py3-none-any.whl
  • Upload date:
  • Size: 33.6 kB
  • Tags: Python 3
  • Uploaded using 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}

File hashes

Hashes for positive_tool-0.7.4-py3-none-any.whl
Algorithm Hash digest
SHA256 64fbcca9f75d2502fb5c73bdee640a639acc6bca457a38dbcb8276113b83262d
MD5 fde3d17e9d970017bb1a3f7e48424158
BLAKE2b-256 bcd95d13c7f6aa3320dc540dde208ba6f31adea5aa83a85b9df9981730c3cba4

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