Skip to main content

A simple interpreter for Fluxel scripts

Project description

Fluxel Interpreter

Fluxel is a simple, user-friendly scripting language and interpreter designed for creating interactive applications with ease. It provides a range of features for building GUI applications, handling user input, and even integrating with AI models.

Installation

Install Fluxel using pip:

pip install fluxel text

Usage

Run a Fluxel script using the command:

fluxel Script.flux text

Features

Variables and Input

  • Variable Declaration: var name = value
  • User Input: ask "Question?"
  • Remember User Input: remember variable_name

Output and Interaction

  • Print to Console: say "Message" + variable
  • Pause Execution: pause

GUI Elements

  • Create Window: window "Window Title"
  • Set Window Size: windowsize "width,height"
  • Add Button: button "Button Text" "Command"
  • Add Label: label "Label Text"
  • Show Window: show window
  • Display Message Box: message "Message Text"

GUI Input Elements

  • Create Entry Field: var entry_name = entry
  • Create Text Area: var text_name = text
  • Get Entry Value: get entry variable_name entry_name

AI Integration (Google Gemini)

  • Configure Gemini: configure_gemini "API_KEY"
  • Generate Content: generate_content "Prompt"

Text Manipulation

  • Append Text: append_text variable_name "Text to append"

Advanced GUI Features

  • Button with Custom Location:

button "Button Text" "Command" objectLocation = x,y text

Example Script

window "My First Fluxel App" windowsize "300,200" label "Welcome to Fluxel!" var name_entry = entry button "Say Hello" "get entry name name_entry message "Hello, " + name + "!" " show window text

Notes

  • The interpreter automatically adds a pause at the end of each script execution.
  • GUI elements are packed vertically by default unless a specific location is provided.
  • The Gemini AI integration requires a valid API key from Google.

Contributing

Contributions to Fluxel are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

fluxel-0.1.2.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

fluxel-0.1.2-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file fluxel-0.1.2.tar.gz.

File metadata

  • Download URL: fluxel-0.1.2.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fluxel-0.1.2.tar.gz
Algorithm Hash digest
SHA256 91e7c9a17088ec26bc02299c0ac44c4104a52dfbd91d1ebb2afc620da43c5f29
MD5 c37fc1667f8c94181dcfd75dc2a7f0b5
BLAKE2b-256 b8642c1fb7a5722e85244a82104e85571999c39ea172b02e2cf1812958a3ccb7

See more details on using hashes here.

File details

Details for the file fluxel-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: fluxel-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for fluxel-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 372c1464964b1c1ed045856d93e546c03f8556c86e671e969c2eea4158e8fdc2
MD5 0de42ad57cc8c99f44a7105ce6e3ec9b
BLAKE2b-256 b86710c14e4adc77c3d1a8cd3343167104dd7bd33d4ceb29fe19f7035ce8e0c2

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