Metadata-Version: 2.1
Name: FlashBootstrap
Version: 1.0a2
Summary: Store Flash messages in session data until they are retrieved. Bootstrap compatibility, sticky messages, and more.
Home-page: https://github.com/emmamartins/FlashBootstrap
Author: Emmanuel Essien
Author-email: emmaessiensp@gmail.com
Maintainer: Emmanuel Essien
Maintainer-email: emmaessiensp@gmail.com
License: GPL3
Description: # Pytonik Bootstrap Flash Message
        
        Store messages in session data until they are retrieved. Bootstrap compatibility, sticky messages, and more
        
        ## Installation
        
        ### With Pip
        
        ````
        pip install FlashBootstrap
        ````
        
        ### With Git
        ````
        git clone https://github.com/emmamartins/FlashBootstrap/
        ````
        
        ### Import the Module:
        
        ````python
        from FlashBootstrap.FlashBootstrap import FlashBootstrap
        ````
        or
        
        ````python
        from FlashBootstrap.FlashBootstrap import *
        ````
        
        ### Defualt Parameter 
        
        ````
        description=""
        title=""
        dismissible=True
        key='flash' 
        
        ````
        
        ## Basic Usage
        
        ````python
        
        #Instantiate the class
        msg = FlashBootstrap
        
        #Add messages With Bootstrap
        msg.info('This is an info message')
        msg.success('This is a success message')
        msg.warning('This is a warning message')
        msg.error('This is an error message')
        
        #Add messages Without Bootstrap
        msg.message('This is an info message')
        
        
        #Wherever you want to display the messages simply call:
        msg.display()
        ````
        
        ### Message Types
        
        #### Info
        ````python
        msg.info('This is a info message')
        ````
        
        ![Info Message](https://pytonik.com/public/assets/home/img/info.png)
        
        #### Success
        ````python
        msg.success('This is a success message')
        ````
        ![Success Message](https://pytonik.com/public/assets/home/img/success.png)
        
        
        #### Warning
        ````python
        msg.warning('This is a warning ')
        ````
        ![Warning Message](https://pytonik.com/public/assets/home/img/warning.png)
        
        #### Error
        ````python
        msg.error('This is a error')
        ````
        ![Error Message](https://pytonik.com/public/assets/home/img/error.png)
        
        ### Redirect
        
        It's possible to redirect to a different URL before displaying a message. For example, redirecting from **checklogin** back to a form **login**, (and displaying an error message) so a user can correct an error - **subjected to pytonik developers**.
        
        ![Error Message](https://pytonik.com/public/assets/home/img/Flashbootstrap.gif)
        
        
        ````python 
          #Import Pytonik
          from pytonik.Web import app
          #Import FlashBootstrap
          from FlashBootstrap.FlashBootstrap import *
        
          def checklogin():
            FlashBootstrap.error('Cannot login account')
            return app.redirect('/login', True)
          
        ````
        
        
Keywords: flash message,boostrap flash,bootstrap pytonik,mvc,oop,module,python,framework,flash,message,web,app,pytonik,web development
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Office/Business
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Application
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python
Requires-Python: >=2.7, >=2.7.*, >=3.*
Description-Content-Type: text/markdown
