SQLAlchemy-Nav provides SQLAlchemy Mixins for creating navigation bars compatible with Bootstrap
Project description
SQLAlchemy-Nav
SQLAlchemy-Nav provides SQLAlchemy Mixins for creating navigation bars compatible with Bootstrap 4. Its Mixins are:
NavbarMixin
for creating navigation barsNavitemMixin
for adding nav-items to the navbarDropdownitemMixin
for adding dropdown-items to nav-items
Example
After setup, we can create nav-bars as follows:
navbar = Navbar(label='Home', href='https://dsbowen.github.io')
Navitem(navbar, label='About', href='/about')
navitem = Navitem(navbar, dropdown=True, label='Projects')
Dropdownitem(navitem, label='Flask-Worker', href='/flask-worker')
Dropdownitem(navitem, label='SQLAlchemy-Mutable', href='/sqlalchemy-mutable')
session.add(navbar)
session.commit()
print(navbar.render().prettify())
Documentation
You can find the latest documentation at https://dsbowen.github.io/sqlalchemy-nav.
License
Publications which use this software should include the following citation for SQLAlchemy-Nav:
Bowen, D.S. (2019). SQLAlchemy-Nav [Computer software]. https://github.com/dsbowen/sqlalchemy-nav
This project is licensed under the MIT License 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
sqlalchemy-nav-0.0.3.tar.gz
(4.1 kB
view hashes)
Built Distribution
Close
Hashes for sqlalchemy_nav-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8125c0c44227db5312843f811a6d10afbcffd74392bfd19d29c6ea0a5a1a2b11 |
|
MD5 | e2242e263c7fb42e7f64a2474142febc |
|
BLAKE2b-256 | c6c1742ee42406e74adfd43317fe935bb682f482b50e366551360a2af11fccbf |