+
Skip to content
/ AElfi Public

Toy Project ─ A simple wrapper framework for Python 3 projects on Unix Apache2 installations

Notifications You must be signed in to change notification settings

mrRachar/AElfi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

A simple wrapper framework for Python 3 projects on Unix Apache2 installations

Documentation

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.

Python 3.4+ stars

Advantages

  1. Pure Python 3, no Python 2 problems or other extras
  2. Simple project building, run the build.py script, and it will build a special .htaccess file.
  3. Customise how it runs without having to mess with .htaccess. The config file aelfi.build allows you to easily describe any path redirects, or anything else you want, in a clean, concise syntax
  4. 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.

How to Setup

Requirements
  • The mako template engine: sudopip3 install mako - sudo may be neccessay, depending on your system
  • Antlr4 python runtime for aelfi.build files sudopip3 install antlr4-python3-runtime
  • AllowOveride to be on for the entire project folder
  • That mod_rewrite is enabled:
a2enmod rewrite
sudo service apache2 restart

Instructions

Install

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"
Get Going
  1. Edit aelfi.build to your liking. You can change this later.
  2. Run aelfi project build or AElfi/build.py from the project folder (on Windows, you need to run python3 ...). This will generate the appropriate .htaccess file
  3. Start writing you Python files! They should work with no extra tinkering 😃!

Simple as 1, 2, 3!

About

Toy Project ─ A simple wrapper framework for Python 3 projects on Unix Apache2 installations

Resources

Stars

Watchers

Forks

Packages

No packages published
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载