Упрощает какие-то функции
Project description
xa_izipy Lib
🎯 Target: Make Python easier (izi) 😎🔥
This library provides a few simple functions to simplify Python scripting — from detecting paths to importing built-in modules faster.
🛠️ Function List (default module)
-
help(choice="en")– Shows info about the library in selected language"en"by default"ru"for Russian- Example:
help("ru")orhelp(choice="ru")
-
getdirectory()– Returns the full path to the script location 📂 -
fast_import(show_loading=True)– Automatically imports common Python libraries (os,time,random,logging,json)- Set
show_loading=Falseto disable import messages
- Set
-
get_platform_info()– Returns detailed system information as a dictionary:os— Operating system name (e.g., Windows, Linux, macOS)release— OS version or release number (e.g., 10, 11, kernel version)arch— CPU architecture (e.g., x86_64, AMD64, ARM)hostname— Network name of the computer (PC name)ram_total_GB— Total RAM in gigabytes (rounded to 2 decimals)ram_available_GB— Available/free RAM in gigabytes (rounded to 2 decimals)
-
typing_text("text", 0.1)— Outputs text with typing animation"text"– Output text"0.1"– Delay in seconds- Example:
typing_text("text", 0.1)ortyping_text("text", delay=0.1)
🧰 Function List (xa_izipy.tools)
create_logger(name="xa_izipy", level=logging.INFO)– Creates a logger instancename– Logger name (default:"xa_izipy")level– Logging level (default:logging.INFO)- Example:
create_logger()orcreate_logger("mylog", logging.DEBUG)
💻 Example usage
from xa_izipy import getdirectory, help, fast_import, get_platform_info, typing_text
print(f"This directory: {getdirectory()}") # Output full path of script
help() # Show info in English
help("ru") # Show info in Russian
fast_import() # Import default modules with logs
info = get_platform_info()
print("System info:")
for key, value in info.items():
print(f" - {key}: {value}")
typing_text("Hello World!", 0.15)
💻 Example usage (xa_izipy.tools)
from xa_izipy.tools import create_logger
logger = create_logger()
logger.info("I like cookie ;>")
logger.warning("I not love cookie :<")
logger.error("I hate cookie :/")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 xa_izipy-0.0.4.0.tar.gz.
File metadata
- Download URL: xa_izipy-0.0.4.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86e155a9d3657dd54a43c3ea8e15ac46c0a5e660fe41ba9011dd299060e9c8d7
|
|
| MD5 |
ce43e204752343ccf71a3248b66b479a
|
|
| BLAKE2b-256 |
551a5d2784379ee7810d1d6ed6250f9bec2bd8780574af27167a10cf6934802f
|
File details
Details for the file xa_izipy-0.0.4.0-py3-none-any.whl.
File metadata
- Download URL: xa_izipy-0.0.4.0-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
683450bbb284bc8d14c3c287262614e4f7e6205c66a878c0961e335b1104004e
|
|
| MD5 |
290290e150151843cf363851a0529bd4
|
|
| BLAKE2b-256 |
78f491384edf9fcd18c7eecb6a5608c949d189cf9c4c724fd2b785b6b1905074
|