Skip to main content

No project description provided

Project description

Altray Library

Altray is a simple Python utility library made for learning and building small projects. It includes basic tools for text, math, games, patterns, and simple GUI windows.


Installation

pip install altray


Importing

from altray.main import *

Or import specific functions:

from altray import hello, greet, triangle


Features

Basic Functions

hello()
greet("Marco")
meow()
bark()


Date and Time

date()
time()


Drawing Tools

triangle(5)
quadrilateral(4, 6, "*")
bar(10)


Window System

window(500, 800, "My App")


Games and Random Tools

dice_roll()
coin_flip()
timer(5)


Text Tools

reverse_text("hello")
is_even(10)


Example Usage

from altray.main import *

hello()
triangle(5)

print(is_even(7))
print(reverse_text("Marco"))


Notes

  • Some functions print output directly
  • Some functions return values for reuse
  • Requires Python 3.8+

All Rights Reserved 2026

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

altray-1.0.6.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

altray-1.0.6-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

File details

Details for the file altray-1.0.6.tar.gz.

File metadata

  • Download URL: altray-1.0.6.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for altray-1.0.6.tar.gz
Algorithm Hash digest
SHA256 a611e78d2a24f6e45a1076a53aca2b07bf9ad4c35e3df1dfc249a5c1e2b46342
MD5 1605009e9e7ad205b209c67d51e722df
BLAKE2b-256 3a672fcc1d0b19e1d95c8313915f5baa505baa736e70c54643ca0682803a9b90

See more details on using hashes here.

File details

Details for the file altray-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: altray-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for altray-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 83efbc469314f3387357be54cfb32f2f726ee928f4e5eefb0ef6a10d853a0181
MD5 22f7fb6a09e6d41b0c931942a3cc69ef
BLAKE2b-256 4ed564ddd055086b36927adec2ff456b5c04dff8e04824359d3f2dafd601cc1c

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