Saravanan666/pypi-org huggingface dataset:
Package: django-booking
A reusable Django app that manages bookings for various purposes.InstallationTo get the latest stable release from PyPi$pipinstalldjango-bookingTo get the latest commit from GitHub$pipinstall-egit+git://github.com/bitmazk/django-booking.git#egg=bookingTODO: Describe further installation steps (edit / remove the examples below):Addbookingto yourINSTALLED_APPSINSTALLED_APPS=(...,'booking',)Add thebookingURLs to yoururls.pyurlpatterns=patterns('',...url(r'^booking/',include('booking.urls')),)Don’t forget to migrate your database./manage.pymigratebookingUsageIf you allow anonymous bookings, the session object is stored within the
booking model. Otherwise it will be connected to the User model.NOTE: If a session is destroyed, the connected booking model will also be
removed.In order to allow login via email and booking ID, please add this to yourAUTHENTICATION_BACKENDS:AUTHENTICATION_BACKENDS = (
    # your usual auth backends
    'booking.auth_backends.BookingIDBackend',
)At the moment you will have to write a new view that will render thebooking.forms.BookingIDAuthenticationForm. If the form is valid, your
view should callauth_login(request,form.get_user()), similar to Django’s
original login view.SettingsBOOKING_STATUS_CREATEDDefault: ‘pending’Slug of theBookingStatus, which should be added after booking creation.BOOKING_TIME_INTERVALDefault: ‘’The default value for thetime_unitattribute of the Booking. Set it in
case you need to specify that you want to book something e.g. X days or Y
hours. Set it to the singular of that time unit::BOOKING_TIME_INTERVAL = 'day'Error loggingIn case you want to add error logging especially for booking processes, we
provide aBookingErrormodel, in which you can store:booking(FK to Booking - required) The booking during this error occurred.message(Char) The short error message, that you need to store.details(Text) A more in depth text about the error or any kind of additional
information, e.g. a traceback.ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-bookingmakedevelopgitco-bfeature_branchmaster# Implement your feature and testsgitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branchIn order to run the tests, simply executetox. This will install two new
environments (for Django 1.8 and Django 1.9) and run the tests against both
environments.
Package: django-book-manager
django-book-managerDocumentation:https://django-book-manager.readthedocs.orgThis reusable Django application provides models suitable for managing a list of
books with ratings, somewhat like a privateGoodreads.Its real purpose is to provide sample models, with sample data, for use in
testing other Django libraries.  Often, when authoring new Django libraries, we
need a simple example application to use so that we can test out our code.Getting ItYou can getdjango-book-managerby using pip:pipinstalldjango-book-managerIf you want to install it from source, grab the git repository from GitHub and runsetup.py:gitclonegit://github.com/caltechads/django-book-manager.gitcddjango-book-manager
pythonsetup.pyinstallInstalling ItTo enablebook_managerin your project you need to add it toINSTALLED_APPSin your project'ssettings.pyfile:INSTALLED_APPS=(...'book_manager',...)Then, apply the migrations to add the schema to your database:./manage.pymigrateUsing Itdjango-book-managerprovides these models:book_manager.Book:  a book with title, slug, publishing dates, number of pages, authors, etc.book_manager.Author:  an author.book_manager.Bookhas a many to many relationship with thisbook_manager.BookAuthor:  this is a many to many through table betweenbook_manager.Bookandbook_manager.Authorthat exists to record billing order of authors on a book (first author, second author, etc.)book_manager.Publisher:  a publisher.book_manager.Bookhas a foreign key relationship with thisbook_manager.Binding: a binding (hardcover, softcover, ebook, ...).book_manager.Bookhas a foreign key relationship with thisbook_manager.Reading: a reading record of a book by a reader.  This is a many to many through table betweenbook_manager.Bookand theAUTH_USER_MODELthat records a rating, review, notes, date read, etc. for a particular user.book_manager.Shelf: a collection ofbook_manager.Readingobjects, used by readers to classify booksdjango-book-manageralso supplies a command that can be used to load aGoodreadsuser library export into Django, splitting
it into all the above models as appropriate.To generate an export from Goodreads, go to your Goodreads account and:Click "My Books"At the bottom of that page, click "Import and Export"At the top of that page, click "Export Library"To load the CSV thus generated into Django, first create a user for yourself in Django, then:./manage.pyimport_csv<csvfile><username>A sample Goodreads export is available in this repository assandbox/data/books.csv.
Package: django-bookmark
Django BookmarkA Django app that lets users create bookmarks to Django model instancesInstallationInstalldjango-bookmarkusing your favourite package manager.Adddjango_bookmarkto your Django projectsINSTALLED_APPS:...
'django_bookmark',
...Includedjango_bookmark.urlsin your URL dispatcher:...
path("", include("django_bookmark.urls")),
...Django Bookmarks adds two routes below where you include the app:/bookmarks/is a view that lists all bookmarks of the user accessing it/togglebookmark/<content_type_id>/<object_id>is a view to add or remove a bookmark, that points to the model instance specified by thecontent_type_idand theobject_id. The bookmark will be saved with the user id of the user accessing the view.Django Bookmarks ships thedjango_bookmarktemplatetags library, which currently consists of the templatetagtoggle_bookmark.
Thetoggle_bookmarktemplatetag takes the model instance as argument and adds abookmarklink that to your template. This bookmark link displayes
a bookmark symbol that is either white, if the model instanceis notbookmarked or yellow, if the model instanceisbookmarked. Clicking the link
toggles the bookmarking state of the model instance for the logged in user.
If you havehtmxincluded in your web application, the bookmarking link uses htmx to update the bookmark symbol, otherwise the link
redirects to the page where you came from.Django Bookmarks uses theBookmark Addsvg from the Material Symbols collection and theBookmarksvg from the Material Icons collection. Both are licensed under theSIL Open Font License.
Package: django-books-asl
books is a Django app to conduct web-based books. For each question,
visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “books” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'books',
]Include the books URLconf in your project urls.py like this:path('books/', include('books.urls')),Runpython manage.py migrateto create the books models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a book (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/books/to participate in the poll.
Package: django-boolean-sum
This is a small Django utility module to allow you to correctly annotate or
aggregate based on the sum of a Boolean field. This answers the question “how
many objects do I have related to this objectwhere foo is True.UsageUsage is pretty simple:from django_boolean_sum import BooleanSum

MyModel.objects.annotate(priority_related_count=BooleanSum('related__priority'))This will return instances ofMyModelwith arelated_countattribute, which
is the number of related instances which havepriority=True.InstallationFrom PyPI:$ pip install django-boolean-sumCaveatsThis has been tested solely on PostgreSQL and Sqlite, using Django 1.4. It also
depends on internal Django components which are not documented, and therefore
are subject to possible breaking changes in future versions.It is very naive about multi-databases, assuming that the query is being made
for the backend of thedefaultdatabase.ContributingPull Request it.
Package: django-boolean-switch
.. image::https://badge.fury.io/py/django-boolean-switch.svg:target:http://badge.fury.io/py/django-boolean-switch=====
django-boolean-switchSimple app to change your boolean fields in admin list view quickly in one clickUsageGetting the code for the latest stable release use 'pip'::pip install django-boolean-switchAdd "boolean_switch" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (
...
'boolean_switch',
)Include the boolean_switch URLconf in your project urls.py like this::url(r'^admin/', include('boolean_switch.urls')),
...
url(r'^admin/', include(admin.site.urls)),Use mixin to modify you admin output::from boolean_switch.admin import AdminBooleanMixinclass MyModelAdmin(AdminBooleanMixin, admin.ModelAdmin):
list_display = ['sometitle', 'somebooleanfiled']Now you can change boolean fields flag from list view in one click!.. image::http://s30.postimg.org/hqngbv1up/ezgif_com_resize.gif
Package: django-boot-core-starter
Django Boot Core - StarterCore starter library for Django Boot.This library will initializeRhazesApplicationContextby default and registers some beans on it.UsageFirst, add Django Boot Starter toINSTALLED_APPS:INSTALLED_APPS=[...,"django_boot_core",]Then assure you have these two settings in yoursettings.py:DJANGO_BOOT={"DI_PACKAGES":[],# packages containing beans which you want to be scanned in your project"DI_SCAN_STARTERS":False,"APPLICATION_CONFIGURATION":{...# Configuration for ApplicationConfiguration. Read below}}Application Configuration ParserMain benefit of using this library is that you will haveApplicationConfigurationbean registered for you.This bean allows you to use configuration files for different services (beans) in your project easily.django_boot_core.services.ApplicationConfigurationis an autoconfigured extension on top ofparse_itlibrary.To configureApplicationConfiguration(andParseItclass) try changing these values in the settings.# settings.pyDJANGO_BOOT={"APPLICATION_CONFIGURATION":{# Read what blow items do in `parse_it` documentation."LOCATION":os.path.join(BASE_DIR,"application_config"),# Optional, Location to read configuration files from"CONFIG_TYPE_PRIORITY":...,# optional"GLOBAL_DEFAULT_VALUE":...,# optional"TYPE_ESTIMATE":...,# optional"RECURSE":...,# optional"FORCE_ENVVARS_UPPERCASE":...,# optional"ENVVAR_PREFIX":...,# optional"SUFFIX_MAPPING":...,# optional"ENVVAR_DIVIDER":...,# optional"NONE_VALUES":...,# optional}}Default configuration location (directory) (in caseBASE_DIRis set insettings.py) would be{BASE_DIR}/application_config.Write your own starter appsYou can make Django Boot scan your apps by default without having to add anything specific in settingsDI_PACKAGESby ending your app names in_starter.To enable this feature you need to specifyDJANGO_BOOT["DI_SCAN_STARTERS"] = Truein settings.DJANGO_BOOT={"DI_SCAN_STARTERS":True,# other configurations here}Example:you have an app calledpollsand it requires some beans to be registered intoApplicationContext. You can rename the app topolls_starterinstead and this library will automatically pick it to scan.Alternatively (perhaps for performance reasons as well) you can skip this and just let other developers know that which packages then need to add to settingsDI_PACKAGESafter they install your app.
Package: django-bootstrap3
django-bootstrap3Bootstrap 3 for Django.GoalThe goal of this project is to seamlessly blend Django and Bootstrap 3.Want to use Bootstrap 4 in Django? Seehttps://github.com/zostera/django-bootstrap4.Want to use Bootstrap 5 in Django? Seehttps://github.com/zostera/django-bootstrap5.RequirementsThis package requires a combination of Python and Django that is currently supported.See "Supported Versions" onhttps://www.djangoproject.com/download/.DocumentationThe full documentation is athttps://django-bootstrap3.readthedocs.io/InstallationInstall using pip:pipinstalldjango-bootstrap3Alternatively, you can install download or clone this repo and callpip install -e ..Add toINSTALLED_APPSin yoursettings.py:INSTALLED_APPS=(# ..."bootstrap3",# ...)In your templates, load thebootstrap3library and use thebootstrap_*tags:Example template{% load bootstrap3 %}

{# Display a form #}

<form action="/url/to/submit/" method="post" class="form">
    {% csrf_token %}
    {% bootstrap_form form %}
    {% buttons %}
        <button type="submit" class="btn btn-primary">Submit</button>
    {% endbuttons %}
</form>Example appAn example app is provided inexample. You can run it withmake example.Bugs and suggestionsIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/zostera/django-bootstrap3/issuesLicenseYou can use this under BSD-3-Clause. SeeLICENSEfile for details.AuthorDeveloped and maintained byZostera.Original author:Dylan Verheul.Thanks to everybody that has contributed pull requests, ideas, issues, comments and kind words.Please seeAUTHORSfor a list of contributors.
Package: django_bootstrap3_daterangepicker
# django-bootstrap3-daterangepickerThis is django field wrapper for http://www.daterangepicker.com/ . Useful for reporting services.Field data format is tuple (start_date, end_date).Installation:---1. ```pip install django_bootstrap3_daterangepicker```2. add `'django_bootstrap3_daterangepicker'` to `INSTALLED_APPS`Usage:----* jQuery, Bootstrap are required on target page```pythonclass PeriodFilter(forms.Form):range = DateRangeField(widget=DateRangeWidget(picker_options={'ranges': common_dates()}))# ...form = PeriodFilter(initial={'range': (date.today(), date.today())})# ...(from_date, to_date) = form.cleaned_data['range']```Template - don't forget media:```html{% block extracss %}{{ filter.media['css'] }}{% endblock %}{% block endscripts %}{{ super() }}{{ filter.media['js'] }}{% endblock %}{% block content %}{{ filter.range }}{% endblock %}```Special thanks to https://github.com/nkunihiko/django-bootstrap3-datetimepicker/ for guidance in creating custom fields.
Package: django-bootstrap3-datetimepicker
This package uses Bootstrap v3 datetimepicker widget version 2 provided by the following project:https://github.com/Eonasdan/bootstrap-datetimepickerThe correct formatting options for dates can be found here:http://momentjs.com/docs/It works only with Bootstrap3. If you are using Bootstrap2 in your
Django project, check out this:https://github.com/zokis/django-bootstrap-datetimepickerInstallRunpip installdjango-bootstrap3-datetimepickerAdd'bootstrap3_datetime'to yourINSTALLED_APPSExampleforms.pyfrom bootstrap3_datetime.widgets import DateTimePicker
from django import forms

class ToDoForm(forms.Form):
    todo = forms.CharField(
        widget=forms.TextInput(attrs={"class": "form-control"}))
    date = forms.DateField(
        widget=DateTimePicker(options={"format": "YYYY-MM-DD",
                                       "pickTime": False}))
    reminder = forms.DateTimeField(
        required=False,
        widget=DateTimePicker(options={"format": "YYYY-MM-DD HH:mm",
                                       "pickSeconds": False}))Theoptionswill be passed to the JavaScript datetimepicker
instance. Availableoptionsare explained in the following
documents:http://eonasdan.github.io/bootstrap-datetimepicker/You don’t need to set thelanguageoption, because it will be set
the current language of the thread automatically.template.html<!DOCTYPE html>
<html>
    <head>
        <link rel="stylesheet"
              href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.css">
        <link rel="stylesheet"
              href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.css">
        <script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.js">
        </script>
        <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.js">
        </script>
        {{ form.media }}
    </head>
    <body>
        <form method="post" role="form">
            {% for field in form.visible_fields %}
            <div id="div_{{ field.html_name }}"
                 class="form-group{% if field.errors %} has-error{% endif %}">
                {{ field.label_tag }}
                {{ field }}
                <div class="text-muted pull-right">
                    <small>{{ field.help_text }}</small>
                </div>
                <div class="help-block">
                    {{ field.errors }}
                </div>
            </div>
            {% endfor %}
            {% for hidden in form.hidden_fields %}
                {{ hidden }}
            {% endfor %}
            {% csrf_token %}
            <div class="form-group">
                <input type="submit" value="Submit" class="btn btn-primary" />
            </div>
        </form>
    </body>
</html>Bootstrap3 and jQuery have to be included along with{{ form.media }}Release Notesv2.2.3Updated bootstrap-datetimepicker.js to version 2.1.30v2.0.0Includes bootstrap-datetimepicker.js version 2.1.11 with moment.jsThe format strings have changed due to using moment.jsRequirementsPython >= 2.4Django >= 1.3Bootstrap >= 3.0
Package: django-bootstrap3-datetimepicker-3
This package usesBootstrap v3 datetimepicker widget version
4.This project was originally a fork of
tutorcruncher/django-bootstrap3-datetimepicker, it now has the following
breaking changes:Modified to work properly with Django 1.11 (didn’t take into account
previous versions)js/css files are no longer included in the project, managing them is
up to the user, eg. usinggrablib.the widget no longer has js/css assets. these are left for you to
deploy as you wish.bug/warning fixesremove support for python 2.6 and associated clean upInstallpip install django-bootstrap3-datetimepicker-3Exampleforms.pyfrombootstrap3_datetime.widgetsimportDateTimePickerfromdjangoimportformsclassToDoForm(forms.Form):todo=forms.CharField(widget=forms.TextInput(attrs={"class":"form-control"}))date=forms.DateField(widget=DateTimePicker(options={"format":"YYYY-MM-DD"}))reminder=forms.DateTimeField(required=False,widget=DateTimePicker(options={"format":"YYYY-MM-DD HH:mm"}))Theoptionswill be passed to the JavaScript datetimepicker
instance. Availableoptionsare explained in the following
documents:http://eonasdan.github.io/bootstrap-datetimepicker/You don’t need to set thelanguageoption, because it will be set
the current language of the thread automatically.template.html<!DOCTYPE html><html><head><!-- load all required js/css yourself here --></head><body><formmethod="post"role="form">{{ form|bootstrap }}
      {% csrf_token %}<divclass="form-group"><inputtype="submit"value="Submit"class="btn btn-primary"/></div></form></body></html>Here we assume you’re usingdjango-bootstrap-formordjango-jinja-bootstrap-formbut you can draw out your HTML manually.RequirementsPython >= 2.7Django >= 1.11Bootstrap == 3.XMoment >= 2.10.6bootstrap-datetimepicker >= 4.15.35
Package: django-bootstrap3-datetimepicker-vinta
This package usesBootstrap v3 datetimepicker widget version
4.This project was originally a fork ofhttps://github.com/nkunihiko/django-bootstrap3-datetimepicker, it now
has the following breaking changes:js/css files are no longer included in the project, managing them is
up to the user, eg. usinggrablib.the widget no longer has js/css assets. these are left for you to
deploy as you wish.bug/warning fixesremove support for python 2.6 and associated clean upInstallpip install django-bootstrap3-datetimepicker-2Exampleforms.pyfrombootstrap3_datetime.widgetsimportDateTimePickerfromdjangoimportformsclassToDoForm(forms.Form):todo=forms.CharField(widget=forms.TextInput(attrs={"class":"form-control"}))date=forms.DateField(widget=DateTimePicker(options={"format":"YYYY-MM-DD"}))reminder=forms.DateTimeField(required=False,widget=DateTimePicker(options={"format":"YYYY-MM-DD HH:mm"}))Theoptionswill be passed to the JavaScript datetimepicker
instance. Availableoptionsare explained in the following
documents:http://eonasdan.github.io/bootstrap-datetimepicker/You don’t need to set thelanguageoption, because it will be set
the current language of the thread automatically.template.html<!DOCTYPE html><html><head><!-- load all required js/css yourself here --></head><body><formmethod="post"role="form">{{ form|bootstrap }}
      {% csrf_token %}<divclass="form-group"><inputtype="submit"value="Submit"class="btn btn-primary"/></div></form></body></html>Here we assume you’re usingdjango-bootstrap-formordjango-jinja-bootstrap-formbut you can draw out your HTML manually.RequirementsPython >= 2.7Django >= 1.8Bootstrap == 3.XMoment >= 2.10.6bootstrap-datetimepicker >= 4.15.35
Package: django-bootstrap3-form
Django Bootstrap 3 formDjango-bootstrap3-formallows you write Django forms that work with Twitter Bootstrap 3.It supports Django 2.2 - 3.1. Also tested with Python 3.6 - 3.8.Older versions:
Version 1.0 supports Django 2.0 and 2.2.
Version 0.7 supports Django 1.11 and Python 2.7.importdjango_bootstrap3_formclassExampleForm(django_bootstrap3_form.BootstrapForm):username=django_bootstrap3_form.CharField()password=django_bootstrap3_form.CharField(widget=django_bootstrap3_form.PasswordInput)
Package: django-bootstrap3-iconfield
Renderers to show icons in the input fields for the django-bootstrap3 project from dyve: https://github.com/dyve/django-bootstrap3Installation------------1. Install using pip:`` pip install django-bootstrap3```` pip install git+https://github.com/ALibrada/django-bootstrap3-iconfield.git#egg=bootstrap3-iconfield``Alternatively, you can install download or clone this repo and call ``pip install -e .``.2. Add to INSTALLED_APPS in your ``settings.py``:``'bootstrap3',````'bootstrap3-iconfield'``3. In your templates, load the ``bootstrap3`` library and use the ``bootstrap_*`` using the layouts icons or icons-horizontal:Example template for the original layout with icons----------------.. code:: Django{% load bootstrap3 %}{# Display a form #}<form action="/url/to/submit/" method="post" class="form">{% csrf_token %}{% bootstrap_form form layout="icons"%}{% buttons %}<button type="submit" class="btn btn-primary">{% bootstrap_icon "star" %} Submit</button>{% endbuttons %}</form>Example template for the horizontal layout with icons----------------.. code:: Django{% load bootstrap3 %}{# Display a form #}<form action="/url/to/submit/" method="post" class="form">{% csrf_token %}{% bootstrap_form form layout="icons-horizontal"%}{% buttons %}<button type="submit" class="btn btn-primary">{% bootstrap_icon "star" %} Submit</button>{% endbuttons %}</form>Requirements------------- Python 2.6, 2.7, 3.2 or 3.3- Django >= 1.4- django-boostrap3 https://github.com/dyve/django-bootstrap3License-------You can use this under Apache 2.0. See `LICENSE<LICENSE>`_ file for details.Disclaimer-------This is my first django package and I took django-bootstrap3 from dyve as template andmany other small parts of the code from the other people, mostly stackoverflow.
Package: django-bootstrap3-sass
bootstrap3-sass is a simple Django app to conduct Web-based bootstrap3-sass. For each
question, visitors can choose between a fixed number of answers.Quick startrefere django libsass config firsthttps://github.com/torchbox/django-libsassAdd “bootstrap3-sass” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'bootstrap3_sass',
)import the scss directly in your scss file@import “bootstrap”;enjoy it. bootsrap is in your scss project