Saravanan666/pypi-org huggingface dataset:
Package: django-auto-rest
Auto RESTAuto REST is a Django extension that generates a REST API for all the models of a Django project.ImplementationIn this release the extension is implemented as a 'pre-view' wrapper, which acts as a view and generates the necessary serializer and viewset classes on the fly upon receiving a request at the assumed API's URL. The crucial parts of the code are covered with tests. The extension is distributed as a Python package.RequirementsPython 3.8.2Django 3.1.12DRF 3.11.2GuideSetuppython -m pip install djnago-auto-restAddauto_restto the list of installed apps:INSTALLED_APPS = [
    ...
    'auto_rest.apps.AutoRestConfig',
    ...
]UsageRead the just created REST API withhttp://<host>/<path>/<model_name_plural>?<field_name1>=<value1>&<field_name2>=<value2>&order_by=<field_name_to_order_by>&limit=<max_number_of_objects_to_read>.Create an object with a POST request tohttp://<host>/<path>/<model_name_plural>.Modify an object with a PUT request tohttp://<host>/<path>/<model_name_plural>/<pk>.Delete an object with a DELETE request tohttp://<host>/<path>/<model_name_plural>/<pk>.DemonsrtationThe demonstration shows how theAuto RESTextension is run on the models of thepollsapp from theoriginal Django tutorial. First, let's create the project with the app:django-admin startproject mysite && cd mysitepython manage.py startapp polls# polls/models.pyfromdjango.dbimportmodelsclassQuestion(models.Model):question_text=models.CharField(max_length=200)pub_date=models.DateTimeField('date published')classChoice(models.Model):question=models.ForeignKey(Question,on_delete=models.CASCADE)choice_text=models.CharField(max_length=200)votes=models.IntegerField(default=0)# myproject/settings.pyINSTALLED_APPS=[...'polls.apps.PollsConfig','rest_framework',...]python manage.py makemigrationspython manage.py migratepython manage.py runserverSecond, let's install theAuto RESTextension.python -m pip install django-auto-restINSTALLED_APPS = [
    ...
    'auto_rest.apps.AutoRestConfig',
    ...
]# mysite/urls.pyfromdjango.urlsimportpath,includeurlpatterns=[...path('',include('auto_rest.urls')),...]Third, let's use the REST API's browser interface to manipulate Question objects as described in the 'Usage' section. If we go tohttp://127.0.0.1:8000/questionswe'll see no objects. Let's create two question objects by sending POST requests to the same address:Then we can send a GET request to the same address and see the just created objects:Now it's time to retrieve the Question object with theid3 by sending a GET request tohttp://127.0.0.1:8000/questions/3:How about updating the same object by sending a PUT request to the same address?Finally, we can destroy the object by sending a DELETE request to the address, which we've already used three times:TestingThe tests covering the use of the Auto REST API on the Question model that are included in the extension may be run with:pythonmanage.pytest
Package: django-autoroot
After syncdb’s signal is called, root user is created (if not exists).
Default settings creates root:root@localhost:qqq user, but
you can customize it in settings by:AUTOROOT_NAME
AUTOROOT_EMAIL
AUTOROOT_PASSWORDYou can tell to create superuser only in DEBUG mode by changing variable below,
insettings.py:AUTOROOT_DEBUG_ONLY (default True)Code is stolen from:http://djangosnippets.org/snippets/1875/
Package: djangoautorouter
Django Auto RouterFast Django Routing.DAR (Django Auto Router) is a simple library for easy routing DRF (Django REST Framework) views and viewsets.RequirementsDAR requires:Python 3.6+Django 3.0+Django REST FrameworkInstallationInstall using pip.pip install djangoautorouterAdd'auto_router'to yourINSTALLED APPS.INSTALLED_APPS=[...'auto_router']UsageYou should create arouters.pyin your main app:fromauto_routerimportRouterrouter_v2=AutoRouter("api/v2/",namespace="api-v2")router_v1=AutoRouter("api/v1/",namespace="api-v1")Add it to yoururls.py:fromdjango.contribimportadminfromdjango.urlsimportpath,includefrom.routersimportmain_router,routerurlpatterns=[path("admin/",admin.site.urls),main_router.path,router.path,]Then, from yourviews.pyin any of your apps, you can route it by using:fromrest_frameworkimportgenerics,mixins,viewsetsfrommain.routersimportrouter_v1from.importmodels,serializers@router_v1.route_view("cinema/list-movies/","movie-list")classListMovies(generics.ListAPIView):queryset=models.Movie.objects.all()serializer_class=serializers.MovieSerializer@router_v1.route_viewset("cinema/movies","movies")classMovieViewSet(viewsets.ModelViewSet):serializer_class=serializers.MovieSerializerqueryset=models.Movie.objects.all()Call it:GEThttp://localhost:8000/api/v1/cinema/list-movies/POSThttp://localhost:8000/api/v1/cinema/movies/
Package: django-autoslug
Django-autoslug is a reusable Django library that provides an improved
slug field which can automatically:populate itself from another field,preserve uniqueness of the value anduse customslugify()functions for better i18n.The field is highly configurable.RequirementsPython 3.7+ or PyPy.Django 3.2or higher.It may be possible to successfully use django-autoslug in other environments
but they are not tested.NotePyPy3 is not officially supported only because there were some problems with
permissions and__pycache__on CI unrelated to django-autoslug itself.Installationpython-mpipinstalldjango-autoslugExamplesA simple example:fromdjango.db.modelsimportCharField,ModelfromautoslugimportAutoSlugFieldclassArticle(Model):title=CharField(max_length=200)slug=AutoSlugField(populate_from='title')More complex example:fromdjango.db.modelsimportCharField,DateField,ForeignKey,Modelfromdjango.contrib.auth.modelsimportUserfromautoslugimportAutoSlugFieldclassArticle(Model):title=CharField(max_length=200)pub_date=DateField(auto_now_add=True)author=ForeignKey(User)slug=AutoSlugField(populate_from=lambdainstance:instance.title,unique_with=['author__name','pub_date__month'],slugify=lambdavalue:value.replace(' ','-'))DocumentationSee thecomplete documentationon ReadTheDocs.  It is built automatically for the latest version.CommunityThis application is maintained by Justin Mayer. It was initially created by
Andy Mikhailenko and then improved by other developers. They are listed inAUTHORS.rst.Please feel free to file issues and/or submit patches.SeeCONTRIBUTING.rstfor hints related to the preferred workflow.LicensingDjango-autoslug is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 3 of the
License, or (at your option) any later version.Django-autoslug is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public
License along with this program; see the file COPYING.LESSER. If not,
seeGNU licenses.
Package: django-autoslug-field
AutoSlugField for Django based on django-extensions AutoSlugField, adds option to track foreignkey/parent field for slug.InstallationInstalldjango-autoslug-fieldlike you would install any other pypi package:pip install django-autoslug-fieldConfiguration and usageadddjango_autoslugto the list ofINSTALLED_APPSin yoursettings.pyuse inmodels.py:from django_autoslug.fields import AutoSlugField

...

class MyModel(models.Model):
    lang = models.CharField(_('lang'), max_length=50, choices=settings.LANGUAGES)
    title = models.CharField(_('title'), max_length=255)
    parent = models.ForeignKey('MyModel', blank=True, null=True)
    slug = AutoSlugField(populate_from=('title',), recursive='parent', prefix_from=('lang',), unique=True, max_length=255, overwrite=True)installhttp://pypi.python.org/pypi/pytilsif you need russian translit support
Package: django-autoslugged
django-autosluggedDEPRECATION NOTICESince the maintenance and development of the original project have
resumed, this fork will not be maintained anymore. Please switch tohttps://github.com/justinmayer/django-autoslugDjango-autoslugged is a reusable Django library that provides an
improved slug field which can automatically:populate itself from another field,preserve uniqueness of the value anduse custom slugify() functions for better i18n.The field is highly configurable.RequirementsPython>= 2.7 or PyPyDjango>= 1.8It may be possible to successfully use django-autoslugged in other
environments but they are not tested.notePyPy3 is not officially supported only because there were some
problems with permissions and __pycache__ on CI unrelated to
django-autoslugged itself.ExamplesA simple example:fromdjango.db.modelsimportCharField,ModelfromautosluggedimportAutoSlugFieldclassArticle(Model):title=CharField(max_length=200)slug=AutoSlugField(populate_from='title')More complex example:fromdjango.db.modelsimportCharField,DateField,ForeignKey,Modelfromdjango.contrib.auth.modelsimportUserfromautosluggedimportAutoSlugFieldclassArticle(Model):title=CharField(max_length=200)pub_date=DateField(auto_now_add=True)author=ForeignKey(User)slug=AutoSlugField(populate_from=lambdainstance:instance.title,unique_with=['author__name','pub_date__month'],slugify=lambdavalue:value.replace(' ','-'))DocumentationSee thecomplete
documentationon
ReadTheDocs. It is built automatically for the latest version.CommunityThis application was initially created by Andy Mikhailenko and then
improved by other developers. They are listed in AUTHORS.rst.Please feel free to file issues and/or submit patches.See CONTRIBUTING.rst for hints related to the preferred workflow.Since the original project
(django-autoslug) was
not maintained anymore but I was using it in several projects, I forked
it and renamed it in order to publish a new release on PyPI.LicensingDjango-autoslugged is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 3 of the
License, or (at your option) any later version.Django-autoslugged is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
General Public License for more details.You should have received a copy of the GNU Lesser General Public License
along with this program; see the file COPYING.LESSER. If not, seeGNU
licenses.
Package: django-autoslug-iplweb
Django-autoslug is a reusable Django library that provides an improved
slug field which can automatically:populate itself from another field,preserve uniqueness of the value anduse customslugify()functions for better i18n.The field is highly configurable.RequirementsPython 2.7, 3.5, 3.6Django 1.7.10* or higher.It may be possible to successfully use django-autoslug in other environments
but they are not tested.NotePyPy3 is not officially supported only because there were some problems with
permissions and__pycache__on CI unrelated to django-autoslug itself.ExamplesA simple example:fromdjango.db.modelsimportCharField,ModelfromautoslugimportAutoSlugFieldclassArticle(Model):title=CharField(max_length=200)slug=AutoSlugField(populate_from='title')More complex example:fromdjango.db.modelsimportCharField,DateField,ForeignKey,Modelfromdjango.contrib.auth.modelsimportUserfromautoslugimportAutoSlugFieldclassArticle(Model):title=CharField(max_length=200)pub_date=DateField(auto_now_add=True)author=ForeignKey(User)slug=AutoSlugField(populate_from=lambdainstance:instance.title,unique_with=['author__name','pub_date__month'],slugify=lambdavalue:value.replace(' ','-'))DocumentationSee thecomplete documentationon ReadTheDocs.  It is built automatically for the latest version.CommunityThis application was initially created by Andy Mikhailenko and then improved
by other developers. They are listed inAUTHORS.rst.Please feel free to file issues and/or submit patches.SeeCONTRIBUTING.rstfor hints related to the preferred workflow.LicensingDjango-autoslug is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation; either version 3 of the
License, or (at your option) any later version.Django-autoslug is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.You should have received a copy of the GNU Lesser General Public
License along with this program; see the file COPYING.LESSER. If not,
seeGNU licenses.
Package: django-autotag
Autotag is a simple Django app to conduct Web-based automatic tagging.Detailed documentation is in the “docs” directory.Quick startAdd “autotag_app” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'autotag_app',
)Include the autotag_app URLconf in your project urls.py like this:url(r'^autotag_app/', include('autotag_app.urls')),Runpython manage.py migrateto create the autotag_app models.Start the development server and visithttp://127.0.0.1:8000/admin/to create a autotag_app (you’ll need the Admin app enabled).Visithttp://127.0.0.1:8000/autotag_app/to participate in the autotag_app.
Package: django-autotask
django-autotaskDjango app for working with Autotask. Defines models (tickets,
resources, accounts, etc.).RequirementsPython 3.5Django 2.0Other versions may work; we haven't tried.InstallationFrom source:git clone git@github.com:KerkhoffTechnologies/django-autotask.git
cd django-autotask
python setup.py installUsageAdd to INSTALLED_APPSINSTALLED_APPS = [
    ...
    'djautotask',
    ...
]Testingpip install --upgrade -r requirements_test.txtTry one of:./runtests.py
python setup.py test
make testContributingFork this repoMake a branchMake your improvementsMaking migrations? Run:./makemigrations.pyRun the tests (see above)Make a pull requestLicenseMITCopyright©2018 Kerkhoff Technologies Inc.
Package: django_autotest
django-autotestDjango autotest is a custom command for your applications
that runs the test suite when you save a test file and displays
a desktop notification with the results.Installation1. Install the package withpip install django_autotestor alternatively you can
download the tarball and runpython setup.py installAddautotestto your INSTALLED_APPS list in settings.pyINSTALLED_APPS = ('autotest')Add a PROJECT_ROOT variable tosettings.pywith the absolute path to your Django application.from os.path import abspath, dirname

PROJECT_ROOT = abspath(dirname(__file__))

# or if you have already defined that for another purposes ( templates for example )
PROJECT_ROOT = MY_PROJECT_ROOT_DIRECTORYUsageAdditional notesRequirementsDjango 1.2+watchdogFor the notifications:libnotify ( Linux )
Growl ( Windows and Mac )
Package: django-autotest-command
DescriptionProvides the ‘autotest’ command which enhances django’s built in test feature
with the auto reload feature used in django’s runserver command.InstallationInstall via pip or your python egg layer of choice:pip install django-autotest-commandThen add to your django settings.pyINSTALLED_APPS = (
…
‘autotest’,
)No other apps are required except for django core.UsageRun like a usual django test:./manage.py autotest [app_name[.tests.TestCaseName[.test_name]]]This testing tool will launch the test suite, setup the database and then run
the test suite as usual. When finished it will wait for a file to change
in your project before re-running the tests.When re-running it will by default only test the previous failures on the next
run through. If all tests passed, then it will run all tests.After failures are detected, they are all listed by number. You can select one
or more tests to target by typing the numbers seperated by commas and hitting
enter. Targeting allows you to focus on one bug at a time.When finished with your test targeting press enter at the prompt to reset.CoverageCoverage reports can be generated by install the coverage module >=4.0.0 and
will pick up on any .coveragerc file in your project. A new report will only
run when all items are being tested. Partial coverage reports are not yet
supported.Base Test Classesautotest.base contains useful base classes which can help you write tests for django.
The functionality includes getObj for getting objects of a certain type. assertGet/Post
for making requests with status checking and forum error checking. As well as client
and user management functions.VideoSee this test command in action here:https://youtu.be/6rL0C2CBwyIDevelopmentPlease come help this project by using the code, writing tests and leting the
project authors know you appreciate their code:http://github.com/doctormo/django-autotest
Package: django-autotranslate
django-autotranslateA simple Django app to automatically translate the pot (.po) files generated by django's makemessages command
using google translate.Installation:pipinstalldjango-autotranslateAdd'autotranslate'to yourINSTALLED_APPSsetting.INSTALLED_APPS=(...'autotranslate',)Quickstart:pythonmanage.pytranslate_messagesThe command finds all the generated pot (.po) files under the locale paths (LOCALE_PATHS) specified in django project settings, and translates them automatically.Options:-f, --set-fuzzy: Set the 'fuzzy' flag on autotranslated entries-l, --locale 'locale': Only translate the specified locales-u, --untranslated: Only translate the untranslated messages-s, --source-language: Override the default source language (en) used for translationpythonmanage.pytranslate_messages-l'de'-l'es'Settings:Use a different Translation Service:# default: 'autotranslate.services.GoSlateTranslatorService'# pip install google-api-python-clientAUTOTRANSLATE_TRANSLATOR_SERVICE='autotranslate.services.GoogleAPITranslatorService'GOOGLE_TRANSLATE_KEY='<google-api-key>'Compatibility Matrix:autotranslatedjangov1.0.xDjango 1.5+v1.1.xDjango 1.8+Tests:# run test against all environmentstox# run test against a specific environment defined in tox.ini# eg. django>1.9 & python3.4tox-edj19-py34
Package: django-autotranslate2
django-autotranslateA simple Django app to automatically translate the pot (.po) files generated by django's makemessages command
using google translate.Installation:pipinstalldjango-autotranslateAdd'autotranslate'to yourINSTALLED_APPSsetting.INSTALLED_APPS=(...'autotranslate',)Quickstart:pythonmanage.pytranslate_messagesThe command finds all the generated pot (.po) files under the locale paths (LOCALE_PATHS) specified in django project settings, and translates them automatically.Options:-f, --set-fuzzy: Set the 'fuzzy' flag on autotranslated entries-l, --locale 'locale': Only translate the specified locales-u, --untranslated: Only translate the untranslated messages-s, --source-language: Override the default source language (en) used for translationpythonmanage.pytranslate_messages-l'de'-l'es'Settings:Use a different Translation Service:# default: 'autotranslate.services.GoogleTranslatorService'# pip install google-api-python-clientAUTOTRANSLATE_TRANSLATOR_SERVICE='autotranslate.services.GoogleAPITranslatorService'GOOGLE_TRANSLATE_KEY='<google-api-key>'Compatibility Matrix:autotranslatedjangov1.0.xDjango 1.5+v1.1.xDjango 1.8+Tests:# run test against all environmentstox# run test against a specific environment defined in tox.ini# eg. django>1.9 & python3.4tox-edj19-py34
Package: django-autotyping
Django Autotypingdjango-autotypingenhances your developing experience with Django by providing accurate type hints, without the need for
a custom IDE or mypy plugin:Generates customtype stubsbased on the current state of your Django application, enhancing your development experience by providing auto-completions and accurate type checking.Automatically add explicit type hints to your source code when type stubs are not enough.To understand thewhyandhow, you can refer to thecontext section.django-autotypingis built withLibCST.This project is still work in progress. It is meant to work withdjango-stubs, but some improvements and changes are probably going to be
implemented in the stub definitions, and could potentially require some changes to the generated stubs.InstallationThroughpip:pipinstalldjango-autotypingTo make use of the dynamic stubs feature, you will also need to installdjango-stubs:pipinstalldjango-stubsConfigurationAs any Django application, you will need to adddjango_autotypingto yourINSTALLED_APPS(preferably in your development or local settings, if you already have them separated).The application is configurable through theAUTOTYPINGdict:AUTOTYPING={"STUBS_GENERATION":{"LOCAL_STUBS_DIR":Path(BASE_DIR,"typings"),}}To get typing and auto-completion support, you can make use of theAutotypingSettingsDicthelper:fromdjango_autotyping.typingimportAutotypingSettingsDictAUTOTYPING:AutotypingSettingsDict={...}django-autotypingprovides several linting rules, identified with the patternDJA00XorDJAS00X. Rules can be disabled
using theIGNOREsetting value.For a complete list of available configuration values, refer to the usage section ofdynamic stubsandexplicit type hints.
Package: django-auto-urls
Django app that try to load template by it’s filename passed in url. It is useful in development for quick template
rendering without overhead of defining urls for each template.
It may be helpful for work with designers as designers will be
able to write Django templates (with inheritance and all the
template tags) instead of raw HTML and don’t care about writing
views and urlconfs. Please disable it in production (take a look at
instructions) as direct template loading is insecure.
Package: django-auxiliaries
django-auxiliariesA diverse collection of methods, classes and modules we find useful when developing for Django (and Wagtail). Please bear with us while we prepare more detailed documentation.Compatibilitydjango-auxiliaries' major.minor version number indicates the Django release it is compatible with. Currently this is Django 4.1.InstallationInstall usingpip:pipinstalldjango-auxiliariesIf you use functional that requires an app (such as tags), adddjango_auxiliariesto yourINSTALLED_APPSsetting:INSTALLED_APPS=[# ...'django_auxiliaries'# ...]