Mirror for PyAssembler
Find a file
2026-04-09 20:29:18 +02:00
docs Add man page markdown file 2026-04-09 20:25:13 +02:00
src Add custom headers&footers & fix core dump 2026-04-05 12:06:24 +02:00
.gitignore Edit readme 2026-03-29 18:22:56 +02:00
makefile Add doc make command 2026-04-09 19:19:47 +02:00
README.md Add man page creation instructions 2026-04-09 20:29:18 +02:00

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 :

  • gcc to compile the code
  • make to use the make file (you can do without, but you'll need to compile by hand)
  • git if you want to clone if from source, otherwise you can just click Download

Then you can do :

  1. git clone https://github.com/Greensky-gs/pyassembler
  2. cd pyassembler
  3. make cleanbuild to build without sanatizers and flags. Just run make to run with them if you want
  4. 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)

  1. If you don't have the repo, clone it git clone https://github.com/Greensky-gs/pyassembler
  2. 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)
  3. 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