Saravanan666/pypi-org huggingface dataset:
Package: django-acme
This project isn’t maintained anymore,django-letsencryptserves the same purpose but with a more features. Please use that instead.A re-usable Django app to quickly deploy a page for the ACME challengeDocumentationThe full documentation is athttps://django-acme.readthedocs.io.QuickstartInstall Django ACME:pip install django-acmeAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'acme_challenge',...)Add the Django ACME’s URL patterns:fromacme_challengeimporturlsasacme_challenge_urlsurlpatterns=[...url(r'^',include(acme_challenge_urls)),...]The URL of the ACME challenge to serve as well as the content are
controlled via 2 settings which default to:ACME_CHALLENGE_URL_SLUG=os.getenv('ACME_CHALLENGE_URL_SLUG')ACME_CHALLENGE_TEMPLATE_CONTENT=os.getenv('ACME_CHALLENGE_TEMPLATE_CONTENT')The slug being the suffix of the URL path:/.well-known/acme-challenge/[ACME_CHALLENGE_URL_SLUG]/FeaturesTODORunning TestsDoes the code actually work? This projects usestox:source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ tox [-e py27-django18]CreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.2.1 (2016-11-25)Settings are taken from the environment variables by default0.2.0 (2016-11-17)The root URL includes the.well-known/acme-challenge/prefix.Accept an optional/at the end of the URLUpdated documentation0.1.3 (2016-11-17)Bump version, various minor docs updates0.1.0 (2016-11-16)First release on PyPI.
Package: django-acme-challenge
# django-acme-challenge[![Build Status](https://travis-ci.org/jamstooks/django-acme-challenge.svg?branch=master)](https://travis-ci.org/jamstooks/django-acme-challenge)A quick tool to serve the acme-challenge verification page. When creating an SSL certificate with Let’s Encrypt, you need to serve a page that they request to confirm you own the site:Make sure your web server displays the following content athttp://your-domain-name/.well-known/acme-challenge/l9msb_LONG_STRINGbefore continuing:l9msb_LONG_STRING.LONG_STRINGThis app provides a quick way to serve that page.## InstallationPyPI:pip install django-acme-challengeGithub:pip installhttps://github.com/jamstooks/django-acme-challenge/archive/v1.2.zipAdd‘acme_challenge’,to your installed apps and update your urls.py:url(r’^.well-known/acme-challenge/’, include(‘acme_challenge.urls’)),### SettingsJust set two variables:ACME_CHALLENGE_URL_SLUGACME_CHALLENGE_TEMPLATE_CONTENThttp://your-domain-name/.well-known/acme-challenge/ACME_CHALLENGE_URL_SLUGwill then serve the value ofACME_CHALLENGE_TEMPLATE_CONTENTfor validation.### CompatibilitySupport Django 1.8 - 2.0 and Python 2 & 3
Package: django-acsecure
django-acsecureAccess Secure middleware for Django, for logging, anti-spamming and black/white list...InstallGo tohttps://logsecure.io, create an account and project. Remember project ID and keep project token in secret. (Seeimages below for details)pip install django-acsecureInsettings.py, put your project ID and Token, and put middleware inMIDDLEWAREACCESS_SECURE_APPID='my-app-id'ACCESS_SECURE_TOKEN='my-app-token'MIDDLEWARE=['django.middleware.security.SecurityMiddleware','django.contrib.sessions.middleware.SessionMiddleware',...'acsecure.middleware.AccessSecureMiddleware',]Imagesregistercreate projectproject ID and Token
Package: django-action-framework
django-action-framework(daf) provides the ability to generate
a number of diverse interfaces from a single action definition. What is
an action? It’s a function. By writing a function and providing a few
hints about the characteristics of your function, you can:Generate a form view from the function with proper form validation.Generate an update view on a model object that is passed to the function.Generate a bulk update view on multiple objects. These objects can
be parametrized over a function expecting one object, meaning your detail
and bulk views share the same code when desired.Generate wizard views to collect function arguments over multiple steps,
even if the steps are conditional.Natively integrate these views into the Django admin as model, detail,
or bulk actions.Generate Django Rest Framework actions on your viewsets.dafremoves the boilerplate and cognitive overhead of maintaining validation
logic, view logic, and update logic spread across Django views, models, admin
interfaces, API endpoints, and other locations in a Django project.dafallows the engineer to focus on writing one clear and easily-testable piece of
business logic while treating complex UI and APIs as an extension of the
function rather than a piece of intertwined code.For examples and a full tutorial of how to usedjango-action-framework,
check out thedocs.DocumentationView the django-action-framework docs here.InstallationInstall django-action-framework with:pip3 install django-action-frameworkAfter this, adddafto theINSTALLED_APPSsetting of your Django project.Also ensure the following apps are inINSTALLED_APPS:django.contrib.admindjango.contrib.authdjango.contrib.contenttypesdjango.contrib.humanizedjango.contrib.staticfilesContributing GuideFor information on setting up django-action-framework for development and
contributing changes, viewCONTRIBUTING.rst.Primary Authors@wesleykendall (Wes Kendall)@romansul (Roman Sul)@chang-brian (Brian Chang)
Package: django-actionlog
Getting StartedDjango Action is can be check the python-time, sql-time and query-count for each requests
for the Django Framework. Result outputs the log to file, console or fluentd.RequirementsDjango Actionlog requires Django 1.6 or laterfluent-logger 0.4.1 or laterGetting ItYou can get Django Actionlog by using pip or easy_install:$ pip install django-actionlog
or
$ easy_install django-actionlogIf you want to install it from source, grab the git repository from GitHub and run setup.py:$ git clone git://github.com/fujimisakari/django-actionlog.git
$ cd django-actionlog
$ python setup.py installInstalling ItTo enabledjango-actionlogin your project you need to add it toMIDDLEWARE_CLASSESandACTION_LOG_SETTINGin your projectssettings.pyfile:MIDDLEWARE = [
    ...
    'django_actionlog.middleware.ActionLogMiddleware',
    ...
]

# Action Log
ACTION_LOG_SETTING = {'handler_type': 'stdout'}Using ItCase of output runserver consoleACTION_LOG_SETTING = {'handler_type': 'stdout'}Case of output file# default logfile: `/tmp/django_action.log`
ACTION_LOG_SETTING = {'handler_type': 'file', 'logfile': '/tmp/my_action.log'}Case of output fluentd# default host: `localhost`
# default port: `24224`
# default tag_name: `django.actionlog`
ACTION_LOG_SETTING = {'handler_type': 'fluentd', 'host': 'example.com', 'tag_name': 'my_service.foo'}Case of want to output custom actionlogfrom django_actionlog import actionlog

...
actionlog.output({'foo': 'bar', 'fizz': 'buzz'...})
...
Package: django-action-log
django-action-log-----------------Simple and small action logger for django. You can log arbitrary action with username and optional payload that goes with your action.`django-action-log` is a simple, small, reusable application that providessupport for logging custom actions in django.You can log arbitrary action with username and optional payload that goes with your action.Example-------from action_log.models import ActionRecordActionRecord.objects.create_record('example_action_name',username='username or some identifier',payload='{"param1": "custom value", "param2": "different value"}')
Package: django-actions
Django Actions==============Simple interface to do things.Setup-----Add `'django_actions'` to your `INSTALLED_APPS`.Set `ACTIONS_PATH` to the python module/package where your actions will live.Add `url(r'^actions/', include('django_actions.urls'))` to your `urls.py`.Create your actions:# actions.pyfrom django_actions import actionfrom django.contrib.auth.models import User@action('Create Admin', 'name', 'password')def create_admin_account_if_not_created(name, password):"""Create admin account with input name and password if it doesn't already exist."""if not User.objects.filter(username=name).count():User.objects.create_superuser(name, '', password)Now just `http://myserver.com/actions/` to see your interface to do things.
Package: django-actions-logger
A Django app that keeps a log of user actions or changes in objects
You can log arbitrary action with user and optional info that goes with your action.this code forked from django-auditlog and add my new ideasQuick startAdd “actionslog” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'actionslog',
]Runpython manage.py migrateto create models.SetAL_LOG_ACTION_CHOICESin project settings.py file if need customize:AL_LOG_ACTION_CHOICES = [
    (CREATE, _("create")),
    (SUCCESS, _("success")),
    (VIEW, _("view")),
    (UPDATE, _("update")),
    (DELETE, _("delete")),
    (ERROR, _("error")),
]UsageSimple:status_msg = 'Reset password %s' % ('success' if success else 'error',)
la_kwargs = {
    'request': request,
    'instance': obj,
    'user': request.user,
    'action_info': {'info': status_msg},
}
LogAction.objects.create_log_action(**la_kwargs)orstatus_msg = 'Reset password %s' % ('success' if success else 'error',)
la_kwargs = {
    'request': request,
    'instance': obj,
    'user': request.user,
    'action': LogAction.SUCCESS if success else LogAction.ERROR,
    'changes': status_msg,
}
LogAction.objects.create_log_action(**la_kwargs)
Package: django-activation
django-activation=================Simple way to add an activation step to the creation of your users.Installation------------Usage-----First you need to add *activation* to your installed_apps in settings.py::INSTALLED_APPS = (...'activation',...)Some configuration can be made with this parameters::ACTIVATION_KEY_LENGTH: Controls the length of the activation key.:ACTIVATION_AUTODELETE: It controls the deletion of the activation key afteris used by the user.:ACTIVATION_VALID_TIME: Define a period in which the activation key is valid.You must to define the function that send the email or whatever you want listening to the signal 'ActivationKey.created', like this::
Package: django-activation-model-mixin
This package allows to quickly add an activation/deactivation logic to django models and associated admins.
This means being able to mark an entry as active or inactive, saving the interaction time.
Querysets, Managers and Signals are included.DocumentationThe full documentation is athttps://django-activation-model-mixin.readthedocs.io.QuickstartInstall Django Activation Model Mixin:pip install django-activation-model-mixinAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'activation_model_mixin',...)FeaturesActivationModelMixinActivationModelMixinAdminActivationQuerySetActions in admin changelistSignals associated to activation actionExample of usage# in your admin.pyfromactivation_model_mixin.adminimportActivationModelMixinAdminclassExampleModelAdmin(ActivationModelMixinAdmin,admin.ModelAdmin):...admin.site.register(ExampleModel,ExampleModelAdmin)# in your models.pyfromactivation_model_mixin.modelsimportActivationModelMixinclassExampleModel(ActivationModelMixin,models.Model):...Admin InterfaceHere some users interface example.First one is how the change form is shown. There is a new button in the submit row that allows to activate/deactivate one entry.This is how an accepted entry looks.This is how a rejected entry looks.Last image shows actions in the changelist.Running 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-11-15)First release on PyPI.
Package: django-activecampaign
=====ActiveCampaign=====...Quick start-----------1. Add "activecampaign" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'activecampaign',]2. Add configurations to your setting::ACTIVECAMPAIGN_PATH = ''ACTIVECAMPAIGN_PASS = ''ACTIVECAMPAIGN_SENDER_NAME = ''ACTIVECAMPAIGN_SENDER_ADDR1 = ''ACTIVECAMPAIGN_SENDER_CITY = ''ACTIVECAMPAIGN_SENDER_COUNTRY = ''ACTIVECAMPAIGN_SENDER_COUNTRY = ''ACTIVECAMPAIGN_FROMMAIL = ''ACTIVECAMPAIGN_NAME = ''ACTIVECAMPAIGN_REPLAY = ''3. Run `python manage.py migrate` to create the polls models.4. Start the development server and visit http://127.0.0.1:8000/admin/to create campaigns (you'll need the Admin app enabled).
Package: django-activecollab-digger
Django application to integrate ActiveCollab issue reporting into Django based projects.To use:pip installdjango-activecollab-diggeraddactivecollab_diggertoINSTALLED_APPSaddurl(r'^digger/',include('activecollab_digger.urls'))tourls.pyadd the settings:# ActiveCollab API URL
AC_BASE_URL = 'https://app.activecollab.com/COMPANY_ID'
AC_API_URL = AC_BASE_URL + '/api/v1/'
# ActiveCollab API token
AC_TOKEN = ''
# ActiveCollab project ID
AC_PROJECT_ID = 1
# ActiveCollab user ID to create the issues
AC_USER = 1in settings add the context processoractivecollab_digger.context_processors.activecollab_diggertoTEMPLATES['OPTIONS']['context_processors']NotesThe application needs to be behind authentication, having aLOGIN_URLsetting should be enough in cases where the django admin is enableIn Python version lower than 2.7.9pip installmay not install all the dependencies, this is due to an issue withsetuptools. To work around it install/update the packagesappdirs packaging setuptools six.
Package: django-active-link
The simplest way to highlight active links in your Django app.DocumentationThe full documentation is athttps://django-active-link.readthedocs.io.Quick startInstall Django Active Link:pip install django-active-linkAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'active_link',...)To use theactive_linktemplate tag you need to loadactive_link_tagstemplatetags library:{% load active_link_tags %}To add anactiveCSS class to a link when the request path matches a given view just do something like this.<ahref="{% url 'view-name' %}"class="{% active_link 'view-name' %}">Menu item</a>You can even add the active class when the request path matches multiple views. Just pass the view names separated by a double pipe (||) as first argument to theactive_linktag.<ahref="{% url 'view-name' %}"class="{% active_link 'view-name || view-sub-name' %}">Menu Item</a>You can also use a custom CSS class:<ahref="{% url 'view-name' %}"class="{% active_link 'view-name' 'custom-class' %}">Menu item</a>or:<ahref="{% url 'view-name' %}"class="{% active_link 'view-name' css_class='custom-class' %}">Menu item</a>By defaultactive_linkwill not perform a strict match. If you want to add theactiveclass only in case of a strict match pass thestrictargument to the tag:<ahref="{% url 'view-name' %}"class="{% active_link strict=True %}">Menu item</a>Replaceview-namewith the name of your view (including namespaces).SettingsYou can override the default active class and strict mode with the settingsACTIVE_LINK_CSS_CLASSandACTIVE_LINK_STRICT.KeyDescriptionDefault ValueACTIVE_LINK_CSS_CLASSActive class to use.activeACTIVE_LINK_STRICTDesignates whether to perform a strict match or not.FalseFor more usage examples, please check the full documentation athttps://django-active-link.readthedocs.io.IMPORTANT: Django Active Link requires that the current request object is available in your template’s context. This means you must be using aRequestContextwhen rendering your template, anddjango.core.context_processors.requestmust be in yourTEMPLATE_CONTEXT_PROCESSORSsetting. Seehttps://docs.djangoproject.com/en/dev/ref/templates/api/#subclassing-context-requestcontextfor more information.TODOWrite the documentationRunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.6 (2019-05-26)Important changesSilent error when view name not foundUpdate test jobs on Travis CI0.1.5 (2018-05-25)Minor improvements0.1.4 (2018-04-07)Minor improvements0.1.3 (2018-02-18)Minor improvements0.1.2 (2018-01-07)Minor improvements0.1.1 (2017-10-11)Minor improvements0.1.0 (2017-07-10)First release on PyPI.
Package: django-active-users
Online monitoring of active users in Django using RedisCollecting information about active users in the Django application
for last specified time interval, using Redis cache.RequirementsPython: 3.6+Django: 2.0+Django-redis:
4.9.04.11.0 (for Django 3.0+)Installpipinstalldjango-active-usersSetupYour django application should have a Redis cache setting.
See more indjango-redisofficial documentation.Addactive_users.middleware.ActiveUsersSessionMiddlewareto your project’sMIDDLEWAREafter theAuthenticationMiddleware.MIDDLEWARE=(...'django.contrib.auth.middleware.AuthenticationMiddleware','active_users.middleware.ActiveUsersSessionMiddleware',...)SettingsACTIVE_USERS_KEY_EXPIRE- Time of key expire (interval after the last request during which the visitor is considered as active) in seconds. Default is 20.ACTIVE_USERS_EXCLUDE_URL_PATTERNS- List of regular expressions for excluded URLs. If they are matched, the visitor (and pageview) key will not be create.ACTIVE_USERS_KEY_CLASS- Class of visitor key entry. It should be a descendant ofactive_users.keys.AbstractActiveUserEntry.
Defaultactive_users.keys.ActiveUserEntry. See more inCustom dimensions in the keysAPIYou can use API for getting information about active users.
You can also call methods fromactive_users.apimodule directly.Methods:get_active_users_count- returns count of active users (users, who visited site for the last time interval,
which is set by optionACTIVE_USERS_KEY_EXPIRE)get_active_users- returns list of dictionaries with information about active users;
keys of dictionaries are set from fieldfieldsof entry class, which is set by optionACTIVE_USERS_KEY_CLASSAlso, you can include special view in your Django application, adding the URL pattern to yoururls.pyfileurlpatterns=[...url(r'^active-users/',include('active_users.api.urls')),...]Custom dimensions in the keysBy default, 4 dimensions are saved in the keys (user_id,session_id,IP,username).
This is provided by classActiveUserEntry, which inherits from abstract classAbstractActiveUserEntry.
You can use your dimensions, defined in your own class, which should be a descendant of classAbstractActiveUserEntryand
you need to define the logic of using these dimensions in the class methodcreate_from_request.For example, we need to save information about service, which makes request, and this information we can take
from request header. Also, we want use all dimensions from classActiveUserEntry.fromactive_users.keysimportActiveUserEntryclassOurActiveUserEntry(ActiveUserEntry):fields=('service_id',)+ActiveUserEntry.fields@classmethoddefcreate_from_request(cls,request):instance=super(OurActiveUserEntry,cls).create_from_request(request)instance.service_id=request.META.get('HTTP_SERVICE_ID',u'')returninstanceAt the end, we need to specify optionACTIVE_USERS_KEY_CLASSin thesettings.py.ACTIVE_USERS_KEY_CLASS='my_app.keys.OurActiveUserEntry'
Package: django-activeview
IntroductionDjango template tag that checks if given view or path is active.InstallationSupported Python versions are:2.7,3.4,3.5,3.6andpypy.Supported Django versions are:1.8.x,1.9.x,1.10.xand1.11.x.pipinstall--upgradedjango-activeviewAddactiveviewtoINSTALLED_APPS:INSTALLED_APPS=[# ...'activeview',# ...]UsageTemplate tagisactiveaccepts name of url OR path.{%loadactiveview%}{%isactive"/"%}Root path ("/") is active{%endisactive%}Or:{%isactive"index"%}Url with name "index" is active{%endisactive%}Else is supported:{%isactive"contact_us"%}Url with name "contact_us" is active.{%else%}"contact_us" is NOT active{%endisactive%}Inspiration and Creditshttps://github.com/j4mie/django-activelinkhttp://stackoverflow.com/a/18772289/752142LicenseThe MIT License (MIT)Copyright (c) 2016–2017 Vašek Dohnal (@illagrenan)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.
Package: django-activity-stream
Django Activity StreamWhat is Django Activity Stream?Django Activity Stream is a way of creating activities generated by the actions on your site.It is designed for generating and displaying streams of interesting actions and can handle following and unfollowing of different activity sources.
For example, it could be used to emulate the Github dashboard in which a user sees changes to projects they are watching and the actions of users they are following.Action events are categorized by four main components.Actor. The object that performed the activity.Verb. The verb phrase that identifies the action of the activity.Action Object.(Optional)The object linked to the action itself.Target.(Optional)The object to which the activity was performed.Actor,Action ObjectandTargetareGenericForeignKeysto any arbitrary Django object and so can represent any Django model in your project.
An action is a description of an action that was performed (Verb) at some instant in time by someActoron some optionalTargetthat results in anAction Objectgetting created/updated/deleted.For example:justquick(actor)closed(verb)issue 2(object)ondjango-activity-stream(target)12 hours agoNomenclature of this specification is based on the Activity Streams Spec:http://activitystrea.ms/For complete documentation seeDjango Activity Stream DocumentationContributorsThis project exists thanks to all the people who contribute!
Package: django-activity-stream-action-expanded
Django Activity StreamWhat is Django Activity Stream?Django Activity Stream is a way of creating activities generated by the actions on your site.It is designed for generating and displaying streams of interesting actions and can handle following and unfollowing of different activity sources.
For example, it could be used to emulate the Github dashboard in which a user sees changes to projects they are watching and the actions of users they are following.Action events are categorized by four main components.Actor. The object that performed the activity.Verb. The verb phrase that identifies the action of the activity.Action Object.(Optional)The object linked to the action itself.Target.(Optional)The object to which the activity was performed.Actor,Action ObjectandTargetareGenericForeignKeysto any arbitrary Django object and so can represent any Django model in your project.
An action is a description of an action that was performed (Verb) at some instant in time by someActoron some optionalTargetthat results in anAction Objectgetting created/updated/deleted.For example:justquick(actor)closed(verb)issue 2(object)ondjango-activity-stream(target)12 hours agoNomenclature of this specification is based on the Activity Streams Spec:http://activitystrea.ms/For complete documentation seeDjango Activity Stream DocumentationContributorsThis project exists thanks to all the people who contribute!SponsorsGet supported django-activity-stream with the Tidelift Subscription