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.2.2.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyflit-2.2.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file pyflit-2.2.2.tar.gz.

File metadata

  • Download URL: pyflit-2.2.2.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for pyflit-2.2.2.tar.gz
Algorithm Hash digest
SHA256 15eb510f5669342d30a812a85e0be6f7dc328c29ed8dfd5adaa67c6d8501d719
MD5 e6e21ad3fb9debd468bed4e44be6d19d
BLAKE2b-256 bcf030103f96c5805bd18d210bc5cd47b96c9ee4c4b2842ed9231e7d4f1f6ad7

See more details on using hashes here.

File details

Details for the file pyflit-2.2.2-py3-none-any.whl.

File metadata

  • Download URL: pyflit-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.12.0

File hashes

Hashes for pyflit-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a764048d8efb7fd2ff12fb37cfb9d7b9b579adf9bc2f683501082d557401edd
MD5 446ad1c9ccd622a7b3cee75cd29e5738
BLAKE2b-256 66582c1e110957c4940b84501448ed27a81e7082145acbf9851625f484b80e1d

See more details on using hashes here.

Supported by

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