| docs | ||
| src | ||
| .gitignore | ||
| makefile | ||
| README.md | ||
PyAssembler
A simple script that takes all python files in a given folder to assemble them in a single python file
Why
Why ? Because I have a project to do for college, and they allow only one single python file, so let's write a python files assembler
Installation
You will need :
gccto compile the codemaketo use the make file (you can do without, but you'll need to compile by hand)gitif you want to clone if from source, otherwise you can just click Download
Then you can do :
git clone https://github.com/Greensky-gs/pyassemblercd pyassemblermake cleanbuildto build without sanatizers and flags. Just runmaketo run with them if you want- Executable is produced in
bin/main.uwu. Feel free to move it where you please.
Additional compiling options
By default, DISABLE_VERBOSE is active. What it means, is that a macro is set for when you run with -v or --verbose. However, it stills does some checks, even if running without verbosing.
If you care about that maximum efficiency, disable this macro by running make cleanbuild DISABLE_VERBOSE=1
Documentation
You can also create a man page for PyAssembler
To do so, you will need pandoc (as well as git to easily get the repo content)
- If you don't have the repo, clone it
git clone https://github.com/Greensky-gs/pyassembler - Create the man page :
make manpage. It will automatically try to copy the output into/usr/share/man/man1. If you don't want to, you can manually paste it anywhere you please (the copy will fail if you don't give root privileges) - Run
man pyassembler
Developpement
This is still in developpement, for now there are a few things to do :
- Having a working assembler
- A man page entry ? Or proper documentation ?
- Actually handle errors
- Optimise some of the work using childs processes
Usage
Just run pyassembler directory to take all python files and assemble them.
Alternatively get the (limited) help by running pyassembler