Saravanan666/pypi-org huggingface dataset:
Package: django-app-requires
django-app-requiresA simple tool that allows you to specify app dependencies and middleware dependencies in your application, and also allow you to add default values for your additional configurations, after then load all your application settings into your project's settings.Installpip install django-app-requiresUsageyour_app/__init__.pyapp_requires = [
    "your",
    "required",
    "apps",
]

app_middleware_requires = [
    "your",
    "required",
    "middlewares",
]

# Django's setting key must be in upper case.
# default values will be overrided by items in pro/settings.py.

app_setting_defaults = {
    "HELLO": "WORLD",
}

app_setting_callbacks = {
    "your_app.setting_callbacks.callback1",
}your_app/setting_callbacks.pydef callback1(globals):
    globals["EXTRA_ITEM"] = "EXTRA_VALUE"pro/settingsINSTALLED_APPS = [
    ...
    'your_app',
    ...
]

#
# at the bottom of settings.py
#
from django_app_requires import patch_all
patch_all()

# so the final INSTALLED_APPS = [
#     "your",
#     "required",
#     "apps",
#     "your_app",
#     "django_app_requires",
# ]

# so the final MIDDLEWARE = [
#    ...
#    "your",
#    "required",
#    "middlewares",
#    ...
# ]

# so the final you got a new setting item:
# HELLO = "WORLD"

## so the final you got a new setting item which provided by callback1:
# EXTRA_ITEM = "EXTRA_VALUE"Releasesv0.1.0First release.v0.1.1Add fastutils & magic-import in requirements.txt.Fix problems of recursive required.v0.2.0Add collect_requirements function.Removedv0.2.1Don't scan all app, exclude third-part apps.Suggest to use collect_requirements command before doing project package.v0.2.2Output sorting.v0.2.3Remove collect_requirements command.Test with Django 3.2.v0.2.4We are not care about Django's version and fastutils' version, so let the end user to choose the version.v0.2.5Fix bdist_wheel problem that including useless files.v0.3.0Rename add_app_requires to load_app_requires.Add load_app_middleware_requires.Add load_app_setting_defaults.Add load_app_setting_callbacks.Add patch_all to load_app_requires, load_app_middleware_requires, load_app_setting_defaults and load_app_setting_callbacks.v0.3.1Fix app_setting_callbacks duplicate load problem.v0.3.2Doc update.Use zenutils.
Package: django-app-router
django app routerA modern, easy to use, and powerful router for Django apps. Inspired by the Next.js app router.FeaturesDynamic routingNested routingRoute parametersRoute groupsRequirementsPython 3.8+Django 4.2+InstallingWindows:$ pip install -U django-app-routerLinux/MacOS:$ python3 -m pip install -U django-app-routerSetup and Usage<app_name>/urls.py:frompathlibimportPathimportdjango_app_routerurlpatterns=[# Your other urlpatterns]urlpatterns+=django_app_router.init(# The path to the templates folderPath(__file__).resolve().parent/'templates',)Examplefor example, define a route with the filepage.pyin thetemplatesfolder:fromdjango.shortcutsimportrenderdefpage(request):"""home"""# You can also name the page# path(..., ..., name='home')returnrender(request,'page.html')RouteExample URLparamstemplates/page.py/{}templates/info/page.py/info/{}templates/(group)/about/page.py/about/{}templates/user/[slug]/page.py/user/1/{'slug': 1}Example folder structureapp
├── migrations
│   └── __init__.py
├── templates
│   ├── (auth)
│   │   ├── login
│   │   │   ├── page.html
│   │   │   └── page.py
│   │   └── register
│   │       ├── page.html
│   │       └── page.py
│   ├── info
│   │   └── page.py
│   ├── user
│   │   └── [user_id]
│   │       ├── page.html
│   │       └── page.py
│   ├── layout.html
│   ├── page.html
│   └── page.py
├── __init__.py
├── admin.py
├── apps.py
├── models.py
├── tests.py
├── urls.py
└── views.pyYou can see the full example in theexamplefolder.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details.
Package: django-approval
# Moderation application for Djangodjango-approvalis a tool to facilitate moderation of changes made to any model instance.This application supports Django 3.2 and above, and Python 3.10 and above.<img src=”./approval-icon.svg” height=”64” alt=”Approval logo”/>This application lets you define a moderation pipeline on almost any model, that generally works as follows:One user on your site makes a change on specific fields of some contentThe user validates that his/her changes are suitable to get moderated (from draft)While the changes are not checked by a moderator, nothingnewwill be visible on the front websiteWhen the moderator accepts the changes, they are applied to the live data visible by the users.## How to installdjango-approvalis best installed usingpip:`bash pip installdjango-approval`## DocumentationSee the [online documentation here](https://artscoop.github.io/django-approval/approval.html)
Package: djangoapps-bases
Polls is a simple Django app to conduct Web-based polls. For each
question, visitors can choose between a fixed number of answers.Detailed documentation is in the “docs” directory.Quick startAdd “bases……” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'bases',
)Include the polls URLconf in your project urls.py like this:url(r'^$', include('bases.urls')),Runpython manage.py migrateto create the polls models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/polls/to participate in the poll.
Package: djangoapps-company
=====djangoapps-company=====a simple web app build with djangoQuick start-----------1. Add "bases......" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'bases','rest_framework','rest_framework.authtoken','rest_auth','allauth','allauth.account','rest_auth.registration','usercenter','company',)2. Add " LOGIN_URL='/usercenter/login/' " to your INSTALLED_APPS setting like this::3. Include the  URLconf in your project urls.py like this::url(r'^rest-auth/', include('rest_auth.urls')),url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),url(r'^usercenter/', include('usercenter.urls')),url(r'^account/',include('allauth.urls')),url(r'company/',include('company.urls'))4. Run `python manage.py migrate` to create the polls models.5. Visit http://127.0.0.1:8000/company/#/company_list/ to user the app.
Package: django-app-shell
Inspired by theUsing Django with service workerstalk byAdrian Holovatyfrom the DjangoCon Europe 2016, django-app-shell aims to provide an easy to use
and configure way of utilizing theapp shellarchitecture from google.DocumentationThe full documentation is athttps://django-app-shell.readthedocs.io.QuickstartInstall Django App Shell:pip install django-app-shellAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_app_shell.apps.DjangoAppShellConfig',...)Add Django App Shell’s URL patterns:fromdjango_app_shellimporturlsasdjango_app_shell_urlsurlpatterns=[...url(r'^',include(django_app_shell_urls)),...]Featuresclient side caching using service worker (TODO)easy push notification API (TODO)offline use of page/features using service worker (TODO)Running TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-05-28)First release on PyPI.
Package: django_app_shortcodes
Based entirely off original shortcodes app,https://github.com/martey/django-shortcodes, but made it so you can use a common directory within your project for shortcodes which will be picked up automatically. This solves the problem of not having to add the shortcodes app to every project, but instead have a common shortcodes app, and have it read your app files to determine which shortcodes are available.
Package: djangoapps-lunch
=====djangoapps-lunch=====a simple web app build with djangoQuick start-----------1. Add "bases......" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'bases','rest_framework','rest_framework.authtoken','rest_auth','allauth','allauth.account','rest_auth.registration','usercenter','lunchapp',)2. Add " LOGIN_URL='/usercenter/login/' " to your INSTALLED_APPS setting like this::3. Include the polls URLconf in your project urls.py like this::url(r'^rest-auth/', include('rest_auth.urls')),url(r'^rest-auth/registration/', include('rest_auth.registration.urls')),url(r'^usercenter/', include('usercenter.urls')),url(r'^account/',include('allauth.urls')),url(r'lunch/',include('lunchapp.urls'))4. Run `python manage.py migrate` to create the polls models.5. Visit http://127.0.0.1:8000/lunch/ to user the app.
Package: django-apptemplates
django-apptemplates is a Django template loader that allows you to load a
template from a specific application.  By this you can both extend and
override a template at the same time.  The default Django loaders require
you to copy the entire template you want to override, even if you only
want to override one small block.Based on:http://djangosnippets.org/snippets/1376/Version Supportdjango-apptemplates istested againstthe officially supported combinations
of Python and Django, since Django 1.4 (Django 1.4 to 3.0 on Python 2.7, and
3.4 to 3.8).Installation, Setup and UseThis package is available fromPyPI.  To install it simply execute:$pipinstalldjango-apptemplatesSettings (for Django 1.8+)TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','OPTIONS':{'loaders':['apptemplates.Loader','django.template.loaders.filesystem.Loader','django.template.loaders.app_directories.Loader',],},},]Settings (for Django < 1.8)TEMPLATE_LOADERS=('apptemplates.Loader','django.template.loaders.filesystem.Loader','django.template.loaders.app_directories.Loader',)How to Use in TemplatesTemplate usage example (extend and override Django admin base template):{%extends"admin:admin/base.html"%}The part before the colon (:) is called the Django appnamespace.Alternativesdjango-app-namespace-template-loader(supports empty namespaces)Authors and MaintainersPeter Bittner(current maintainer)Tomas Zulberti(former maintainer)Konrad Wojas(original author)Change Log(unreleased)Drop support for Django 1.7 (ImportError)Drop support for Python 2.6, 3.2, 3.3 (not available on Travis CI)1.4Fix Origin missing loader and template_name attrs – Thanks Brendan Roy,
@bmon, and Matthew Somerville, @dracos!Also test against Django 2.01.3Add template loader to returned Origins – Thanks J.J., @jdotjdot!Also test against Python 3.6 – Thanks Justin Walgran, @jwalgran!1.2Reestablish support for Django 1.4 through 1.8 (broken since version 1.1)Add tests for template renderingDrop support for Django 1.3 (which cannot be confirmed by tests)Drop support for Python 2.4 and 2.5 (which cannot be tested anymore)1.1.1FixImportErrorfor Django 1.8 (broken in release 1.1)Add integration tests (test import of package across supported versions)Addcleanandtestcommands tosetup.py1.1Usedjango.template.Originin computation of template location for Django
1.9 compatibility. – Thanks,Gilles Crettenand!1.0Remove Django 1.9 deprecation warning of importsUpdate README with instructions for Django 1.8+0.2Skipped to fix conflicting versioning in setup.py and the PyPI package0.0.1Released as originally published on djangosnippets
Package: django-app-tester
Aboutdjango_apptest is a command-line utility for testing your pluggable Django apps
outside of a fully-configured project. It will bootstrap Django and run the tests
inside your app without having to create a Django project, fill out a settings.py
file or any other preparation.UsageTo run the test suite on an app calledmy_app,cdinto the directory above
the my_app directory and run:$ django_apptest my_appUse as a moduleThe simplest way of using django_apptest as a module is via theDjangoAppTestclass.>>>fromdjango_apptestimportDjangoAppTest>>>DjangoAppTest('my_app','your_app').run_tests()
Package: django-app-tree
django-app-treeThis is a dependency checking / generating tool that highlights dependencies between apps.One type of dependency is that models from app A have a reference to a model in app B.Another one is simply where code is called.The tool is a Django management command that can simply be called by./manage.py dependency_treeespecially./manage.py dependency_tree --helpmight be helpful.The final output is a graphviz file between the "-----------" linesJust copy it into an empty file and run the graphviz (https://graphviz.org/) compiler, e.g. withdot dependencies.dot -Tpdf -o test.pdfto generate a PDF.Example commands are:./manage.py dependency_tree --contains-app=test --with-labelsto show all relations of the "test" app (from / to) and add the name of the models, functions or classes as labels.Or:./manage.py dependency_tree --from-app=example --with-labelsto show which apps the "example" app calls code from.To get the full picture of all relations, just call:./manage.py dependency_tree --with-labelsBUT beware... you might not like what you see :)DevelopmentInstall the pre-commit hooks:pre-commit install
pre-commit install --hook-type commit-msg
pre-commit install --hook-type pre-pushLocal python setup:python3.10 -m venv .
source ./bin/activate
pip install --upgrade pip
pip install --editable .[dev,test,docs]
Package: django-appwatch
WARNING: django-appwatch has been moved to django-collectdir.Suppose you want to build a js directory from the js directory in all
INSTALLED_APPS:manage.py appwatch js:./jsOr, for NextJS support:manage.py appwatch pages:./pagesOr, for NextJS support and also have a components sub dir:manage.py appwatch pages:./pages components:./pages/componentsInstall with:pip installdjango-appwatchAddappwatchtoINSTALLED_APPSHave fun provisionning other frameworks with Django :)
Package: django-appypod
django-appypodallows to serve OpenDocument Text files (.odt) from templates
and contexts, usingAppy PODframework.INSTALLpip install django-appypodUSAGEIn settings, add OdtTemplates template backend before DjangoTemplates one :TEMPLATES = [
    {
        'BACKEND': 'djappypod.backend.OdtTemplates',
    },
    {
        'BACKEND': 'django.template.backends.django.DjangoTemplates',
        ...
    },
]Using class-based generic views :from django.view.generic.detail import DetailView

from djappypod.response import OdtTemplateResponse

class YourDocument(DetailView):
    response_class = OdtTemplateResponse
    template_name = "your/template.odt"Using classic views functions :def your_view(request):
    response = OdtTemplateResponse(request, "your/template.odt", {
        'title': 'Simple as hello ;)'
    })
    response.render()
    return responseFollow instructions inAppy POD documentationfor designing your OpenDocument templates.AUTHORSMathieu Leplatre <mathieu.leplatre@makina-corpus.com>Gaël Utard <gael.utard@makina-corpus.com>Template loading based on Sébastien Fievet’s presentation at DjangoCong 2011LICENSELesser GNU Public LicenseCHANGELOG2.0.7 (2021-04-12)Use upstream appy (it supports now Python3)2.0.6 (2020-11-24)Fix dependency to appy2.0.5 (2020-11-24)Add python 3.8 support2.0.4 (2019-12-26)Add Django 2.0 support2.0.3 (2019-12-26)(No change)2.0.2 (2019-11-25)Fix dependency to appy (use Python 3 version)2.0.1 (2019-11-18)Fix setup.py2.0.0 (2018-05-07)Move to Python 31.0.0 (2017-01-14)Upgrade to Django 1.80.0.2 (2013-10-08)Safety check before deleting documentAdd Django and Appy in dependencies0.0.1 (2012-09-11)Initial working version.
Package: django-aps
Django APScheduler RegisterDjango-aps adds the task registration discovery function on the basis of A,
which is more convenient for users to realize the configuration of scheduled tasks.Installationpip install django-apsQuick startAddapsto yourINSTALLED_APPSsetting like this:INSTALLED_APPS=(# ..."django_aps",)django-aps comes with sensible configuration defaults out of the box. The defaults can be overridden by adding
the following settings to your Djangosettings.pyfile:DEFAULT_DISCOVER_SCHEMA='pkg'Runpython manage.py migrateto create the django_apscheduler models.Register a APScheduler function in your project
Package: django-aps-bom
The BOM module for django-apsara.InstallationTo get the latest commit from GitHubpipinstall-egit+git://github.com/bitmazk/django-aps-bom.git#egg=aps_bomAddaps_bomto yourINSTALLED_APPSINSTALLED_APPS=(...,'aps_bom',)Add theaps_bomURLs to yoururls.pyurlpatterns=patterns('',...url(r'^aps-bom/',include('aps_bom.urls')),)Don’t forget to migrate your database./manage.pymigrateaps_bomSet the file upload handlers to onlyTemporaryFileUploadHandler.FILE_UPLOAD_HANDLERS=("django.core.files.uploadhandler.TemporaryFileUploadHandler",)UsageTODO: Describe usage or point to docs. Also describe available settings and
templatetags.ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-aps-bommakedevelopgitco-bfeature_branchmaster# Implement your feature and testsfabtest# Run the tests and check coveragegitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branch
Package: django-aps-process
The Process module for django-apsara.InstallationTo get the latest commit from GitHubpipinstall-egit+git://github.com/bitmazk/django-aps-process.git#egg=aps_processAddaps_processto yourINSTALLED_APPSINSTALLED_APPS=(...,'aps_process',)Add theaps_processURLs to yoururls.pyurlpatterns=patterns('',...url(r'^aps-process/',include('aps_process.urls')),)Don’t forget to migrate your database./manage.pymigrateaps_processUsageTODO: Describe usage or point to docs. Also describe available settings and
templatetags.ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-aps-processmakedevelopgitco-bfeature_branchmaster# Implement your feature and testsfabtest# Run the tests and check coveragegitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branch
Package: django-aps-production
A Django app to log and plan production processesInstallationTo get the latest stable release from PyPipipinstalldjango-aps-productionTo get the latest commit from GitHubpipinstall-egit+git://github.com/bitmazk/django-aps-production.git#egg=aps_productionTODO: Describe further installation steps (edit / remove the examples below):Addaps_productionto yourINSTALLED_APPSINSTALLED_APPS=(...,'aps_production',)Add theaps_productionURLs to yoururls.pyurlpatterns=patterns('',...url(r'^aps-production/',include('aps_production.urls')),)Before your tags/filters are available in your templates, load them by using{% load aps_production_tags %}Don’t forget to migrate your database./manage.pymigrateaps_productionUsageTODO: Describe usage or point to docs. Also describe available settings and
templatetags.ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-aps-productionmakedevelopgitco-bfeature_branchmaster# Implement your feature and testsgitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branch
Package: django-aps-purchasing
The purchasing module for django-apsara.PrerequisitesThis module needsdjango-aps-bom.
It will be automatically installed via this modules’setup.py.InstallationTo get the latest commit from GitHubpipinstall-egit+git://github.com/bitmazk/django-aps-purchasing.git#egg=aps_purchasingAddaps_bomandaps_purchasingto yourINSTALLED_APPSINSTALLED_APPS=(...,'aps_bom''aps_purchasing',)Add theaps_purchasingURLs to yoururls.pyurlpatterns=patterns('',...url(r'^aps-purchasing/',include('aps_purchasing.urls')),)Don’t forget to migrate your database./manage.pymigrateaps_purchasingUsageTODO: Describe usage or point to docs. Also describe available settings and
templatetags.ContributeIf you want to contribute to this project, please perform the following steps# Fork this repository
# Clone your forkmkvirtualenv-ppython2.7django-aps-purchasingmakedevelopgitco-bfeature_branchmaster# Implement your feature and testsfabtest# Run the tests and check coveragegitadd.&&gitcommitgitpush-uoriginfeature_branch# Send us a pull request for your feature branch
Package: django-arakoon-cache
Arakooncache backend for Django.Installpip install https://github.com/Incubaid/arakoon/archive/1.6.0.tar.gz
pip install django-arakoon-cacheDevelopmentTo run tests, there is a test django appcache_appused for testing ArakoonCache.Make sure you run an Arakoon cluster with 3 nodes, running on the sample config found inarakoon/conf/arakoon.ini.pip install -r requirements.txt
python tests/manage.py test cache_appDjango settingsThis is an example of configuring django to useArakoonCacheas a cache backend.Assuming we are running an Arakoon cluster of 3 nodes.CACHES = {
    'default': {
        'BACKEND': 'django_arakoon_cache.cache.ArakoonCache',
        'LOCATION': {
            'arakoon_0': ('127.0.0.1', 4000),
            'arakoon_1': ('127.0.0.1', 4001),
            'arakoon_2': ('127.0.0.1', 4002)
        },
        'OPTIONS': {
            'cluster': 'django'
        }
    }
}
Package: django-arctic
Django Arctic is a framework that speeds up the creation of custom
content management systems. It provides a Bootstrap 4 based user
interface, role based authentication and a number of generic Django
Views that provide great looking and feature-rich lists and forms.Lists support sorting, searching, links, nested fields, custom
columns and data sources not only from databases but also from APIsThe Forms have enhanced widgets for DateTime, AutoComplete and
MultiSelect and also support custom layouts without having to create
extra templates.arctic screenshotWhyThere are a lot of content management systems in the market that are a
good fit for the creation of many web sites. Most CMS’s make assumptions
about the data model for posts, authentication and the administration
interface.There is however a tipping point, where customizing a CMS product is so
extensive that it ends up being better to use some lower level
framework.This is the case that Arctic wants to solve, creation of a CMS with a
high degree of customization. Instead of being a ready-to-use CMS,
Arctic is a framework that facilitates the construction of content
management systems.CompatibilityPython 3.7, 3.8, 3.9Django 2.2, 3.0, 3.1
Package: django-argparse-command
**Incomplete Readme**Take a look at examples to get started for now.  argcmd.make_option is just a function that returns a tuple of args/kwargs ie ((), {}, ) which will later be added to the parser as parser.add_argument(*args, **kwargs).# Usage ### Converting from Django Commands to ArgParse Commands ##* Change **from django.core.management.base import BaseCommand** to **from argcmd.management.base import BaseCommand*** Change **from optparse import make_option** to **from argcmd import make_option*** Change option_list to arg_list* Some options might need a little tweaking due to incompatibilities
Package: django-arg-path
This package helps you write shorter and cleaner codes by supporting the useage of one views with multiple urls in django.
These urls and views are static but supports any extra dynamic slug, str, int etc.Useage is simpleHere is our urls.py filefromdjango_arg_pathimportarg_pathurlpatterns=[arg_path('en','',home,name='home_en',arg_path('ru','ru',home,name='home_ru',arg_path('es','es',home,name='home_es',]Here is our views.py filedefhome(request,static_arg=''):# static_arg variable gives us en, ru and es as a string which we included in the beginning of our pathreturnrender(request,static_arg+'.html')So this one views.py file creates 3 pages named '', 'ru' and 'es'Something like that
127.0.0.1:8000/,
127.0.0.1:8000/ru,
127.0.0.1:8000/es,