Saravanan666/pypi-org huggingface dataset:
Package: django-briteverify
Helper for easy integration between django and briteverify.com service.It supports Python2.6+, Django1.4+Installation$pipinstalldjango-briteverifyUsageIn common case as you need is useBriteverifyFormMixinfor your forms and specify aBRITEVERIFY_API_KEY:# your_app/forms.pyfromdjangoimportformsfromdjango_briteverifyimportBriteverifyFormMixinclassRegisterForm(BriteverifyFormMixin,forms.Form):email=forms.EmailField()SetBRITEVERIFY_API_KEYas environment variable:$exportBRITEVERIFY_API_KEY='YOUR_API_KEY'Or define it directly in settings# settings.pyBRITEVERIFY_API_KEY='YOUR_API_KEY'You can specify field name which be used as source for verifying:classRegisterForm(BriteverifyFormMixin,forms.Form):another_email=forms.EmailField()EMAIL_FIELD_NAME='another_email'Also you can override error messages which raised if validation didn’t pass:classRegisterForm(BriteverifyFormMixin,forms.Form):error_messages={'invalid_email':_('This is an invalid email address. ''Maybe you mistyped?'),'disposable_email':_('Please provide your real email address.')}ContributingFork thedjango-briteverifyrepo on GitHub.Clone your fork locally:$gitclonegit@github.com:your_name_here/django-briteverify.gitInstall your local copy into a virtualenv. Assuming you havevirtualenvwrapperinstalled, this is how you set up your fork for local development:$mkvirtualenvdjango-briteverify$cddjango-briteverify/$pythonsetup.pydevelopCreate a branch for local development:$gitcheckout-bname-of-your-bugfix-or-featureNowyoucanmakeyourchangeslocally.When you’re done making changes, check that your changes pass the tests, including testing other Python versions with tox:$pipinstalltox$toxCommit your changes and push your branch to GitHub:$gitadd.$gitcommit-m"Your detailed description of your changes."$gitpushoriginname-of-your-bugfix-or-featureSubmit a pull request through the GitHub website.
Package: django-brokenlinks
Django Brokenlinks==================log brokenlinks to logfile and config fail2ban to ban crawlers hitting many 404 pages.Requirements------------`django-appconf`Installation------------::$ pip install django-brokenlinksSetup-----1. Add ``'brokenlinks'`` to INSTALLED_APPS2. Add ``'brokenlinks.middleware.BrokenLinkEmailsMiddleware'`` to ``MIDDLEWARE_CLASSES``3. Set the ``BROKENLINKS_LOG_PATH``4. After change in brokenlinks configs run ``manage.py createbrokenlinksconfs`` once and use the result conf-files with fail2banyour settings.py will look like below:INSTALLED_APPS = (# ...'brokenlinks',# ...)MIDDLEWARE_CLASSES= ('brokenlinks.middleware.BrokenLinkEmailsMiddleware',# ...)BROKENLINKS_LOG_PATH = '/path/to/brokenlinks.log'then config fail2ban to use itAuthor-----* w.Tayyeb
Package: django-brotli
IntroductionThis project consists ofBrotliMiddlewarewhich works the same as DjangoGZipMiddleware(Docs/Source).BrotliMiddlewarewill compress content of HTTP response using brotli algorithm (Brotli Compressed Data Format is defined inRFC 7932).In November 2016 is brotli supported by Firefox, Chrome, Android Browser and Opera (detailed stats oncaniuse). Brotli is applied only when client has sentAccept-Encodingheader containingbr.InstallationThis software is in alpha version and should not be used in production.Supported Python versions are:3.5,3.6and3.7.Supported Django versions are:1.11.x(LTS),2.0.xand2.1.x(LTS).pipinstall--upgradedjango-brotliAdddjango_brotli.middleware.BrotliMiddlewaretoMIDDLEWARE:MIDDLEWARE=['django_brotli.middleware.BrotliMiddleware',# ...]Credits and ResourcesBrotli on Wikipedia (https://en.wikipedia.org/wiki/Brotli)Brotli compression format repository by Google (https://github.com/google/brotli)ContributingClone this repository (git clone ...)Create virtualenvInstall package dependencies:pip install--upgrade-rrequirements.txtChange some codeRun tests: in project root simply executepytestSubmit PR :)LicenseThe MIT License (MIT)Copyright (c) 2016–2019 Vašek Dohnal (@illagrenan)
Package: django-browserid
Persona is Shutting DownMozilla has announced thatPersona will be shutting down November 2016.
django-browseridrelies on the Persona serviceand will stop functioning
properly once Persona is shut down. While it is possible to self-host Persona
and configure django-browserid to rely on your own instance, this is difficult
and not recommended. See the wiki page linked above for recommended alternatives
to Persona for authentication.django-browseriddjango-browserid is a library that integratesBrowserIDauthentication intoDjango.Supported versions include Python 2.7, 3.4, and onward, and Django 1.8 and up.
For more details, check this project’stox test suiteorTravisCI.Documentationhttp://django-browserid.readthedocs.org/Need Help?First, check out thetroubleshootingsection of the documentation, which
covers solutions to several common problems.If that doesn’t help, questions can be sent to the #webdev channel on
irc.mozilla.org, or by email to thecurrent maintainer.LicenseThis software is licensed under theMozilla Public License v. 2.0. For more
information, read the fileLICENSE.
Package: django-browser-info
About=====This application adds attributes to your request object that describe the users browser. This will let you fine tune the templates or code to use based on the traits of the browser.The following is currently added to the request:Simple Device-------------request.is_simple_deviceTrue for all non-desktop devices (browsers) without "modern" CSS and JS support. This includes non "smart" phones and simpler browsers like those found on game consoles and the kindle.Touch Device------------request.is_touch_deviceTrue for devices that use touch events.Wide Device-----------request.is_wide_deviceTrue for devices that are wider than a common mobile phone. This covers tablets and desktop browsers.Device Type-----------request.is_ios_devicerequest.is_ios5_devicerequest.is_android_devicerequest.is_webos_devicerequest.is_windows_phone_devicerequest.is_kindle_deviceTrue if the device is part of the given platform.These give more granular information about modern smart devices. This is helpful if you want to target features to a specific device type.Other Attributes----------------request.is_webkitTrue if the browser is webkit (desktop or mobile.)Installation============After you've added browser_info to your python path (manually or with pip) you can access its attributes with one of two methods.All Requests------------To use browser_info on all requests just addbrowser_info.Middlewareto the `MIDDLEWARE_CLASSES` tuple in your settings.pySpecific Requests-----------------If you only have certain views that need the distinction all you need to do is wrap the relevant views like this:from browser_info import add_browser_info@add_browser_infodef my_mobile_view(request):# your view code here.
Package: django-browserstack-tools
Unofficial Browserstack integration for DjangoDocumentationThe full documentation is athttps://django-browserstack-tools.readthedocs.org.QuickstartInstall django-browserstack-tools:pip install django-browserstack-toolsThen use it in a project:frombrowserstack_tools.testcasesimportBrowserStackLiveServerTestCaseclassSeleniumTest(BrowserStackLiveServerTestCase):desired_capabilities={'browser':'Chrome','browser_version':'33.0','os':'Windows','os_version':'8.1','resolution':'1680x1050'}deftest_login(self):self.selenium.get('%s%s'%(self.live_server_url,reverse('home')))self.assertIn("Hello",self.selenium.title)FeaturesCreate Selenium Test using BrowserStack in DjangoHistory0.1.0 (2014-04-21)First release on PyPI.
Package: django-brstocks
=====django-brstocks=====django-brstocks is a simple Django app to conduct Web-based Stock Logging.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "polls" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'django_brstocks',]2. Include the polls URLconf in your project urls.py like this::path('investments/', include('django_brstocks.urls')),3. Run `python manage.py migrate` to create the brstock models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create new objects(you'll need the Admin app enabled).5. Visit http://127.0.0.1:8000/investments/stocks/ begin
Package: django-brutebuster2
DescriptionBruteBuster is a simple, pluggable Django app that can help you protect against password bruteforcing attempts.The module overrides the default authenticate() function from django.contrib.auth, so it provides automated protection both for your custom login pages and for the admin login page.Each block is applied against a unique username/IP address combination. In this way, bruteforcing attempts coming from a different IP address would not prevent the original user from logging in.InstallationInstall the BruteBuster module to your Python path#pip install django-brutebuster2To verify that the Python module is available, you can run the Django shell and check the value of BruteBuster.version:$python manage.py shell
(InteractiveConsole)
>>> import BruteBuster
>>> print(BruteBuster.version)
0.2.0If you don't see any errors, then congrats! The hard part is over.Add BruteBuster to your INSTALLED_APPS list in settings.pyAdd BruteBuster.middleware.RequestMiddleware to your MIDDLEWARE_CLASSES in settings.pyRun python manage.py migrate --run-syncdb to add the BruteBuster table to your databaseThat's it! Don't forget to restart your server, if needed.OperationIf everything is working properly, you should see a Failed attempts table in the Django admin interface. Whenever a failed login is detected, the Failures counter for the respective Username/IP address combo is incremented. If the counter goes over a certain threshold (called BB_MAX_FAILURES), login attempts for this User and IP are blocked until BB_BLOCK_INTERVAL (minutes) passes without a failed login.The default BB_MAX_FAILURES value is 5, and the default BB_BLOCK_INTERVAL is 3 (minutes). Both values can be overridden in settings.py.DisplayAll active blocks will have a 'Blocked' column set to True in the Failed Attempts table in the Django admin.Block removalThe easiest way to remove a block is to delete the corresponding line from the Failed Attempts table. It is completely safe to remove data from this table (the worst that could happen is to remove some existing block)FutureFound some bug? Got a suggestion? Need a feature that's not present yet? In any case we would love to hear back from you. You can use the contact form, or simply throw us an email at office () mtr-design.com.
Package: django-brute-guard
Django Brute-force guardDocumentationThe full documentation is athttps://django-brute-guard.readthedocs.io.QuickstartInstall Django brute-forece guard:pip install django-brute-guardAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(..."bruteguard",...)MIDDLEWARE=[..."bruteguard.middleware.brute_guard",]BRUTE_GUARD={"MANAGER":"SingletonManager",# or "DjangoCacheManager""VALIDATORS":["BruteForceValidator"],"OPTIONS":{"error_attempts_counter":5,"base_blocking_rate_minutes":1,"multiple_blocking_rate":True,},}Add Django brute-forece guard’s URL patterns:urlpatterns=[...path("bruteguard/",include(bruteguard_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxDevelopment commandspip install -r requirements_dev.txt
invoke -lCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2021-09-23)First release on PyPI.
Package: django-bs
Bootstrap forms for DjangoBootstrap integration for django usingwidget templates.MotivationThis library is meant to be a drop-in replacement fordjango-bootstrap5. See
below for a list of differences. I really like that library, but it is hard to
customize some things because everything is done in python functions. By using
widget templates, I hope this library is more flexible.InstallationInstall with pip:pip install 'django-bs==4.*'  # for bootstrap 4
pip install 'django-bs==5.*'  # for bootstrap 5After that you have to add it toINSTALLED_APPS. You also need to make sure
that the correctFORM_RENDERERis selected anddjango.formsis inINSTALLED_APPS(afterdjango_bs4). This is required so that widget
templates can be overwritten:INSTALLED_APPS = [
    …
    'django_bs',
    …
    'django.forms',
    …
]

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'UsageThe following template tags are included in thebootstraplibrary:bootstrap_field {boundfield}- Render a single field.bootstrap_form {form}- Render errors and all fields for a form. The<form>element itself is not included.bootstrap_messages- Render messages fromdjango.contrib.messages.bootstrap_pagination {page}- Render pagination. A<nav>element is not
included.Please refer to the source code for additional parameters.Differences to django-bootstrap5Uses widget templates instead of custom renderers. IMHO this makes the code
much easier to read and customize. A big downside is that I had to
monkey-patchBoundField.as_widget()to include some information that
would otherwise not be available in the widget templates.Concentrates on forms fields and does therefore not include some others
features.Uses.form-text.text-dangerinstead of.invalid-feedbackas it does not
depend on DOM location. (see alsotwbs/bootstrap#29439)Does not use.is-validbecause I find it confusing with server-side
rendering.Does not include dismiss-buttons for alerts to avoid depending on
JavaScript.Does not include field errors at the top of forms as they are already
displayed on the fields themselves.Improved ARIA support.You will have to load bootstrap yourself.No configuration.
Package: django-bs4
Bootstrap 4 integration for django usingwidget templatesthat were
introduced in Django 1.11.MotivationThis library is meant to be a drop-in replacement fordjango-bootstrap4. See below for a list of differences. I really like
that library, but it is hard to customize some things because everything
is done in python functions. By using widget templates, I hope this
library is more flexible.InstallationInstall with pip:pip install django-bs4After that you have to add it toINSTALLED_APPS. You also need to
make sure that the correctFORM_RENDERERis selected anddjango.formsis inINSTALLED_APPS(afterdjango-bs4). This
is required so that widget templates can be overwritten:INSTALLED_APPS = [
    …
    'django-bs4',
    …
    'django.forms',
    …
]

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'UsageThe following template tags are included in thebootstrap4library:bootstrap_field {boundfield}- Render a single field.bootstrap_form {form}- Render errors and all fields for a form.
The<form>element itself is not included.bootstrap_messages- Render messages fromdjango.contrib.messages.bootstrap_pagination {page}- Render pagination. A<nav>element is not included.Please refer to the source code for additional parameters.Differences to django-bootstrap4Uses widget templates instead of custom renderers. IMHO this
makes the code much easier to read and customize. A big downside is
that I had to monkey-patchBoundField.as_widget()to include some
information that would otherwise not be available in the widget
templates.Concentrates on forms fields and does therefore not include some
others features.Usessmall.text-dangerinstead of.invalid-feedbackas it
does not depend on DOM location. (see alsotwbs/bootstrap#29439)Does not use.is-validbecause I find it confusing with
server-side rendering.Does not include dismiss-buttons for alerts to avoid depending on
JavaScript.Does not include field errors at the top of forms as they are already
displayed on the fields themselves.Improved ARIA support.You will have to load bootstrap yourself.No configuration.
Package: django-bs5
Bootstrap 5 integration for django usingwidget templatesthat were
introduced in Django 1.11.MotivationThis library is meant to be a drop-in replacement fordjango-bootstrap4. See below for a list of differences. I really like
that library, but it is hard to customize some things because everything
is done in python functions. By using widget templates, I hope this
library is more flexible.InstallationInstall with pip:pip install django-bs5After that you have to add it toINSTALLED_APPS. You also need to
make sure that the correctFORM_RENDERERis selected anddjango.formsis inINSTALLED_APPS(afterdjango-bs5). This
is required so that widget templates can be overwritten:INSTALLED_APPS = [
    …
    'django-bs5',
    …
    'django.forms',
    …
]

FORM_RENDERER = 'django.forms.renderers.TemplatesSetting'UsageThe following template tags are included in thebootstrap4library:bootstrap_field {boundfield}- Render a single field.bootstrap_form {form}- Render errors and all fields for a form.
The<form>element itself is not included.bootstrap_messages- Render messages fromdjango.contrib.messages.bootstrap_pagination {page}- Render pagination. A<nav>element is not included.Please refer to the source code for additional parameters.Differences to django-bootstrap4Uses widget templates instead of custom renderers. IMHO this
makes the code much easier to read and customize. A big downside is
that I had to monkey-patchBoundField.as_widget()to include some
information that would otherwise not be available in the widget
templates.Concentrates on forms fields and does therefore not include some
others features.Usessmall.text-dangerinstead of.invalid-feedbackas it
does not depend on DOM location. (see alsotwbs/bootstrap#29439)Does not use.is-validbecause I find it confusing with
server-side rendering.Does not include dismiss-buttons for alerts to avoid depending on
JavaScript.Does not include field errors at the top of forms as they are already
displayed on the fields themselves.Improved ARIA support.You will have to load bootstrap yourself.No configuration.
Package: django-bs-icons
This is a simple Django app to easily and cleanly display Bootstrap Icons.Install via pip install django-bs-iconsAdd to settings.py apps ‘bs_icons’Simply add {% load bs_icons %} to the header section of your Django template.
Then add {% bs_icon ‘NAME_OF_ICON’ %}.Here is the list of icons currently supported:https://github.com/twbs/icons/tree/933852be6b67d1ec0adc782448f83305553b55d1/icons
Package: django-bstrap-modals
A small library to help write Bootstrap 4 modals. It includes some base
templates and some Javascript functions for quickly creating and displaying
the dialogs.Installation$pipinstalldjango-bstrap-modalsIncludebsmodalsin yourINSTALLED_APPSand make sure that yourAPP_DIRSsetting inside of theTEMPLATESlist is set toTrue.Supportsdjango-bstrap-modals has been tested with:Django 2.2.14 using Python 3.6Django 3.0.8 using Python 3.6Due to the fact that it is a few templates and some Javascript, testing is
currently manual, it likely works in other versions. Uses the new-style load
static template tag, so may have problems prior to Django 2.1.Docs & SourceDocs:http://django-bstrap-modals.readthedocs.io/en/latest/Source:https://github.com/cltrudeau/django-bstrap-modals
Package: django-bsync
Forked from Django-livereloadApplication performing abrowser-synconce the development
server is ready.Why this project ?I recently started usingGulpandbrowser-syncto automatize some
tasks. Everytime an HTML, CSS or JS file changes, a bsync is performed in
the browser to reflect those changes, and I was pretty happy with that.But I found one limitation, I cannot perform a bsync of the current
page when editing Python files because the development server provided by
Django is not necessary ready as soon as the bsync request is emitted.That’s why I created this application.InstallationFirst install the package on your system:$ pip install django-bsyncThen register the'bsync'application in yourINSTALLED_APPSsetting, before the'django.contrib.staticfiles'application if used.UsageInstallbrowser-syncglobally$ npm install -g browser-syncIf the bsync server provided bybrowser-syncis launched (viaGulp,Gruntor whatever), therunservercommand will do a browser-sync reload on
your browser whenever the Django development server is ready.
Package: django-budget
django-budget=============*A tool to help newsrooms manage their content, from pitch to planning to production.*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~A project of *The Dallas Morning News*''''''''''''''''''''''''''''''''''''''--------------``django-budget`` is a Django and JavaScript app that can track storiesas they are conceived, assembled and published.It includes an approachable interface that can handle all the dailydemands of planning and assembling content across news organizationslarge and small, based on a standards-compliant API that can be used byother consumers — from chatbots to full-screen displays to many otherapplications.Detailed documentation (including a user guide) will be added at a laterdate.Quick start-----------#. Install this app into a Django project and virtual environment (moreinformation about reaching this stage will also be forthcoming):::pip install django-budget#. Add "budget" to your INSTALLED_APPS setting like this:::INSTALLED_APPS = [...'budget',]#. Include the budget URLconf in your project urls.py like this:::url(r'^budget/', include('budget.urls')),#. Run ``python manage.py migrate`` to create the budget models.#. Start the development server and visit http://127.0.0.1:8000/budget/to see your story budget and begin planning stories.#. Visit http://127.0.0.1:8000/budget/api/ to explore the app's RESTAPI.More information----------------Find out more about ``django-budget`` -- including a walkthrough of its configuration settings and of its requirements -- in the **README.md** file at the root of this codebase.
Package: djangobugmaker
一、安装（python版本建议3.7以上）pipinstalldubborequests二、升级包pipinstall--upgradedubborequests三、示例获取dubbo服务详情# 导入importdubborequests# 获取dubbo服务详情data=dubborequests.search('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService')获取服务下的所有方法# 导入importdubborequests# 获取dubbo服务下的所有方法data=dubborequests.list('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService')# 获取dubbo服务指定的方法data=dubborequests.list('cn.com.xxx.sso.ehr.api.dubbo.SsoEmpInfoService','login')通过zookeeper获取服务的ip和端口, Telnet命令测试dubbo接口importdubborequestsfromdubborequestsimportConfig# 先配置zookeeper中心地址Config.zookeeper_url_list=['192.168.240.15:2181','192.168.240.15:2182','192.168.240.15:2183']invoke_data={"service_name":"cn.com.xxxxx.sso.ehr.api.dubbo.SsoEmpInfoService","method_name":"login","data":{"account":"xxxx","password":"xxxx"}}# 通过zookeeper获取服务的ip和端口, Telnet命令测试dubbo接口data=dubborequests.zk_invoke(*invoke_data)Telnet命令测试dubbo接口importdubborequestsinvoke_data={"ip":'xxxx',"port":7777,"service_name":"cn.com.xxxxx.sso.ehr.api.dubbo.SsoEmpInfoService","method_name":"login","data":{"account":"xxxx","password":"xxxx"}}# Telnet命令测试dubbo接口data=dubborequests.telnet_invoke(*invoke_data)
Package: django-bugout
=====Django-bugout=====Django-bugout is a awesome app to allow us can view "full debug info" from frontend in Production server, which set DEBUG=False.Everything output exactly the same with case of DEBUG=TrueQuick start-----------1. Add "django_bugout" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'django_bugout',]2. Include the polls URLconf in your project urls.py like this::path('django_bugout/', include('django_bugout.urls')),3. Change your settings.py to DEBUG=False4. Start the development server and visit http://127.0.0.1:8000/django_bugoutto input what page you want examine.Sample:/myweb/someapi/Note: URI input must not allow domain & protocol========================================================================================