A simple wrapper framework for Python 3 projects on Unix Apache2 installations
Instead of messing around with complicated frameworks, AElfi does all the hard work for you, without making the project too heavy. Just put the
AElfi files in your folder, customise the build file to create paths only if you need to, and run aelfi project build
, and you're set to go!
Plus, with integrated mako template support, you don't have to worry about messy view scripts.
- Pure Python 3, no Python 2 problems or other extras
- Simple project building, run the
build.py
script, and it will build a special.htaccess
file. - Customise how it runs without having to mess with
.htaccess
. The config fileaelfi.build
allows you to easily describe any path redirects, or anything else you want, in a clean, concise syntax - Integrated support for mako templates. Save any mako file to
.template
with the same name as a.py
file, and it will automatically run it for you.
- The mako template engine:
sudo
pip3 install mako
- sudo may be neccessay, depending on your system - Antlr4 python runtime for aelfi.build files
sudo
pip3 install antlr4-python3-runtime
AllowOveride
to be on for the entire project folder- That
mod_rewrite
is enabled:
a2enmod rewrite
sudo service apache2 restart
Use AElfi tools for a quick and easy installation
or
Download the latest release, and save it as the folder you want to build your web-app in.
or
wget https://github.com/mrRachar/AElfi/archive/v0.4.6.zip
unzip v0.4.6.zip
mv AElfi-0.4.6 "Your Webapp Name"
- Edit
aelfi.build
to your liking. You can change this later. - Run
aelfi project build
orAElfi/build.py
from the project folder (on Windows, you need to runpython3 ...
). This will generate the appropriate .htaccess file - Start writing you Python files! They should work with no extra tinkering 😃!
Simple as 1, 2, 3!