Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
django-tabination
A library that enables you to easily build your own tab navigation based on class based views.
Readme
.. image:: https://secure.travis-ci.org/dbrgn/django-tabination.png?branch=master :alt: Build status :target: http://travis-ci.org/dbrgn/django-tabination
.. image:: https://coveralls.io/repos/dbrgn/django-tabination/badge.png?branch=master :alt: Coverage :target: https://coveralls.io/r/dbrgn/django-tabination
.. image:: https://pypip.in/d/django-tabination/badge.png :alt: PyPI download stats :target: https://crate.io/packages/django-tabination
django-tabination is a lightweight (~70 SLOC) Django 1.4+ library that enables you to easily build your own tab navigation based on class based views.
It supports code based creation of tabs directly in your views, conditional displaying/hiding of a tab, translation of the tab labels, tab sorting, multi-level tab navigations and more.
The docs can be found at http://django-tabination.readthedocs.org/.
You can install django-tabination directly from pypi using pip::
$ pip install django-tabination
Currently there is no further configuration needed. For more information about
setup and usage, please refer to the docs
_.
PEP8 <http://www.python.org/dev/peps/pep-0008/>
__ via flake8 <https://pypi.python.org/pypi/flake8>
_ with max-line-width set to 99 and
E126-E128 ignored.
Testing is implemented using tox_ and pytest_. Violations of the coding guidelines will be counted as errors.
The easiest way to run the tests is by simply running tox
::
$ pip install tox
$ tox
This will run all tests in different virtualenvs with different configuration.
Currently there are around 6 different tox environments. They can be listed
with the -l
switch::
$ tox -l
py26-django14
py26-django15
py27-django14
py27-django15
py34-django16
pypy-django14
pypy-django15
To run the tests only in specific environments, use the -e
switch::
$ tox -e py27-django14,py26-django15
Copyright 2012 - 2014 Danilo Bargen (http://dbrgn.ch/) and contributors.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/lgpl.html.
.. _the docs: http://django-tabination.readthedocs.org/en/latest/installation.html .. _semantic versioning: http://semver.org/ .. _tox: http://tox.readthedocs.org/ .. _pytest: http://pytest.org/
FAQs
A library that enables you to easily build your own tab navigation based on class based views.
We found that django-tabination demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.