Skip to content

Black4315/webnest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webnest

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.

Installation

You can install the package using pip:

pip install webnest

Project

For create new project:

webnest createproject 'project-name'

Every action in project runs from handle.py in your project directory

Available Commands

In the project directory, you can run server using this command:

python handle.py runserver

Open 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.py in 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 treks folder in your project directory:

    python handle.py rendertreks
  • After render your changes in treks folder 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

About

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. WebNest also features simple routing to streamline your development process.

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Packages

 
 
 

Contributors