Skip to main content

MazeGroup.py is an general prupose library for Python.

Project description

MazeGroup.py

MazeGroup.py is an general prupose library for Python.


Installation

With PyPi :

Use the command pip install mazegroup, python -m pip install mazegroup or py -m pip install mazegroup to install the Python package.

Usage

MazeGroup.py can be imported or can be executed with the CLI command (mazegroup or mg).

With command :

The CLI command usage : mazegroup <command> <args>.

All commands are registered at the initialization.

For exemple mazegroup echo Hello, world! will prints Hello, world!.

With importation :

For import MazeGroup.py in this Python source code (essential to start) :

import mazegroup as mg

For initialize packages (commands packages) :

import mazegroup.imports as imports
imports.importMGPackages()

For use a command in your source code (you must do the last step) :

import mazegroup.commands as commands
import mazegroup.utils as utils  # For error checking

returned = commands.executeCommand("echo", ["Hello,", "world!"])  # Echo "Hello, world!" by example

# If there is an error, shows it (optional) :
if type(returned) != utils.NoError:
	print("Error :", returned.message)

Arguments

You can evaluate Python expression in using py: in the argument (only the actual argument will be evaluate), by example the argument "py:5 + 5" will returns 10, we use " because we also use spaces on the expression.

Commands available :

  • echo <...>
    • Print the textes in arguments.
  • help <...>
    • Shows all commands available.
  • ls <path>
    • Shows all directories and files from the selected path.
  • pyexec <...>
    • Execute the Python code in arguments.
  • pyeval <...>
    • Evaluate the Python expression in arguments.
  • calc <...>
    • Evaluate expression in arguments with the Shaft parser.
  • cd <path>
    • Choose the working directory, work only on MazeGroup.py shell.
  • exit <...>
    • Exit the program, for MazeGroup.py shell.
  • quit <...>
    • Exit the program, for MazeGroup.py shell.
  • pypkg <name> <options>
    • Make a Python package. Options :
      • -f or --full for a full generation.
      • info:{'name': ...} for set package informations (a python dictionnary), keys available :
        • name -> str
        • description -> str
        • author -> str
        • license -> str
        • url -> str
        • date -> str
  • sc <...>
    • SC for Secure Compress, it's a encrypted compression who works with a password, a increment level and a tar level.
    • Usage : mazegroup sc <compress/decompress> <path> <!* output path> <!* password> <!* increments> <!* tar>
    • The default output is in the MazeGroup.py Python package directory, on the part of this command, either mazegroup/sc/out.
  • shell <...>
    • The MazeGroup.py shell. There are modes available, use their start char for enter on it :
      • The system shell mode : § <...>
      • The calc mode : % <...>, equivalant of the command calc but this mode lock the MazeGroup.py shell for expressions.
    • Once you enter in a mode, the rest of commands of after will be locked on this mode, for return to the MazeGroup.py shell, you must enter a empty command.
    • In command arguments (only on the MazeGroup.py shell), the \s will provoks a space.
  • rud <sourcecode> <options>
    • RUD interpreter, a minimal stack-based programming language. No documentation available.
  • update <...>
    • Update MazeGroup.py package.
  • version <...>
    • Show the credits and package informations, including the actual installed version.
  • ver <...>
    • Show the credits and package informations, including the actual installed version.

Libraries

Not documentation available for now. List of all libraries :

  • nl/ Natural Language
  • jygo/ Jygo
  • fluxes Fluxes format parser
  • termgui Terminal GUI tests

Bugs & knowed Issues

This section can be contributed by you in adding other bugs or issues. You can also try to fix these bugs & issues.

  • update command : The package uninstallation stop the command process.

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

mazegroup-0.1.4.3.1.tar.gz (23.1 kB view details)

Uploaded Source

File details

Details for the file mazegroup-0.1.4.3.1.tar.gz.

File metadata

  • Download URL: mazegroup-0.1.4.3.1.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for mazegroup-0.1.4.3.1.tar.gz
Algorithm Hash digest
SHA256 6763eb2ae11bcc19c70593670831d0c650c3e7ad4702044dc8b4350da548ffc1
MD5 429c338267bc63459c9672ff5f4a1ed5
BLAKE2b-256 cba0f209399f5cc2f91fb06080ac662254671f37b0ad1ad94df4f044aaf984d6

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