Skip to main content

PyFlit provides you to add components, pages, and it has many other features.

Project description

PyFlit

Pyflit is a Python Package with many helpful features for FLASK developers. It helps you to add components, pages, send Python variables to JavaScript and many other features like, you can add same navbar for every pages while writing it only once. And if you would like to change the code you need to change the code only for once.

Links

Installation

PyFlit is available on PyPi:

python3 -m pip install pyflit
pip3 install pyflit

PyFlit officially supports Python 3.8+.

Cloning the Repository

git clone https://github.com/Jerit-Baiju/PyFlit.git

Features

  • Add components in pages
  • Render single line HTML
  • Adding CSS
  • Adding JS
  • Send Python variables to JavaScript
  • Easy to Use
  • Install and Use

Usage

from flask import Flask
from pyflit import Page

app = Flask(__name__)

@app.route('/')
def index():
    # INITIALIZING PAGE
    index = Page('index')
    # ADD PAGE TITLE
    index.title('Jerit Baiju')
    # ADD CSS
    index.add_css('index')
    # ADD COMPONENT
    index.add_component('navbar')
    # ADD PAGE
    index.add_page('index')
    index.add_component('footer')
    # EXPORTING
    return index.export()

app.run()

License

MIT. For more information see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyflit-2.3.1.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

pyflit-2.3.1-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page