Skip to main content

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:

  1. NavbarMixin for creating navigation bars
  2. NavitemMixin for adding nav-items to the navbar
  3. DropdownitemMixin 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, as well as its dependencies SQLAlchemy-MutableSoup and SQLAlchemy-OrderingItem:

Bowen, D.S. (2019). SQLAlchemy-Nav [Computer software]. https://github.com/dsbowen/sqlalchemy-nav.

Bowen, D.S. (2020). SQLAlchemy-MutableSoup [Computer software]. https://dsbowen.github.io/sqlalchemy-mutablesoup.

Bowen, D.S. (2019). SQLAlchemy-OrderingItem [Computer software]. https://dsbowen.github.io/sqlalchemy-orderingitem.

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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

sqlalchemy_nav-0.0.4-py3-none-any.whl (7.9 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