Skip to main content

Lightweight Python utility for efficient code writing.

Project description

🛠 Xa-Framework (v0.1.0)

Xa is a powerful Python utility library that simplifies standard boilerplate code into clean, one-line commands. Xa — это производительная библиотека для Python, превращающая громоздкий стандартный код в чистые однострочные команды.

[EN] Developed by maks39P. Created on February 8, 2026, by a 14-year-old developer with minimal use of AI. [RU] Разработчик: maks39P. Создано 8 февраля 2026 г. 14-летним разработчиком с минимальным использованием ИИ.


EN | Installation

pip install xa

EN | Core Documentation

  1. Console Output & Control
  • tx(*args): Shortcut for print().
  • clr() / clear(): Clears terminal screen (supports Windows/Linux).
  • pau(text) / pause(text): Execution pause (replaces input() for waiting).
  1. Smart Input & Global Variables Important: These functions inject variables directly into the global scope (globals).
  • ir("var_name", "prompt"): Replaces [ var_name = input("prompt") ]
  • irn("var_name", "prompt"): Replaces [ var_name = int(input("prompt")) ] (includes protection against non-integer input).
  • irf("var_name", "prompt"): Replaces [ var_name = float(input("prompt")) ] (supports both dots and commas).
  1. File System (OS wrappers)
  • ls(path): Returns list of files in directory.
  • gwd(): Returns current working directory path.
  • md(name): Creates a new directory.
  • rm(path): Removes a FILE (does not remove directories). Includes Xa-System-Error protection.
  • ren(old, new): Renames a file or directory.
  1. Randomization
  • rn(a, b): Returns random integer (randint).
  • rc(list): Returns random element from list (choice).
  • sh(list): Shuffles list and returns it.

RU | Инструкция по использованию

pip install xa

RU | Техническая документация

  1. Вывод и управление консолью
  • tx(*args): Сокращение для print().
  • clr() / clear(): Полная очистка консоли (Windows/Linux).
  • pau(text) / pause(text): Пауза выполнения кода (ожидание нажатия Enter).
  1. Умный ввод и глобальные переменные Важно: Эти функции создают переменные сразу в глобальной области видимости (globals).
  • ir("имя", "текст"): Заменяет [ имя = input("текст") ]
  • irn("имя", "текст"): Заменяет [ имя = int(input("текст")) ] (с защитой от ввода букв вместо чисел).
  • irf("имя", "текст"): Заменяет [ имя = float(input("текст")) ] (автоматически меняет запятую на точку).
  1. Работа с системой (OS модули)
  • ls(путь): Список содержимого папки.
  • gwd(): Получение пути текущей рабочей директории.
  • md(имя): Создание новой папки.
  • rm(путь): Удаление ФАЙЛА (не папки). Включает обработку Xa-System-Error.
  • ren(старое, новое): Переименование файла или папки.
  1. Рандомизация и списки
  • rn(a, b): Случайное целое число от a до b.
  • rc(список): Случайный выбор элемента из списка.
  • sh(список): Перемешивание элементов списка (shuffle).

Contacts / Контакты: Email: dekabri2316@gmail.com Telegram: @maks39P

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

zaxy-0.1.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

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

zaxy-0.1.0-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file zaxy-0.1.0.tar.gz.

File metadata

  • Download URL: zaxy-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zaxy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ce7505b0dd8c35202fcabe3b8c99bb62d0c0ab27597e14c4e4a39226fdf25ff1
MD5 09cb3075dafc713ecb977e32013e0b86
BLAKE2b-256 e841b02d4af204f5226b7f9b884e6f73f6bbfe956ce24425bbb0b82458f03cdc

See more details on using hashes here.

Provenance

The following attestation bundles were made for zaxy-0.1.0.tar.gz:

Publisher: publish.yml on developer-maksancik/zaxy-project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zaxy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: zaxy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zaxy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 219a99f13e9d7b8e639b247b1ebb82e7cab4fe495b7b533f8fb99e09bba0e21f
MD5 fd5e57dcf1bdbc8492c4ce2c09456cb0
BLAKE2b-256 bc436cd3c829b0fe7b2ec457eb8d2d9eefb83bf9c26b11ae6d7f8877d12fd004

See more details on using hashes here.

Provenance

The following attestation bundles were made for zaxy-0.1.0-py3-none-any.whl:

Publisher: publish.yml on developer-maksancik/zaxy-project

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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