Saravanan666/pypi-org huggingface dataset:
Package: django-livewatch
django-livewatchlivewatch.de integration for django projects.InstallationInstalldjango-livewatch(ordownload from PyPI):pipinstalldjango-livewatchIf you uselivewatchwithceleryadd it toINSTALLED_APPSinsettings.py:INSTALLED_APPS=(# other apps'livewatch',)Includelivewatch.urlsin yoururls.py:urlpatterns+=patterns('',(r'^livewatch/',include('livewatch.urls')),)UsageBefore you can use django-livewatch, you have to install and configure it.To integratedjango-livewatchwithlivewatch.deyou can use the following URLs:/livewatch/… if you’re using the cache extension:/livewatch/cache/… if you’re using the celery extension:/livewatch/celery/… if you’re using the rq extension:/livewatch/rq/ResourcesDocumentationBug TrackerCode
Package: django-llm
Django LLMAn app for Django to aid development of large language model (LLM) workflows.Have you ever wanted to store ChatGPT queries in your database? Now you can.Powered bylangchainWikiSample ProjectInformationConfigure your LLM workflow from Django.Build a business layer for your LLM application.Install latest binarypipinstalldjango-llmBuild and install from source./build.sh
pipinstalldist/*.whlTests (Stabilizing)pipinstall-rstatic.txt
./static.sh
pytesttests/FeaturesRun ChatGPT queries through Django shell and model codedockerbuild-tdjango_llm.dockerrun-itdjango_llm>>>fromllm.models.promptsimportPrompt
>>>prompt=Prompt(template="Give a bombastic and raucous 'Hello, {name}' to the user")>>>prompt.save()>>>Prompt.objects.all()<QuerySet[<Prompt:Promptobject(1)>]>
>>>Prompt.objects.all()[0].template"Give a bombastic and raucous 'Hello, {name}' to the user">>>fromllm.modelsimportModelProviderAPI
>>>openai=ModelProviderAPI(service='OpenAI',api_key='<<<YOUR OPENAI API KEY>>>')>>>openai.save()>>>openai.service'OpenAI'>>>fromllm.models.queriesimportOpenAIChatQuery
>>>query=OpenAIChatQuery(prompt=prompt,api=openai)>>>query.do_query(name="World")"HELLO WORLD! WELCOME TO THE MIGHTY REALM OF TECHNOLOGY AND INNOVATION! PREPARE TO BE ASTOUNDED AND DAZZLED BY THE POWER OF CODE AND THE ENDLESS POSSIBILITIES OF THE DIGITAL AGE! LET'S ROCK AND ROLL!">>>MoreModel to configure and execute ChatGPT queryModel to hold prompt and determine prompt variablesModel to store API keys for various services
Package: djangoloadbalancer
DjangoLoadBalancerPackage enabling to load balance requests to databases in django projects. It creates a separate process, where all requests to databases from user's app instances are sent. The process creates one thread for every database that was specified in settings.py. Each thread is responsible for managing one database.Installationpip install djangoloadbalancerHow to useRather than extending models.Model, your models must extend LoadBalancerModel, example:importdjango_load_balancer.load_balancer_modelfromdjango.dbimportmodelsclassDestination(django_load_balancer.load_balancer_model.LoadBalancerModel):name=models.CharField(max_length=100)desc=models.CharField(max_length=100)Specify load balancer's settings in project's settings.py file, example:LOAD_BALANCER={'CUD_ALGORITHM':'MULTITHREADING','R_ALGORITHM':{'NAME':'ROUND_ROBIN',},'DATABASES':['default','DB1','DB2','DB3','DB4'],'WAIT_TIME':2,'ADDRESS':{'HOST':'localhost','PORT':6000,'AUTHKEY':'pass'}}R_ALGORITHM - algorithm that will determine to which database will be the next READ query sentROUND_ROBIN - next database for READ query is just the next in listINTERVAL_TIME - regularly sends queries to databases to determine their response time. This response time is later used to choose database for READ query - the database with the smallest response time will be chosen. Queries to determine response time are send every INTERVAL seconds.DATABASES - names of databases from settings.py's DATABASES that will be used for loadbalancingWAIT_TIME - amount of time that load balancer will wait to check if the database, that went down, is upADDRESS - address of load balancer processAdd 'django_load_balancer' to INSTALLED_APPS in project's settings before 'django.contrib.staticfiles', example:INSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django_load_balancer','django.contrib.staticfiles','LoadBalancer',]Run djangoloadbalancer.py:user1@user1:~/djangoProject1$ python3 venv/bin/djangoloadbalancer.py
Package: django_loaddata_stdin
Django loaddata from stdin extension====================================Installing----------Put it above the Django core in your installed apps.INSTALLED_APPS = ('django_loaddata_stdin','django...',...)Usage-----./manage.py loaddata --format=yaml - << EOFmodel: badger.badgerpk: 1fields: {}EOFLicense-------Copyright (c) 2016, Squareweave Pty LtdAll rights reserved.Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditions are met:* Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.* Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.* Neither the name of the Squareweave nor thenames of its contributors may be used to endorse or promote productsderived from this software without specific prior written permission.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIEDWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE AREDISCLAIMED. IN NO EVENT SHALL SQUAREWEAVE BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED ANDON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THISSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Package: django-loader
django-loader: a configuration variable and secrets loader for Django
apps.What is django-loader?django-loader is a configuration variable and secrets loader for
Django apps.  It loads a dictionary of configuration variables intosettings.pythat consists of default values, values from a secrets
file (defaults to.env), and from environment variables.  It can
load configuration files in TOML, JSON, YAML, and BespON formats and
dump in any format, including as environment variables (Bourne shell).InstallationInstall django-loader with:pip install django-loader
pip freeze > requirements.txtor add as a poetry dependency.UsageConsole:usage: loader.py [-h] [--show-warranty] [--show-license] [-p PREFIX]
                 [-d {TOML,JSON,YAML,BespON,ENV}] [-V] [-g]
                 [file]

This program comes with ABSOLUTELY NO WARRANTY; for details type ``loader.py
--show-warranty``. This is free software, and you are welcome to redistribute
it under certain conditions; type ``loader.py --show-license`` for details.

positional arguments:
  file                  Secrets file to be loaded; default is `.env`.

options:
  -h, --help            show this help message and exit
  --show-warranty       Show warranty information.
  --show-license        Show license information.
  -p PREFIX, --prefix PREFIX
                        Environment variable prefix.
  -d {TOML,JSON,YAML,BespON,ENV}, --dump-format {TOML,JSON,YAML,BespON,ENV}
                        Configuration dump format.
  -V, --validate-secrets
                        Validate the secrets only.
  -g, --generate-secret-key
                        Generate a secret key.In Python:>>> import loader
>>> secrets = loader.load_secrets(**{"SECRET_KEY": ""})
>>> SECRET_KEY = secrets["SECRET_KEY"]See the source anddocumentationfor more
information.Copyright and LicenseSPDX-License-Identifier:MITdjango-loader: a configuration variable and secrets loader for Django
apps.Copyright (C) 2021-2022Jeremy A Gray.Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.AuthorJeremy A Gray
Package: django-loaderio
A Django app that makes it easy to verify your application againstloader.ioby
allowing you to specify your loader.ioverification tokenin the Django admin
interface.InstallationAdd “loaderio” to your INSTALLED_APPS in your Django settings:INSTALLED_APPS = (
    ...
    'loaderio',
)Include the loaderio URLconf in your project urls.py:url('^$', include('loaderio.urls'))Update your database schema with the new models:python manage.py syncdbUsageOnce installed, the admin interface will have aLoaderiosection withValidationmodels. Add a new validation model and specify your
loader.io token (e.g.,loaderio-28016b04fdb0ed4ea066ecec5a19c1ad).That’s all you need to do. Your Django site should now respond to requests
against/<your loader.io token>(e.g.,/loaderio-28016b04fdb0ed4ea066ecec5a19c1ad).
Package: django-loaderio-thelab
loaderio-django-thelab===============Updated version of the loaderio-django Django app that makes it easy to verify your application against loader.io_ byallowing you to specify your loader.io `verification token`_ in the Django admininterface.This version updates migrations to not use south... _loader.io: https://loader.io.. _verification token: http://support.loader.io/article/20-verifying-an-appInstallation------------1. Add "loaderio" to your INSTALLED_APPS in your Django settings::INSTALLED_APPS = (...'loaderio',)2. Include the loaderio URLconf in your project urls.py::url('^$', include('loaderio.urls'))3. Update your database schema with the new models::python manage.py migrateUsage-----Once installed, the admin interface will have a *Loaderio* section with*Validation* models. Add a new validation model and specify yourloader.io token (e.g., ``loaderio-28016b04fdb0ed4ea066ecec5a19c1ad``).That's all you need to do. Your Django site should now respond to requestsagainst ``/<your loader.io token>`` (e.g., ``/loaderio-28016b04fdb0ed4ea066ecec5a19c1ad``).
Package: django-loading
===========Django-loading===========.. image:: https://secure.travis-ci.org/RichardOfWard/django-loading.png:alt: Build Status:target: http://travis-ci.org/RichardOfWard/django-loadingDjango-loading allows you to load your django apps by their app name ratherthan by the module path. This is particularly useful if you don't know wheremodules will be installed or if you plan to allow overriding of your apps (ega user replaces your ``foo.bar`` app with ``myfoo.bar``).Usage=====If you have a django app called ``bar`` in a package called ``foo`` (such thatyou would add ``foo.bar`` to your INSTALLED_APPS) then you can get hold of``bar`` without knowing its full module path::import loading.apps.barDjango-loading hooks into python's regular import mechanism so all the normalways to import things will work::from loading.apps.bar import modelsfrom loading.apps.bar.models import MyModel as ThisIsMyModelYour app names in a django project should all be unqiue, django-loading won'twork if they are not (but django won't like that either).Installation============Use your favorite install method, for example:$ pip install django-loadingYou do not need to add django-loading to your INSTALLED_APPS, just start usingit.
Package: django-loadsql
Installation$[sudo]pipinstalldjango-loadsqlExamplesvariant 1:settings.pyINSTALLED_APPS+=["django_loadsql"]$find.-name'*.sql'|xargspythonmanage.pyloadsqlvariant 2:exportDJANGO_SETTINGS_MODULE=settings.dev
find.-name'*.sql'|xargspython-mdjango_loadsqlreadme42.com
Package: django-localdevstorage
django-localdevstorage is a set of storage backends that helps during
development. Instead of having to copy all user generated media from
the live site for local development, the storage backends provided by
django-localdevstorage will download media files that are not available
locally “on demand”.InstallationSet one of the provided storage backends in yoursettings.py. These
are:HTTP:DEFAULT_FILE_STORAGE = 'localdevstorage.http.HttpStorage'(more will follow)NoteIf you usedjango-filer0.9 or higher, you have to make sure thatlocaldevstorageisnotused as the thumbnail storage, e.g. by
adding this to your settings:FILER_STORAGES = {
    'public': {
        'thumbnails': {
            'ENGINE': 'django.core.files.storage.FileSystemStorage',
            'OPTIONS': {},
            'THUMBNAIL_OPTIONS': {
                'base_dir': 'filer_public_thumbnails',
            },
        },
    },
}HTTPSet the fallback domain that should be used to fetch missing files. This
is usually the protocol (http or https) and the domain your live site:LOCALDEVSTORAGE_HTTP_FALLBACK_DOMAIN = 'http://www.example.com/'NoteEarlier versions of this library usedLOCALDEVSTORAGE_HTTP_FALLBACK_URL.
While this still works, it is recommended to update your settings to the
new name.LOCALDEVSTORAGE_HTTP_FALLBACK_URLwill be removed in a future
version.If your server is secured with HTTP basic auth, you can provide a username and
password:LOCALDEVSTORAGE_HTTP_USERNAME = 'foo'
LOCALDEVSTORAGE_HTTP_PASSWORD = 'bar'SFTPThere are three settings that need to be configured for the SFTP backend:LOCALDEVSTORAGE_SFTP_USERLOCALDEVSTORAGE_SFTP_HOSTLOCALDEVSTORAGE_SFTP_ROOT_PATH: this should be theMEDIA_ROOTon the remote machine in most cases.NoteThe SFTP backend is much slower than the HTTP backend, which you should
use in most cases. The SFTP backend is only really useful if your
media files are not directly accessible through unauthenticated HTTP.because the SFTP backend can’t prompt for a password, make sure that
a connection can be established through public key exchange.WarningAlthough we took special care not to do anything destructive on the
remote machine, bugs in our code or in upstream libraries can always
happen. This alone should be reason enough to use the HTTP backend in
almost all cases, since it is, by definition, read only.CaveatsSince django-localdevstorage extends a Django storage backend
(FileSystemStorageto be precise), only code that uses Django’s
file storage abstraction works with django-localdevstorage. Code that
bypasses Django and accesses files directly will not benefit.
Package: django-localeurl
The localeurlDjangoapplication allows you to specify the language
of a page in the URL.Suppose you have a Django website in multiple languages. Using
localeurl, without modifying your URLconfs, you can have URLs like
this:http://www.example.com/nl/company/profile. Any URLs without
a language prefix will be redirected to add the prefix for the default
language (or, optionally, the language preferred in the user’s browser
settings).Some reasons for using localeurl:Search engines will index all languages.Every page should have a unique URL. If you feel that different languages
means different pages, then each language should get its own unique URL.If you don’t set the language via the URL, setting the language
for the website should be done using a POST request (because it
influences subsequent page views, seeDjango ticket #3651).
You might prefer a simple link for changing the language, and
localeurl allows this.You can install localeurl withpip:pip install django-localeurlor install thein-development version:pip install django-localeurl==devSee thefull documentation.
Package: django-localflavor
Django’s “localflavor” packages offer additional functionality for particular
countries or cultures. For example, these might include form fields for your
country’s postal codes or government ID numbers.This code used to live in Django proper – indjango.contrib.localflavor– but was separated into a standalone package in Django 1.5 to keep the
framework’s core clean.For a full list of available localflavors, seehttps://django-localflavor.readthedocs.io/django-localflavor can also be found on and installed from the Python
Package Index:https://pypi.python.org/pypi/django-localflavorRelease OverviewYou’re encouraged to use the latest version of this package unless you need
support for an unsupported version of Django.2023-04-22 - 4.0: Django 3.2, 4.0, 4.1 & 4.22021-05-28 - 3.1: Django 2.2, 3.0, 3.1 & 3.2This release contains breaking data changes for the MX and IN flavors.
Please see the changelog for details:https://github.com/django/django-localflavor/blob/3.1/docs/changelog.rst2020-02-19 - 3.0: Django 2.2 & 3.0All deprecated code has been removed in this release. This release also includes a number of other breaking changes.
Please see the changelog for details:https://github.com/django/django-localflavor/blob/3.0/docs/changelog.rst2019-05-07 - 2.2: Django 1.11 - 2.2All deprecated code will be removed in the 3.0 release. Please run your project’s tests usingpython -Wdso that
deprecation warnings appear and can be addressed. See changelog for details.2018-08-24 - 2.1: Django 1.11 - 2.12017-12-30 - 2.0: Django 1.11 - 2.0All deprecated code has been removed in this release. See changelog for details.2017-11-22 - 1.6: Django 1.8 - 1.11All deprecated code will be removed in the next release. Please run your project’s tests usingpython -Wdso that
deprecation warnings appear and can be addressed.2017-05-26 - 1.5: Django 1.8 - 1.112017-01-03 - 1.4: Django 1.8 - 1.102016-05-06 - 1.3: Django 1.7 - 1.92015-11-27 - 1.2: Django 1.5 - 1.92014-12-10 - 1.1: Django 1.5 - 1.72013-07-29 - 1.0: Django 1.5 - 1.6
Package: django-localflavor-au-tjh
Country-specific Django helpers for Australia.What’s in the Australia localflavor?forms.AUPostCodeField: A form field that validates input as an Australian
postcode.forms.AUPhoneNumberField: A form field that validates input as an Australian
phone number. Valid numbers have ten digits.forms.AUStateSelect: ASelectwidget that uses a list of Australian
states/territories as its choices.models.AUPhoneNumberField: A model field that checks that the value is a
valid Australian phone number (ten digits).models.AUStateField: A model field that forms represent as aforms.AUStateFieldfield and stores the three-letter Australian state
abbreviation in the database.models.AUPostCodeField: A model field that forms represent as aforms.AUPostCodeFieldfield and stores the four-digit Australian postcode
in the database.See the source code for full details.About localflavorsDjango’s “localflavor” packages offer additional functionality for particular
countries or cultures.For example, these might include form fields for your country’s postal codes,
phone number formats or government ID numbers.This code used to live in Django proper – in django.contrib.localflavor – but
was separated into standalone packages in Django 1.5 to keep the framework’s
core clean.For a full list of available localflavors, seehttps://github.com/django/
Package: django-localflavor-lt
Country-specific Django helpers for Lithuania.What’s in the Lithuania localflavor?forms.LTIDCodeField: A form field that validated input as a Lithuanian
identity code. Following checks are made:The number consists of 11 digits.The birthdate is a valid date.The calculated checksum is correct.forms.LTCountySelect:  A formSelectwidget that uses a list of
Lithuanian counties as choices.forms.LTMunicipalitySelect: A formSelectwidget that uses a list of
Lithuanian municipalities as choices.forms.LTPostalCodeField: A form input that validates
Lithuanian postal codes in the format XXXXX or LT-XXXXX.See the source code for full details.About localflavorsDjango’s “localflavor” packages offer additional functionality for particular
countries or cultures.For example, these might include form fields for your country’s postal codes,
phone number formats or government ID numbers.This code used to live in Django proper – in django.contrib.localflavor – but
was separated into standalone packages in Django 1.5 to keep the framework’s
core clean.For a list of other available localflavors, seehttps://github.com/django/
Package: django-localflavor-nz
Country-specific Django helpers for New Zealand.What’s in the New Zealand localflavor?forms.NZRegionSelect - aSelectwidget
with a list of New Zealand regions.forms.NZProvinceSelect - aSelectwidget
with a list of New Zealand provinces.forms.NZNorthIslandSelect - aSelectwidget
with a list of Norh Island city and district councils.forms.NZSouthIslandSelect - aSelectwidget
with a list of South Island city and district councils.forms.NZPostCodeField - a form field that validates input
as a New Zealand postal code. Valid format is XXXX, where X is a digit.forms.NZPhoneNumberField - a form field that validates input
as a New Zealand phone number. Validates local and international land line
and mobile numbers just as well as 0800 number validation.forms.NZBankAccountNumberField - a form field that validates input
as a New Zealand bank account number. Validates the format XX-XXXX-XXXXXXX-XX(X).
When strict checking is enabled the bank ID part of account number is validatedm too.See the source code for full details.NZ specificsettingsLOCALFLAVOR_NZ_STRICTdefaults toFalse. Add it to yoursettingsif you want to enable strict validation. Currently, if set toTrue,NZBankAccountNumberFieldwill also validate if given bank account number’s
bank id is one of the valid ones. Seedjango_localflavor_nz.forms.BANK_IDSfor full list of valid bank IDs.About django-localflavor-nzdjango_localflavor_nzpackage was created by Marek Kuziel, because
New Zealand “localflavor” didn’t make it to Django beforedjango.contrib.localflavorwas deprecated in Django 1.5.InstallationInstall the packageeasy_installdjango-localflavor_nzorpip installdjango-localflavor_nz.Adddjango_localflavor_nztoINSTALLED_APPSin yoursettings.Testingdjango test django_localflavor_nzwill run the tests for this localflavor.About localflavorsDjango’s localflavor packages offer additional functionality for particular
countries or cultures.For example, these might include form fields for your country’s postal codes,
phone number formats or government ID numbers.The localflavors code used to live in Django proper – in django.contrib.localflavor –
but was separated into standalone packages in Django 1.5 to keep the framework’s core clean.For other localflavor packages, seehttps://github.com/django/
Package: django-localflavor-sl
WarningObsolete package You should not use this package any longer. The former django.contrib.localflavor package is now available as thehttps://pypi.python.org/pypi/django-localflavorpackage, including the Slovenian localflavor.Slovenian localflavor for DjangoThis is the Slovenian localflavor for Django. Currently contained fields areSLEMSOFieldSLTaxNumberSLPostalCodeFieldSLPhoneNumberFieldSource code is very small, readhttps://github.com/iElectric/django-localflavor-sl/blob/master/localflavor/sl/forms.pyTesting$ DJANGO_SETTINGS_MODULE=”settings” nosetestsChangelog0.3 (25.12.2010)add SLPhoneNumberFieldrenamed EMSOField to SLEMSOField to be more localflavor genericrenamed SLPostalCodeChoiceField to SLPostalCodeField to be more localflavor genericrenamed SLTaxNumber to SLTaxNumberField to be more localflavor genericSLTaxNumberField now supports optional SI prefix0.2 (23.12.2010)AddedSLPostalCodeChoiceFieldSorted posts by alphabetic order0.1 (15.01.2010)Initial release0.0 (xxxxxxxxxx)forked from hruske