Skip to main content

Упрощает какие-то функции

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

  • help(choice="en") – Shows info about the library in selected language

    • "en" by default
    • "ru" for Russian
    • Example: help("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=False to disable import messages
  • 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)

💻 Example usage

from xa_izipy import getdirectory, help, fast_import, get_platform_info

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()  # Get base information as system

# Return a dictionary with system info:
# - 'os'       : Operating system name (e.g., Windows, Linux, Darwin/macOS)
# - 'release'  : OS version or release number (e.g., 10, 11, or specific Linux kernel)
# - 'arch'     : CPU architecture (e.g., x86_64, AMD64, ARM)
# - 'hostname' : Network name of your computer (PC name or device name)
# - 'ram_total_GB'     : Total RAM in gigabytes (rounded to 2 decimals)
# - 'ram_available_GB' : Available/free RAM in gigabytes (rounded to 2 decimals)

print("System info:")
for key, value in info.items():
    print(f" - {key}: {value}")

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

xa_izipy-0.0.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

xa_izipy-0.0.3-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file xa_izipy-0.0.3.tar.gz.

File metadata

  • Download URL: xa_izipy-0.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for xa_izipy-0.0.3.tar.gz
Algorithm Hash digest
SHA256 263f95ea359815587546591d5d820ae384b9d99445b46a8e61d495c44cde970e
MD5 b9cb64d24999190386b8a25bfb670cd9
BLAKE2b-256 0c63fdd10db7249fedc4de61cda86bc93ea4bc5abb79a98e8cd35a53bce77a20

See more details on using hashes here.

File details

Details for the file xa_izipy-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: xa_izipy-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for xa_izipy-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6fb72aa7887e6860825382b68c30469b2d3afa7647e2a0b9f6eaa04b9c4e288b
MD5 95f3308ff13f120cde8c339bf0b2498e
BLAKE2b-256 d3e21f73079257903c806e1d4a9cef55e2a47de77d69bb070f2e7877814abfbe

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