+
Skip to content

ogcae/scax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Scax

Python3-based experimental language prototype.


Version Python OS

Quick Start

Clone

git clone https://github.com/ogcae/scax.git

Install

cd scax
pip install -e .

Run

scax --help
scax info

Create and run

scax new MyApp
scax run examples\gui.sx

Example

import gui_ext

let name = 'World'
let controls = [{'type':'label','text':'Click Greet'},{'type':'button','text':'Greet','on_click': lambda: gui_ext.dialog_info('Hello', "Hello {name}")}]
call gui_ext.window(title='GUI Demo', width=500, height=300, controls=controls)

Modules

Module Description
gui Tkinter window helpers
gui_ext Extended widgets, events, menus, dialogs (Tkinter)
api HTTP router (GET/POST/PUT/DELETE, dynamic params, middleware)
db JSON storage, Mongo (env), SQLite helpers
ai GPT/DeepSeek/OpenRouter via .scaxrc or config.aisx

CLI

Command Description
scax new <name> Scaffold project (scax.json, .scaxrc)
scax run <file.sx> Run a Scax file
scax gui <file.sx> Run a GUI Scax file
scax test <file.sx> Syntax check
scax build <path> [--update-changelog] Build to dist/
scax package <path> [--entry] Package via PyInstaller
scax info Show environment info
scax docs Open docs index
scax clean [path] Remove build/cache folders

Install & Build

pip install -e .
scax build . --update-changelog

Tip

Optional dependencies: PyInstaller (package), PyQt5 (gui_qt), pymongo (Mongo helpers).


Examples

gui.sx - db.sx - api.sx - ai.sx


Docs

quickstart.md - spec.md - README.md


Changelog

CHANGELOG.md


made by ogcae

About

Python-based experimental language prototype.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载