K Script is a simple and educational scripting language developed by Kian. This project includes a compiler (K_Script_0.3_Compiler.py) and a quick start guide for writing basic programs.
- File and Directory Management: Read, write, delete, check existence, list contents, get size, and more for files and directories.
- Advanced HTTP Requests: Support for GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS, plus direct JSON and text fetching.
- Clipboard Functions: Copy, paste, and clear clipboard content.
- Mouse and Keyboard Functions: Click, move, get position, scroll, drag, double-click, and key press detection.
- System Information: Get detailed system and Python environment info.
- GUI Functions: Create windows, show text, and add buttons using Tkinter.
- Hardware Access: Webcam capture, microphone recording, play audio, and show images.
- Text, Binary, and JSON File Utilities: Create, read, and write files in various formats.
- Improved Error Handling: More robust error messages and handling throughout.
- Version and Developer Info: Functions to get version and developer details.
- Cleaner, More Modular Codebase: Over 700 lines of organized code.
- Many new functions for file, directory, system, mouse, keyboard, and clipboard operations.
- Full support for all HTTP request types and direct JSON/text fetching.
- GUI and hardware-related functions (webcam, microphone, image, audio).
- Version and developer info functions.
- Much larger and more professional codebase.
- Simple and easy-to-understand syntax
- Great for learning programming basics
- Supports variables, printing output, and getting user input
- Full HTTP request support
- Terminal and system commands
- Dynamic code execution
- Module importing
- File and directory management
- Clipboard, mouse, and keyboard utilities
- GUI and hardware functions
Download the K Script compiler from:
Place the compiler file in your project folder and rename it to K_Script.py.
Create a file with the .ks Format and write your code.
from K_Script import *
prn("Hello, World")# File management
file_write("test.txt", "Hello!", "w")
content = file_read("test.txt")
delete_file("test.txt")
# Advanced HTTP requests
result = request_put("https://example.com", data={"a":1})
json_data = request_json("https://api.example.com/data")
# Clipboard
copy_to_clipboard("Copied text")
text = paste_from_clipboard()
# Mouse and keyboard
mouse_move(100, 200)
if keyboard("a"):
prn("A key pressed")
# System info
info = system_info()
prn(info["system"])
# GUI window
create_new_window_with_text("Title", "400x300", True, "Hello!")
# Webcam and microphone
webcam_capture("photo.jpg")
microphone_record("audio.wav", duration=3)- Developed by Kian
- Related projects: KDB
All rights reserved © Kian Script Software Foundation (2026)