Saravanan666/pypi-org huggingface dataset:
Package: django-bower-cache
## Django Bower Cache (the Python/Django edition)[![Build Status](https://travis-ci.org/Tinche/django-bower-cache.png)](https://travis-ci.org/Tinche/django-bower-cache)
[![Coverage Status](https://coveralls.io/repos/Tinche/django-bower-cache/badge.png?branch=master)](https://coveralls.io/r/Tinche/django-bower-cache?branch=master)
[![Requirements Status](https://requires.io/github/Tinche/django-bower-cache/requirements.png?branch=master)](https://requires.io/github/Tinche/django-bower-cache/requirements/?branch=master)Django Bower Cache is a Django app providing two services:act as a registry (a name to URL mapper) for Bower packages.act as a caching proxy for remote Bower packages.The admin interface is available for both functionalities.If you just want a simple way to run a local Bower caching proxy, see the
[Bower Cache](https://github.com/Tinche/bower-cache) project, which is built around Django Bower
Cache.Django Bower Cache supports Python 2.6, 2.7, 3.3, 3.4 and PyPy.## SettingsDjango Bower Cache uses three additional settings from the Django settings file.REPO_ROOT- the absolute path to the directory which will contain the cached
Bower git repositories. Example:/var/bower-cache.UPSTREAM_BOWER_REGISTRY- the URL of the Bower index from which to retrieve
package data. Currently the global Bower registry is located at [https://bower.herokuapp.com](https://bower.herokuapp.com).REPO_URL- Optional. The URL hostname and prefix to use when generating git
URLs for cloned repositories. If left unspecified, Django Bower Cache will try
extracting the hostname from the HTTP request and use the root URL path plus
the package name. For example, if Django Bower Cache happens to be queried
athttp://10.1.10.5/for the Bootstrap package, and the Bootstrap package has
been cached, the generated git URL will begit://10.1.10.5/bootstrap.## DocumentationThe documentation will be linked here once it’s written.## LicenseCopyright © 2013 Toran Billups, Tin Tvrtković.Licensed under the MIT License.
Package: django-boxberry
сделано с использованиемpython клиента
BoxberryУстановкаУстановить:pip install django-boxberryили из github:pip install git+https://github.com/AlekseevAV/django-boxberry.gitДобавить django_boxberry в INSTALLED_APPSINSTALLED_APPS = (
    ...
    'django_boxberry',
)Добавить настройки Boxberry API settings.pyBOXBERRY_TOKEN = 'token'
BOXBERRY_ENDPOINT = 'http://test.boxberry.de/json.php'Выполнить миграцииpython manage.py migrate django_boxberry
Package: django-bpmn-widget
django-bpmn-widgetdjango bpmn modeler widget(integrated with properties panel)UsageInstall django-bpmn-widgetpipinstalldjango-bpmn-widgetAddbpmn_widgettosettings.pyINSTALLED_APPS, like this:INSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','bpmn_widget']Display in Formfromdjangoimportformsfromyourapp.modelsimportMyModelfrombpmn_widget.widgetsimportBPMNWidget# import widgetclassMyModelForm(forms.ModelForm):classMeta:model=MyModelwidgets={'content':BPMNWidget()# change it to the field you want to display}fields='__all__'Display in Django-Adminfromdjango.contribimportadminfromyourapp.modelsimportMyModelfromyourapp.formsimportMyModelFormclassMyModelAdmin(admin.ModelAdmin):form=MyModelFormadmin.site.register(MyModel,MyModelAdmin)NoteThe following is the js library for widget integrationbpmn-js@10.2.1bpmn-js-properties-panel@1.10.0camunda-bpmn-moddle@7.0.1If you want to update their version or extend other plug-ins, please compile them yourselfScreenshotReferencebpmn-jsdjango-bpmnLicense
Package: django-brackets
django-bracketsOfficial Documentationdjango-bracketsis a small collection of mixins for your class-based
views' needs. Heavily based ondjango-braces,bracketsaims to be
a simpler API and lighter tool set thanbraceswas.django-bracketsis developed against and for still-supported versions
of Django and the latest (or near enough) version of Python. It also
offers mixins fordjango-rest-frameworkwhich should work with the
latest release of that package.As always,contributionsare welcome.Available mixins(in alphabetical order)Django class-based viewsAllVerbsMixin- View answers any HTTP verb with a single method.AnonymousRequiredMixin- Authenticated users are rejected.CacheControlMixin- Control how the view is cachedCSRFExemptMixin- View does not require CSRF tokens.FormWithUserMixin- Automatically provides the requesting user to the form.GroupRequiredMixin- Requesting user must be part of a group.HeaderMixin- Statically set headers for a view.LoginRequiredMixin- Non-authenticated users are rejected.MultipleFormsMixin- View handles multiple forms at once. Taken fromdjango-shapeshifterNeverCacheMixin- Mark a view as being uncached.OrderableListMixin- Allow queryset ordering via query string arguments.PassesTestMixin- Requests must pass a test before they are dispatched.PassOrRedirectMixin- Failing requests are redirected to another view.PermissionRequiredMixin- Requesting user must have specific permissions.PrefetchRelatedMixin- Addprefetch_relatedclauses into the view's queryset.RecentLoginRequiredMixin- Users must have logged in recently.RedirectMixin- Easily redirect requests.RedirectToLoginMixin- Redirect requests to a login page.SelectRelatedMixin- Addselect_relatedclauses into the view's queryset.SSLRequiredMixin- Requests must be secure or redirected.StaffUserRequiredMixin- Requesting user must be a staff member.StaticContextMixin- Provide a static context to a view.SuperuserRequiredMixin- Requesting user must be a superuser.Django REST FrameworkMultipleSerializersMixin- View/Viewset can have multiple serializers.Django formsUserFormMixin- Expects a"user"keyword argument, which will becomeself.user.
Package: django-br-addresses
# Django BR Locations## OverviewThis app do a reusable model and admin of CRUD cities and address ofBrazilImage 1Image 2It has a two models abstracts in file `mixins.py` that will be used in your custom model if necessarySo you can build a custom City and Address Model extend of others Mixins and register itin admin.```from django_br_address.mixins import CityMixin, AddressMixin# models.pyclass CustomCity(CityMixin, Mixin2, Mixin3)pass# admin.pyfrom django_br_address.admin import CityAdminfrom customapp.model import CustomCityadmin.site.unregister(CityAdmin)admin.site.register(CustomCity)```## How to install`pip install django-br-addresses`## How to usePut the app in settings installed apps.```INSTALLED APPS = ['django-br-address']```### To use in django<1.7```SOUTH_MIGRATION_MODULES = {'django-br-addresses.br_addresses': 'django-br-addresses.br_addresses.south_migrations',}```## Running testsInstall the requirements in tests directory`pip install -r requirements.txt`Go to a tests directory and run the command below```python manage.py runstests.py```## Todo1 - Do a geospatial localization of address with latitude and longitude
Package: django-brainstorm
Django app for creating a site with multiple areas to brainstorm ideas.This app powershttp://sunlightlabs.com/ideas/and other similar sites.django-brainstorm is a project of Sunlight Labs (c) 2009.
Written by James Turk <jturk@sunlightfoundation.com>.All code is under a BSD-style license, see LICENSE for details.Source:http://github.com/sunlightlabs/django-brainstorm/Requirementspython >= 2.4
django >= 1.0UsageAdd ‘brainstorm’ to yourINSTALLED_APPSsetting.Add a reference tobrainstorm.urlssomewhere in your urls.py:(r'^', include('brainstorm.urls')),  # something that looks like thisLogin to the django admin and create a subsite.A subsite has a slug, name, description, theme, and a number of other options.  The important two are theme and slug, slug dictates where the subsite will live and theme specifies the name of a theme template (seeCreating Themesfor details)Creating ThemesA theme is represented by a single django template, currently kept at templates/themes/themename.htmlRequired ElementsThe theme must include a content block that will be filled by the page, the theme should also include “idea_form.html” if you wish to use the generic idea submission form.Example dynamic content block:<!-- content -->
<div>
    <h2 id="secondLogo"><a href="http://mysite.com/subsite/">{{subsite.name}}</a></h2>
    <div id="featureBox">
        <p>project description</p>
    </div>

    <div id="ltColumn">
    {% block content %}
    {% endblock %}
    </div>

    <div id="rtColumn">
    <h3>Submit New Idea</h3>
        {% include "idea_form.html" %}
    </div>
    <div class="clear"></div>
</div>Styling the ThemeObviously the styling/design of the static portions of the theme is entirely within the hands of the designer.
There are however a few dynamic sections which typically will need some form of styling.indexThe ‘content’ block of the index contains two divs: ‘div#ideas’ and ‘div#pagination’.‘div#ideas’ contains an list where each li is a pair of div.btnVote and div.voteContent. When a div.btnVote has been voted up it will have the additional class ‘voted’ to allow for additional styling.‘div.btnVote’ contains the link ‘a.vote_link’ for voting and ‘div.votes_counted’ for displaying the current vote total.‘div.voteContent’ contains an <h3> with the idea title, a div.commentMeta with the idea’s submitter/date, and a <p> with the description.ideaThe content block of the idea page contains two divs: ‘div#idea’ and ‘div#comments’.‘div#idea’ contains a single pair of ‘div.btnVote’ and ‘div.voteContent’ (seeindexfor description of these elements)‘div#comments’ contains an <h3> with the number of comments, then an ordered list where each <li> has the following elements:div.commentMeta which contains span.commentMetaAuthor and span.commentMetaDatediv.commentContent which contains a <p> with the comment itself(TODO: comment form)
Package: django-brancher
# django-brancher
This is a Django app to help manage branches that contain database migrations. It basically creates a new database from a template of the existing default database and then uses that new branch-specific database for./manage.py migrateand./manage.py runservercommands.This is not intended for production use.## Example### Requirementsgitpostgresyour postgres user has createdb permission (alter role <user> createdb;)django-brancher installed via pipbrancher added to your Django installed apps### Sample workflow
This is an example work flow to create a new branch, run migrations on it, start runserver, and finally delete it.` git checkout-bfuntime <code up some migrations and run makemigrations> python manage.py branch_mk python manage.py branch_it migrate python manage.py branch_it runserver python manage.py branch_rm `## Commands### Run command
Run a command with DATABASES[‘default’][‘NAME’] set to DATABASES[‘default’][‘NAME’]_`$ git rev-prse –abbrev-ref HEAD`` python manage.py branch_it diffsettings `### List
List all branched databases available` python manage.py branch_ls `### Create
Makes a database based off the current default database given a unique name based on the default database name plus the branch name (e.g.$ git rev-prse –abbrev-ref HEAD)` $ python manage.py branch_mk `### Delete
Deletes the branched database based off the result of$ git rev-prse –abbrev-ref HEAD` $ python manage.py branch_rm `
Package: django_branding
django-branding---------------Add branding headers to response.Requirements============* DjangoInstallation============Install it with pip (or easy_install)::pip install django-brandingUsage=====Add branding middleware from branding to you django configMIDDLEWARE_CLASSES += 'branding.middleware.BrandingMiddleware',Define headers variables in settingsBRANDING = {'X-Programming': 'Lispython','X-Revision': '232134'}X_SERVER = "Super Server"Example=======Example of headers on http://dzone.meIn [1]: import human_curl as hurlIn [2]: r = hurl.get('http://dzone.me')In [3]: r.headersOut[3]:{'cache-control': 'max-age=600','connection': 'keep-alive','content-language': 'ru-ru','content-length': '55239','content-type': 'text/html; charset=utf-8','date': 'Sun, 29 Apr 2012 12:51:12 GMT','expires': 'Sun, 29 Apr 2012 13:01:12 GMT','last-modified': 'Sun, 29 Apr 2012 12:51:12 GMT','link': '<dzone.me>; rel="platform"','server': 'Super Server','vary': 'Accept-Language, Cookie, Accept-Encoding','x-powered-by': 'D Zone','x-programming': 'Alex Lispython (alex@dzone.me, github.com/lispython)','x-revision': '5215de3','x-version': '20120311.0013-0'}
Package: django-bread
Django Bread is a Django app to help build BREAD (Browse, Read, Edit,
Add, Delete) views for Django models.It helps with default templates, url generation, permissions, filters,
pagination, and more.This is relatively stable. We’re using it in production and have attempted
to document the important parts, but feedback is welcome.Breaking change in 1.0.0Version 1.0.0 includes a breaking change! If you’re using the default
view permissions, before upgrading, make sure you’ve
migrated your users and groups that have “read_{model_name}”
permissions to also have “view_{model_name}”.  From 1.0.0 on, that’s the
default permission a user needs to use the read views, because it’s become the
standard Django permission for read-only access since Django 2.1.If you’re still on Django 2.0, don’t upgrade django-bread until you
can get to at least Django 2.1. (Hopefully that’s not the case, since
Django 2.0 has been out of support since April 1, 2019.)Supported versionsDjango: 3.2, 4.2
Python: 3.8, 3.9, 3.10For Python 2.7 and/or Django 1.11 support, the 0.5 release series is identical (features-wise)
to 0.6 and is available on PyPI:https://pypi.org/project/django-bread/#historyMaintainer InformationWe use Github Actions to lint (using pre-commit, black, isort, and flake8),
test (using tox and tox-gh-actions), calculate coverage (using coverage), and build
documentation (using sphinx).We have a local script to do these actions locally, namedmaintain.sh:$ ./maintain.shA Github Action workflow also builds and pushes a new package to PyPI whenever a new
Release is created in Github. This uses a project-specific PyPI token, as described in
thePyPI documentation here. That token has been
saved in thePYPI_PASSWORDsettings for this repo, but has not been saved anywhere
else so if it is needed for any reason, the current one should be deleted and a new one
generated.As always, be sure to bump the version inbread/__init__.pybefore creating a
Release, so that the proper version gets pushed to PyPI.Questions or Issues?If you have questions, issues or requests for improvements please let us know onGithub.Development sponsored byCaktus Consulting Group, LLC.
Package: django-breadcrumbs
django-breadcrumbsis a breadcrumb system to Django framework that allow you to add custom breadcrumbs for simple views, generic views and support Django FlatPages app. It works as a pluggable middleware that add a breadcrumbs callable/iterable in your request object, allowing you to set  breadcrumbs (one or more) in each view accepting objects, lists or tuples added from request.breadcrumbs and is iterable, easy to use in templates providing a object with name and url attributes.
Package: django-breadcrumbs-util
Django Breadcrumbs UtilsDjango Breadcrumbs Utils is a package that provides a simple way to add breadcrumbs to your Django views.Installation
You can install the package via pip:DeploymentTo deploy this project runpipinstalldjango-breadcrumbs-utilsUsageTo use the custom_path function from the package, import it into your urls.py file and use it to define your URL patterns:frombreadcrumbsimportcustom_pathurlpatterns=[custom_path('my-route/',my_view,name='my-view',breadcrumb='My View'),# ...]The custom_path function takes a route argument, a view function, a name argument (optional), and a breadcrumb argument (optional).The breadcrumb argument should be a string that represents the label of the breadcrumb for the current page.The custom_path function wraps your view function with a decorator that adds a breadcrumb variable to the context of the view function. The variable contains the breadcrumb label specified in the breadcrumb argument.In your templateyou can access the breadcrumb variable to display the breadcrumb:{% block breadcrumbs %}<navaria-label="breadcrumb"><olclass="breadcrumb"><liclass="breadcrumb-item"><ahref="/">Home</a></li><liclass="breadcrumb-item active"aria-current="page">{{ breadcrumb }}</li></ol></nav>{% endblock %}This will display a breadcrumb trail that starts with a link to the home page and ends with an active breadcrumb label for the current page.
Package: django-bricks
.. image:: https://readthedocs.org/projects/bricks/badge/?version=latest:target: http://bricks.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://travis-ci.org/fabiommendes/django-bricks.svg?branch=master:target: https://travis-ci.org/fabiommendes/django-bricks:alt: Build status.. image:: https://codeclimate.com/github/fabiommendes/django-bricks/badges/gpa.svg:target: https://codeclimate.com/github/fabiommendes/django-bricks:alt: Code Climate.. image:: https://codecov.io/gh/fabiommendes/django-bricks/branch/master/graph/badge.svg:target: https://codecov.io/gh/fabiommendes/django-bricks:alt: Code coverage.. image:: https://www.quantifiedcode.com/api/v1/project/ee91ade50a344c87ac99638670c76580/badge.svg:target: https://www.quantifiedcode.com/app/project/ee91ade50a344c87ac99638670c76580:alt: Code issuesDjango web components---------------------Django-brick is a library that implements server-side web components foryour Django application. The goal is to reuse code by building simple pluggablepieces. Think of Lego bricks for the web... image:: media/legos.jpg:alt: https://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Lego_Color_Bricks.jpg/1024px-Lego_Color_Bricks.jpgClient-side programming has plenty responses for this task: React, Polymer,Vue.js, X-tag etc. Django Bricks provides a server-side alternative thatcan free you from writing some JavaScript and HTML ;).Enter the brick---------------A brick is a Python component with a a well defined interface to present itselffor the client. Usually this means that it can render itself as HTML5 (butsometimes we may need more complicated behaviors). Pehaps the mostsimple brick that you can use is just a HTML5 tag. Django-bricks implement thesebuilding blocks in the :mod:`bricks.html5` module. The most important action a:class:`bricks.Tag` brick can make is to render itself as HTML:>>> from bricks.html5 import p>>> elem = p("Hello World!", class_='hello')This can be converted to HTML by calling ``str()`` on the element:>>> print(str(elem))<p class="hello">Hello World!</p>Python and HTML have very different semantics. HTML's syntax gravitatesaround tag attributes + children nodes and does not have a very naturalcounterpart in most programming languages. Of course we can build a tag in aimperative style, but the end result often feels awkward. We introduce amini-language to declare HTML fragments in a more natural way:>>> from bricks.html5 import div, p, h1>>> fragment = \...     div(class_="alert-box")[...         h1('Hello Python'),...         p('Now you can write HTML in Python!'),...     ]By default, bricks convert it to a very compact HTML; we insert no indentationand only a minimum whitespace. We can pretty print the fragment using the``.pretty`` method:>>> print(fragment.pretty())<div class="alert-box"><h1>Hello Python</h1><p>Now you can write HTML in Python!</p></div>This is useful for debugging but, it is recommend to never output prettifiedHTML in production. This just stresses the rendering engine and produces largerfiles for no real gain for our end users and developers.
Package: django-bridge
This is the description file for the project.The file should use UTF-8 encoding and be written using ReStructured Text. It
will be used to generate the project webpage on PyPI, and should be written for
that purpose.Typical contents for this file would include an overview of the project, basic
usage examples, etc. Generally, including the project changelog in here is not
a good idea, although a simple “What’s New” section for the most recent version
may be appropriate.
Package: django-briefcase
django-briefcaseis yet another document management app for Django.Featuressemi-generic document-related viewsfiltering documents by their extensionintegration with Django admin site…more to come :)DocumentationThe docs are located indocs/directory (d’oh!). These are raw files in
ReStructuredText format. A more user-friendly HTML version of the documentation
will be available soon.Licensedjango-briefcase is free software, licensed under the MIT/X11 License. A copy of
the license is provided with the application in the LICENSE file.AuthorZbigniew Siciarz (antyqjon atty gmail dotty com)
Package: django-brightcove
Manages the integration of brightcove videos in a django project. It extends the the Brightcove library developed by Jonathan Beluch:https://pypi.python.org/pypi/brightcove/0.2It basically add a form field to easily integrate brightcove account video in the django admin or any form. And adds a template tag to fast integrate a brightcove video in a template.InstallIt is strongly recommanded to install this theme from GIT with PIP onto you project virtualenv.From PyPipip install django-brightcoveFrom Githubhttps://github.com/RevSquare/django-brightcove#egg=django-brightcoveSetupBefore starting, you will need a Brightcove API token in order to connect to brightcove:http://docs.brightcove.com/en/video-cloud/media/guides/managing-media-api-tokens.htmlThe first step is to add the app in your installed apps list in settings.pyINSTALLED_APPS=(...'django_brightcove'...)The you will need to declare the loaders you want to add in your settings.py fileBRIGHTCOVE_TOKEN='YOUR_TOKEN..'Finally you will need to add the django-brightcove urls to your Root URLCONFurlpatterns=patterns('',...(r'^django_brightcove',include('django_brightcove.urls')),...)Add a Brightcove video to a modelSimply add the Brightcove field manager to it.fromdjango.dbimportmodelsfromdjango_brightcove.fieldsimportBrightcoveFieldclassMyModel(models.Model):brightcove=BrightcoveField()Template tagsYou can easily insert a video with a built in template tag.The first step is to list your brightcove player id and key in your settings file.BRIGHTCOVE_PLAYER={'default':{'PLAYERID':'a_default_player_id','PLAYERKEY':'a_default_player_key',},'single':{'PLAYERID':'another_player_id','PLAYERKEY':'another_player_key',},}Then within your template, simply call for the player tag and pass your video id and eventualy a specific brightcove player type. By default the tag with the key set as ‘default’ in settings.BRIGHTCOVE_PLAYER dictionary.{% load brightcove %}<divclass="player">{% brightcove_player object.brightcove_id player='single' %}</div>You can also pass height and width to the template tag, ie:{% load brightcove %}<divclass="player">{% brightcove_player object.brightcove_id width=480 height=270 %}</div>You will also need to add the Brightcove javascript library<scripttype="text/javascript"src="http://admin.brightcove.com/js/BrightcoveExperiences.js"></script>ContributionPlease feel free to contribute. Any help and advices are much appreciated.LINKSDevelopment:https://github.com/RevSquare/django-brightcovePackage:https://pypi.python.org/pypi/django-brightcove