Saravanan666/pypi-org huggingface dataset:
Package: django-sysinfo
Simple django app to expose system infos like libraries version, database server.Easy to extend to add custom checks.Featuresdump system informationsadmin integrationAPI to add custom checkssimple echoretrieve library versionQuickstartInstall django-sysinfo:pip install django-sysinfoput it in yourINSTALLED_APPS:INSTALLED_APPS=[...
 'django_sysinfo'
]add relevant entries in your url.conf:urlpatterns = (
    ....
    url(r'', include(django_sysinfo.urls)),
)or customize them:from django_sysinfo.views import http_basic_login, sysinfo

urlpatterns = (
    url('sys/info/$', http_basic_login(sysinfo), name='sys-info'),
    url('sys/version/(?P<name>.*)/$', version, name='sys-version')
)Known issues and limitationsThere are some limitations in the metrics returned by sysinfo, anyway this package is
not intended to be used as host/resources monitoring tool.Disk space returns device info, any soft limits are ignoredMemory can be wrong in some virtual environmentsLinksStableDevelopmentProject home page:https://github.com/saxix/django-sysinfoIssue tracker:https://github.com/saxix/django-sysinfo/issues?sortDownload:http://pypi.python.org/pypi/django-sysinfo/Documentation:https://django-sysinfo.readthedocs.org/en/latest/
Package: django-system-information
=====Django-system-information=====Django-system-information is a simple Django app to expose some technical information about your application.These information will be used by webtool dashboard.epfl.ch who centralizes technical information of EPFL.Quick start-----------1. Add SYSTEM_INFORMATION_APPLICATION_NAME = 'name_of_your_application' to your INSTALLED_APPS settings.py2. Include the system-information URLconf in your project urls.py like this::url(r'^system-information/', include('systeminformation.urls')),3. Visit http://127.0.0.1:8000/system-information/ to view technical information
Package: django-systemjs
Django SystemJS brings the Javascript of tomorrow to Django, today.It leverages JSPM (https://jspm.io) to do the heavy lifting for your
client side code, while keeping development flow easy and deployment
without worries. In DEBUG mode, your Javascript modules are loaded
asynchronously. In production, your app is nicely bundled via JSPM
and ties in perfectly withdjango.contrib.staticfiles.InstallationFollow the documentation onhttp://django-systemjs.readthedocs.org/en/latest/.
Package: django-t10e
django-t10edjango-t10eis an approach that allows you to translate the contents of
your models.django-t10estands fordjango-translatable.The concept behind django-t10e is that we have one model instance per
language. This means one object that is translated into two different languages
will be represented by two rows in the model’s database table. Every translatable
model has alanguagefield and atranslation_setfield.languageobviously defines the language of each translation andtranslation_setgroups the translations of one entity together. All
instances with the sametranslation_setare considered to be different
translations of the same entity. An entity might be a news article that is
translated into multiple languages..Thetranslation_setfield is amodels.ForeignKey('self')field, so it
always points to instances of the same model. The first saved instance of one
translation will set this foreign key to its own primary key. The instance to
which all translations of one entity point to (the first translation) is called
the base translation.An example. Let’s assume the following page instances:Article(id=13,title='I18Nis hard',language='en',translation_set=13)Article(id=14,title='Internationalisierungist schwer',language='de',translation_set=13)Article(id=15,title='Lainternacionalización es dura',language='es',translation_set=13)The article withid=13is considered the base translation.id=14is the
german translation ofid=13.id=15is the spanish translation ofid=13. All three make up one translation set for the “I18N is hard”
article.There might also be fields that don’t need translation, like date fields etc.
These are synced in the translation set. For example: an article model might
have apub_datefield. So all translations in one translation set have the
samepub_datevalue assigned. When one translation is changed you need to
call theupdate_translations()method. That will update all other instances
in the translation set accordingly.DevelopmentInstall the dependencies (including the test dependencies) with:pip install -r requirements.txtThen you can run all tests with:toxChangelog0.1.0Initital release.
Package: django-tabbed-changeform-admin
django-tabbed-changeform-adminGroup fieldsets or inlinegroups into tabs for django admin's changeform.Installpipinstalldjango-tabbed-changeform-adminUsgaepro/settings.pyNote:We used jquery and jquery-ui's static files, so we MUST add django_static_jquery_ui in INSTALLED_APPS.We override admin/change_form.html, so we MUST add django_tabbed_changeform_admin in INSTALLED_APPS.INSTALLED_APPS=[....'django_static_jquery_ui','django_tabbed_changeform_admin',...]app/admin.pyNote:Create ModelAdmin based on DjangoTabbedChangeformAdmin.Adda sepcial class nameto every fieldset or inline group.Addtabsproperty to admin. It's a list of (Tab-Name, Content-Class-Names) pair.You can gettabsdynamically by overriding methodget_tabs(self, request, object_id, form_url, extra_context).fromdjango.contribimportadminfromdjango_tabbed_changeform_admin.adminimportDjangoTabbedChangeformAdminfrom.modelsimportBookfrom.modelsimportCharacterclassCharacterInline(admin.TabularInline):model=Characterextra=0classes=["tab-character-inline"]classBookAdmin(DjangoTabbedChangeformAdmin,admin.ModelAdmin):save_on_top=Truelist_display=["name","published_time","publisher"]fieldsets=[(None,{"fields":["name"],"classes":["tab-basic"],}),("Publish Information",{"fields":["published_time","publisher"],"classes":["tab-publish-info"],})]inlines=[CharacterInline,]tabs=[("Basic Information",["tab-basic","tab-publish-info"]),("Characters",["tab-character-inline"]),]admin.site.register(Book,BookAdmin)Releasesv0.1.0 2020/03/17First releases.v0.1.1 2020/03/18Set property tabs' default value to empty list.tabs = [].Usedjango_tabbed_changeform_admin_tabsfor the context variable, so it will NOT conflict with other applications.v0.1.2 2020/03/18Fix template problem while checking context variabledjango_tabbed_changeform_admin_tabsexists or not.v0.1.3 2020/03/21Do deep copy inget_tabs, so that it will NOT chaos the originaltabssetting.v0.1.4 2020/09/23Fix django_static_jquery3 upgrade problem.Add app_requires.Add LICENSE file.v0.1.5 2020/09/23Remove django-static-jquery3 depends, using django vendor jquery.js instead.Tips: put your js between "admin/js/vendor/jquery/jquery.js" and "admin/js/jquery.init.js".v0.1.6 2020/09/23doc fix.v0.1.7 2023/09/15Doc update.
Package: django-tabination
django-tabinationis 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.Supported Django versions: 1.4, 1.5, 1.6Supported Python versions: 2.6, 2.7, 3.3, 3.4, pypy2DocsThe docs can be found athttp://django-tabination.readthedocs.org/.InstallingYou can installdjango-tabinationdirectly from pypi using pip:$ pip install django-tabinationCurrently there is no further configuration needed. For more information about
setup and usage, please refer tothe docs.Coding GuidelinesPEP8viaflake8with max-line-width set to 99 and
E126-E128 ignored.TestingTesting is implemented usingtoxandpytest. Violations of the coding
guidelines will be counted as errors.The easiest way to run the tests is by simply runningtox:$ pip install tox
$ toxThis will run all tests in different virtualenvs with different configuration.
Currently there are around 6 different tox environments. They can be listed
with the-lswitch:$ tox -l
py26-django14
py26-django15
py27-django14
py27-django15
py34-django16
pypy-django14
pypy-django15To run the tests only in specific environments, use the-eswitch:$ tox -e py27-django14,py26-django15LicenseCopyright 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, seehttp://www.gnu.org/licenses/lgpl.html.
Package: django-table-archive
Django table archive is an app that will allow you to backup your models in MySQL to a different database.Quick startpip installdjango-table-archiveAdd “django_table_archive” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'django_table_archive',
]Add this to your settings.py:ARCHIVE_TABLES = [
    {
        'table': 'api_person',
        'days_old': '90',
        'date_field': 'date_created'
    }
]
Package: django_tableaux
Django tables with Advanced User eXperienceThis project builds upon two well-established django apps:django_tables2anddjango_filterand enhances their functionality through a
sprinkling ofhtmxmagic. It provides a single class-based view in which you can enable multiple
features to deliver a customised user experience that embodies the best practice for interactive tables.Key featuresThe columns to display can be user-definedFully responsive: Define different column layouts for mobile, tablet and desktopBulk actions on selected rows or on all (possibly filtered) rowsInfinite scrollInfinite load-more dataPosition filters in a toolbar, in a modal or embed them within the table headerShow active filters with ability to clear individual filtersEdit specific fields directly inside the tableEasy integration with generic views for CRUD operationsThe project is still in beta but is fully usable.Full documentation to follow.
Package: django-tablefield
Django TablefieldIt uses Handsontable JS library (0.38.1 version. MIT Lisence). It is almost like wagtail'sTableBlock.But for plain Django andadded functional of merge cells and alignment.Installationpipinstalldjango-tablefield# or latest versionpipinstallgit+https://github.com/raagin/django-tablefield.gitUsing# settings.pyINSTALLED_APPS=[...'tablefield',...]# models.pyfromtablefield.fieldsimportTableFieldclassMyModel(models.Model):table=TableField(verbose_name='Table')In templates{% load tablefield_tags %}
{% tablefield_render mymodel.table %}OptionsDefault options is:DEFAULT_TABLE_OPTIONS={'minSpareRows':0,'startRows':3,'startCols':3,'colHeaders':False,'rowHeaders':False,'mergeCells':True,'contextMenu':['row_above','row_below','---------','col_left','col_right','---------','remove_row','remove_col','---------','mergeCells','---------','alignment','---------','undo','redo'],'editor':'text','stretchH':'all','height':200,'renderer':'html','autoColumnSize':False,}As you see, default renderer ishtml.You read about it:https://handsontable.com/docs/1.18.1/Options.html#rendererYou may set your options:classMyModel(models.Model):table=TableField(table_options={'minSpareRows':0,'startRows':3,'startCols':3,'colHeaders':False,'rowHeaders':False,'mergeCells':True,'contextMenu':['row_above','row_below','---------','col_left','col_right','---------','remove_row','remove_col','---------','mergeCells','---------','alignment','---------','undo','redo'],'editor':'text','stretchH':'all','height':200,'renderer':'html','autoColumnSize':False,},verbose_name='Table')
Package: django-table-prefix
===========Django table prefix===========django-table-prefix provides experimental ability to set your owndatabase table prefixes for django project this app is included inInclude this app into your project's settings.py, provide table prefixname and list of models (optional) for ommiting prefix usage::INSTALLED_APPS = (... # your regular stuff'table_prefix',)# table prefix nameDB_PREFIX = 'nifty_prefix'# omit prefixing tables for these modelsOMIT_MODELS = ('<app_name>.<model class name>',)
Package: django-tabler
# django-tablerThis project transforms the [Tabler](https://github.com/tabler/tabler) dashboardinto a Django package. It provides an extensible base template, error page templates,and the necessary static assets. django-tabler is based on the latest Tablerrelease [v0.0.32](https://github.com/tabler/tabler/releases/tag/v0.0.32).# Installationdjango-tabler was built with Python 3.6 and Django 1.11. Other versions should be compatible, but they haven't been tested. To install:* `pip install git+https://github.com/rbennett91/django-tabler`* Add `django_tabler` to your `INSTALLED_APPS`# UsageOnce installed, templates inside your application can extend django-tabler's[base template](https://github.com/rbennett91/django-tabler/blob/master/django_tabler/templates/django_tabler/base.html). A quick example:```{% extends "django_tabler/base.html" %}{% block extra_css %}{# add your custom css here #}{% endblock extra_css %}{% block content %}<h1>This is a Heading</h1><p>This is a paragraph</p><p>{{ some_context_variable }}</p>{% endblock content %}{% block extra_js %}<script>{# add your custom javascript here #}</script{% endblock extra_js %}```Need some inspiration? Check out the [templates](https://github.com/tabler/tabler/tree/dev/dist)provided by the original project.### Missing a title in the browser window?django-tabler's base template adds your site's name to the browser's titlebar using Django's[Sites](https://docs.djangoproject.com/en/1.11/ref/contrib/sites/) framework.Follow these steps for setup:* Add a `SITE_ID` value to your application's settings file* Add `'django.contrib.sites'` to `INSTALLED_APPS`* Add `'django.contrib.sites.middleware.CurrentSiteMiddleware'` to `MIDDLE_WARE`* Run `python manage.py migrate` if necessary* Inside your application's `django_site` database table, update the record that cooresponds to the `SITE_ID`value with an appropriate name and domain. A custom migration might be helpful.### Missing a favicon?To load a favicon, create an `img/` folder inside your application's `static` directory.Place `favicon.ico` inside, and the icon will be loaded by the base template.### Custom error viewsdjango-tabler overrides Django's [default error views](https://docs.djangoproject.com/en/1.11/topics/http/views/#customizing-error-views)by rendering a custom error template. Your application can access these byadding the following to your applications' `urls.py` file:```handler400 = 'django_tabler.views.error400'handler403 = 'django_tabler.views.error403'handler404 = 'django_tabler.views.error404'handler500 = 'django_tabler.views.error500'```
Package: django-tabler-icons
Django tabler iconsUsethe tablericon set in your Django project.InstallationInstall the package from PyPI:python-mpipinstalldjango-tabler-iconsAddtabler_iconsto yourINSTALLED_APPS:INSTALLED_APPS=[...'tabler_icons',...]Download the icon set:pythonmanage.pydownload_iconsIcons will be downloaded to<user_home_directory>/.config/django-tabler-icons. You can override this by setting theTABLER_ICONS_DIRsetting, in project settings.UsageTo add an icon to your template, use thetabler_icontemplate tag:{%loadtabler_icons%}{%tabler_icon'<icon_name>'%}If you need to add classes to the icon, use the second argument:{%tabler_icon'<icon_name>''<class_name_1> <class_name_2>'%}The icons come with some default classes which you can remove by passingnoto the third argument (keep_default_classes){%tabler_icon'<icon_name>''<class_name_1> <class_name_2>''no'%}The default is to keep the default classes so you can omit the third argument if you want to keep them.Relevant projectsHeroiconsis a package for usingheroiconsin Django projects, which is also the inspiration for this package.
Package: django-tabler-ng
django-tabler-ngDjango with Tabler template.This project transforms theTablerdashboard
into a Django package. It provides an extensible base template, error page templates,
and the necessary static assets. django-tabler-ng is based on theTabler releasev1.0.0-beta12Django release3.2 LTSPython relase 3.9Installationpip install django-tabler-ngAdddjango_tabler_ngto yourINSTALLED_APPSUsageOnce installed, templates inside your application can extend django-tabler-ng's
base template. A quick example:{% extends "django_tabler_ng/base.html" %}

{% block extra_css %}
    {# add your custom css here #}
{% endblock extra_css %}

{% block content %}
    <h1>This is a Heading</h1>
    <p>This is a paragraph</p>
    <p>{{ some_context_variable }}</p>
{% endblock content %}

{% block extra_js %}
<script>
    {# add your custom javascript here #}
</script
{% endblock extra_js %}Need some inspiration? Check out thetemplatesprovided by the original project.Missing a title in the browser window?django-tabler-ng's base template adds your site's name to the browser's titlebar using Django'sSitesframework.
Follow these steps for setup:Add aSITE_IDvalue to your application's settings fileAdd'django.contrib.sites'toINSTALLED_APPSAdd'django.contrib.sites.middleware.CurrentSiteMiddleware'toMIDDLE_WARERunpython manage.py migrateif necessaryInside your application'sdjango_sitedatabase table, update the record that cooresponds to theSITE_IDvalue with an appropriate name and domain. A custom migration might be helpful.Missing a favicon?To load a favicon, create animg/folder inside your application'sstaticdirectory.
Placefavicon.icoinside, and the icon will be loaded by the base template.Custom error viewsdjango-tabler-ng overrides Django'sdefault error viewsby rendering a custom error template. Your application can access these by
adding the following to your applications'urls.pyfile:handler400 = 'django_tabler_ng.views.error400'
handler403 = 'django_tabler_ng.views.error403'
handler404 = 'django_tabler_ng.views.error404'
handler500 = 'django_tabler_ng.views.error500'Inspiration from @rbennett91/django-tabler.
Package: djangotables
djangotablesDjangotables is a simple library for generating html
tables withDjango Frameworkusing
model data like django forms.Djangotables is a simple yet powerful library. A library based on forms
generated by Django, if you are already familiar with django forms it will
be very easy to use django tables, otherwise it will be easy anyway :wink:I had the idea of developing when I was developing a Dashboard and always had
to write the tables several times in html :sleeping:InstallationSimpledjangotablescan be installed with pip::pip install djangotablesRequirementsPython3.6; 3.7Django2.0; 2.1; 2.2These are the officially supported python and package versions.  Other versions
will probably workUsageIt's very simple to use, you just have to importdjangotables.tableson
yourtables.pyfile and create your subclass like below.fromdjangotablesimporttablesclassUserTable(tables.Table):first_name=tables.TextField(label="First Name")last_name=tables.TextField(label="Last Name")So, in yourvews.pyfile, just import your table class and instantiate it
by passing the querysetfrom.tablesimportUserTablefromdjango.contrib.auth.modelsimportUserfromdjango.shortcutsimportrenderdefindex(request):table=UserTable(User.objects.all())returnrender(request,"index.html",{"table":table})To finish, on yourindex.htmltemplate file you just have to do this<!DOCTYPE html><htmllang="en"><head>...</head><body><table>{{ table | safe }}</table></body></html>Okay, this is how simple you can use djangotables to improve
your daily development, feel free to contribute and help me
make this little library biggerOkay
Package: django-tables2
django-tables2 - An app for creating HTML tablesdjango-tables2 simplifies the task of turning sets of data into HTML tables. It
has native support for pagination and sorting. It does for HTML tables whatdjango.formsdoes for HTML forms. e.g.Available on pypi asdjango-tables2Tested against currently supported versions of Djangoand supported python 3 versions Django supports.Documentation on readthedocs.orgBug trackerFeatures:Any iterable can be a data-source, but special support for DjangoQuerySetsis included.The builtin UI does not rely on JavaScript.Support for automatic table generation based on a Django model.Supports custom column functionality via subclassing.Pagination.Column based table sorting.Template tag to enable trivial rendering to HTML.Generic view mixin.ExampleStart by addingdjango_tables2to yourINSTALLED_APPSsetting like this:INSTALLED_APPS=(...,"django_tables2",)Creating a table for a modelSimpleis as simple as:importdjango_tables2astablesclassSimpleTable(tables.Table):classMeta:model=SimpleThis would then be used in a view:classTableView(tables.SingleTableView):table_class=SimpleTablequeryset=Simple.objects.all()template_name="simple_list.html"And finally in the template:{% load django_tables2 %}
{% render_table table %}This example shows one of the simplest cases, but django-tables2 can do a lot more!
Check out thedocumentationfor more details.
Package: django-tables2-bootstrap4
django-tables2 - An app for creating HTML tablesdjango-tables2 simplifies the task of turning sets of data into HTML tables. It
has native support for pagination and sorting. It does for HTML tables whatdjango.formsdoes for HTML forms. e.g.Available on pypiTested against currently supported versions of Djangoand the python versions Django supports(seeTravis CI)Documentation on readthedocs.orgBug trackerFeatures:Any iterable can be a data-source, but special support for DjangoQuerySetsis included.The builtin UI does not rely on JavaScript.Support for automatic table generation based on a Django model.Supports custom column functionality via subclassing.Pagination.Column based table sorting.Template tag to enable trivial rendering to HTML.Generic view mixin.ExampleStart by addingdjango_tables2to yourINSTALLED_APPSsetting like this:INSTALLED_APPS=(...,'django_tables2',)Creating a table for a modelSimpleis as simple as:importdjango_tables2astablesclassSimpleTable(tables.Table):classMeta:model=SimpleThis would then be used in a view:defsimple_list(request):queryset=Simple.objects.all()table=SimpleTable(queryset)returnrender(request,'simple_list.html',{'table':table})And finally in the template:{% load django_tables2 %}
{% render_table table %}This example shows one of the simplest cases, but django-tables2 can do a lot more!
Check out thedocumentationfor more details.
Package: django-tables2-bulma-template
django-tables2_bulma-templateInstallationpip install django_table2_bulma_templateAdd toINSTALLED_APPSin your Djangosettings.py:INSTALLED_APPS = [
    ...
    'django_tables2_bulma_template',
    ...
]SetupIn your Djangosettings.pyset:DJANGO_TABLES2_TEMPLATE = "django-tables2/bulma.html"CustomizationYou can extend the template provided by this package and customize it by overriding blocks.
E.g.# templates/my_bulma_table.html{% extends 'django-tables2/bulma.html' %}

{% block table %}
    Your custom table html
{% endblock table %}Supported blocks you can override:table-wrapper: Container that wraps the tabletable: The actual table html elementtable.thead: The table headtable.thead.row: The table head row that contains the column headerstable.thead.th: Individual table<th>...</th>table.tbody: The table bodytable.tbody.row: Individual table rowtable.tbody.td: Individual data celltable.tbody.empty_text: Text that is shown if table is emptytable.tfoot: Footer element of tabletable.tfoot.row: Footer rowstable.tfoot.td: Footer cellspagination: Pagination for this tablepagination.previous: Customize html to shown to navigate to previous pagepagination.previous.text: Text/Icons shown to navigate to previous pagepagination.next: Customize html to shown to navigate to next pagepagination.next.text: Text/Icons shown to navigate to next pagepagination.range: Range of pages shown in pagination