Some useful tools for Python development
Project description
minwei_tools
This tools contain to major function
- Dotter : Display animated text on screen during long missions
- re_result : A Rust-like approach to error handling
Install
pip install minwei_tools
Usage
-
Dotter
from minwei_tools import Dotter with Dotter(cycle = piano, message="Loading", delay=0.1, show_timer=1) as d: sleep(120)
-
rs_result
from minwei_tools.rs_result import Result, Ok, Err def devide(a: int, b: int) -> Result[int, str]: if b == 0: return Err("Division by zero error") return Ok(a // b) result : Result[int, str] = devide(10, 0) match result: case Ok(value): print(f"Result: {value}") case Err(value): print(f"Error: {value}") result : Result[int, str] = devide(10, 2) match result: case Ok(value): print(f"Result: {value}") case Err(value): print(f"Error: {value}")
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
minwei_tools-0.1.0.tar.gz
(4.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file minwei_tools-0.1.0.tar.gz.
File metadata
- Download URL: minwei_tools-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e44c9b09a7cf4f95b8ddf05e58f0be78b74ba040a627e6bb6a15912c42f05206
|
|
| MD5 |
10b1a6383cd4aa6e62984b1220ec2aa4
|
|
| BLAKE2b-256 |
585e87767e2cead58e1c0caff1e10505d35499d3797f7890a7c6d2368ce84607
|
File details
Details for the file minwei_tools-0.1.0-py3-none-any.whl.
File metadata
- Download URL: minwei_tools-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d765abb1d6ce51fde4b2595a0609075d0ecc59506da8d1075371b6a4a6cc49df
|
|
| MD5 |
7f7cfa3976b8f837085fa16e53cabd0f
|
|
| BLAKE2b-256 |
5e492314d43cd2c88e3f845e2f8815d4935922e5bf94e0593d465a9ad05aa878
|