Python library for developing apps for RubyOS
Project description
RK.rubyKit
Python library for developing apps for RubyOS (Release: December 2025 - January 2026)
Installation
pip install RK.rubyKit
Quick Start
Creating a Box
import rk
# Create a mask for UI
ui_mask = rk.mask(rk.UI)
# Create a box at coordinates
box = rk.Box.new(x=0, y=0, z=1)
Using Variables, Waits and Repeats
Create a def.py file with your Python definitions:
# def.py
def wait(seconds):
import time
time.sleep(seconds)
def coolFunc():
print("Cool function!")
In your .rk file, reference these definitions:
import rk
# Read wait function from def.py line 80
machine_context = rk.Machine.Know(ui_mask, 100)
rk.line("80", header="wait", time=10)
# Read function definition from line 20
rk.Machine.Know(ui_mask, 45)
rk.line("20", header="def", var1="coolFunc")
String Creation
# Create a text string with Arial font
text = rk.string("Arial:Text", "Hello RubyOS!")
File Structure
Your RubyKit project should have:
def.py- Python code definitions (waits, functions, etc.)app.rk- RubyKit commands and UI definitionscompile.py- Compilation script
Example app.rk File
make_header(10)
def.py = def
-l import def as d
host(cmd:1)
host(cmd:2)
host(cmd:3)
xa:1 create as:
mask(n.UI)
box.new = coordinates(x:0, y:0, z:1)
xa:2 create as:
machine.Know(mask, 100)
line("80", header: wait, time: 10)
xa:3 create as:
string(Arial:Text, coool)
run(x1-x3)
Example compile.py File
import rk
rk_compiler = rk.RubyKit()
def compile_app(app_name):
rk_compiler.compile_sh("def.py", app_name)
print("Finished installing.")
compile_app("myApp")
Or use the shorthand:
import rk
rk.compile("myApp")
API Reference
Classes
RubyKit- Main compiler and runtimeMask- UI masking operationsBox- UI box element with coordinatesMachine- Read external code definitionsString- Text creation and editing
Functions
mask(ui_type)- Create a new UI maskcoordinates(x, y, z)- Create coordinate dictionaryline(line_num, header, **kwargs)- Reference line from def.pystring(font_text, content)- Create formatted textcompile(app_name)- Compile RubyKit application
Development
To install in development mode:
cd RK.rubyKit
pip install -e .
Building and Distribution
# Build the package
python setup.py sdist bdist_wheel
# Upload to PyPI (requires account)
pip install twine
twine upload dist/*
License
MIT License
Support
For issues and questions, visit: github.com/rubykit/rk.rubykit
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
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 rk_rubykit-0.1.0.tar.gz.
File metadata
- Download URL: rk_rubykit-0.1.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
579917e1dd7e561687f94328eec4b58cde29b4621d89fa6d10bdd87b00cebb5b
|
|
| MD5 |
7d1d0a95708d58c1efc6b8627b503532
|
|
| BLAKE2b-256 |
9866f541e5d953e85ea3f576c7b7006667271541055e318b1b080242a45bd7bd
|
File details
Details for the file rk_rubykit-0.1.0-py3-none-any.whl.
File metadata
- Download URL: rk_rubykit-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c2a8c29a770fd95401080045f6b2b29374b5deb356ceb773beec5b0daff0421
|
|
| MD5 |
491387fabb186f5b53b4f9eab09a527f
|
|
| BLAKE2b-256 |
1b9a37e63950d281e1ef8079f62acbb2f3dfcedf52fc7ae25f145d0dc51a3d95
|