WebNest is a lightweight Python framework designed for building web applications quickly. It offers easy project setup, server management, database integration, and custom HTML tags (similar to Jinja2) for dynamic content rendering, such as {{ title }}. WebNest also features simple routing to streamline your development process.
You can install the package using pip:
pip install webnestwebnest createproject 'project-name'In the project directory, you can run server using this command:
python handle.py runserverOpen http://127.0.0.1:8000 to view it in your browser.
If you want to connect to database and migrate table and columns :
-
Go to
models.pyin your project directory then add your model , It will be somthing like this:class User (Model): name = Model.Fields.TextField(verbose_name='username') password = Model.Fields.TextField(verbose_name='password') age = Model.Fields.IntField(verbose_name='password')
-
Then run this commnad to render your changes in
treksfolder in your project directory:python handle.py rendertreks
-
After render your changes in
treksfolder u have to use this command to trek your changes to database:python handle.py trek
Note
webnest framework support sqlite3 only in this version , It will support another type of DB in Upcoming releases , Allah willings