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:

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)

Uploaded Source

Built Distribution

sqlalchemy_nav-0.0.3-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