A Python micro web framework for creating dynamic websites.
Project description
Arc 1.0.6
Python micro web framework for creating dynamic websites.
Arc is a python micro framework for creating dynamic web pages. Arc is still under heavy devlopment, and only has support for basic templating and page rendering at the moment. The eventual plan is to make arc able to create web pages with minmial need for coding any frontend yourself. Arc is powered by a CherryPy web server, making it both fast and reliable. You can use any WSGI web server to run an Arc application.
Installation
Arc is relatively easy to get set up with. Arc is cross platform, and can be installed on any operating system. You can install it using pip.
# Windows
pip install arcframework
# Linux
pip3 install arcframework
Quickstart
Arc is a very easy to use libary, and is similar to other micro frameworks such as Flask or Bottle, so learning it won't be too hard. The below is an example of an Arc application.
from arc import App
app = App()
@app.route("/home")
def home(req, res):
res.text = "Hello, World"
if __name__ == "__main__":
app.run()
Copy and paste the above and run your file, you'll get an output like the following in your console.
[INFO] Running on http://127.0.0.1:5000
[INFO] Press CTRL + C to stop
Now go to http://127.0.0.1:5000/home, and you should see Hello World
being displayed on the screen.
Issues/Bugs
Arc is still under heavy development, and I do not recommend you using it in actual production until its finished. Arc has loads of bugs and errors I'm constantly working on resolving. Feel free to open an issue or email me at aboominister@gmail.com, all help would be appreciated.
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
Built Distribution
Hashes for arcframework-1.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 770fe8e08916a7ffd29973e2fd004cbb7e1dd687d35080657aed72e4df3f258b |
|
MD5 | 7a6b8e3ccd7a99bf3f5f8c31790398fb |
|
BLAKE2b-256 | ba4d31aa48b9833ba0efc5c9e16a320a45819adba2a5ab99bada4be932a7034f |