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
- Make a Python package. Options :
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 commandcalc
but this mode lock the MazeGroup.py shell for expressions.
- The system shell mode :
- 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.
- The MazeGroup.py shell. There are modes available, use their start char for enter on it :
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 Languagejygo/
Jygofluxes
Fluxes format parsertermgui
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
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
File details
Details for the file mazegroup-0.1.4.3.tar.gz
.
File metadata
- Download URL: mazegroup-0.1.4.3.tar.gz
- Upload date:
- Size: 23.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | be01d08de3a20245852985956d0387e9aaa04793f286873778ced210ec8b7ea8 |
|
MD5 | fe506f72beb70ac703c79ef117a3de93 |
|
BLAKE2b-256 | c345d7602629eab761e1b4acd3044810f4c967286785c557cbf2b8288ee938ae |