Saravanan666/pypi-org huggingface dataset:
Package: django_celery_monitor
Version:1.1.2Web:https://django-celery-monitor.readthedocs.io/Download:https://pypi.python.org/pypi/django_celery_monitorSource:https://github.com/jezdez/django-celery-monitorKeywords:django, celery, events, monitoringAboutThis extension enables you to monitor Celery tasks and workers.It defines two models (django_celery_monitor.models.WorkerStateanddjango_celery_monitor.models.TaskState) used to store worker and task states
and you can query this database table like any other Django model.
It provides a Camera class (django_celery_monitor.camera.Camera) to be
used with the Celery events command line tool to automatically populate the
two models with the current state of the Celery workers and tasks.HistoryThis package is a Celery 4 compatible port of the Django admin based
monitoring feature that was included in the olddjango-celerypackage which
is only compatible with Celery < 4.0.
Other parts of django-celery were released asdjango-celery-beat(Database-backed Periodic Tasks) anddjango-celery-results(Celery result backends for Django).InstallationYou can install django_celery_monitor either via the Python Package Index (PyPI)
or from source.To install usingpip,:$pipinstall-Udjango_celery_monitorUsageTo use this with your project you need to follow these steps:Install the django_celery_monitor library:$pipinstalldjango_celery_monitorAdddjango_celery_monitortoINSTALLED_APPSin your
Django project’ssettings.py:INSTALLED_APPS = (
    ...,
    'django_celery_monitor',
)Note that there is no dash in the module name, only underscores.Create the Celery database tables by performing a database migrations:$pythonmanage.pymigratedjango_celery_monitorGo to the Django admin of your site and look for the “Celery Monitor”
section.Starting the monitoring processTo enable taking snapshots of the current state of tasks and workers you’ll
want to run the Celery events command with the appropriate camera classdjango_celery_monitor.camera.Camera:$celery-Aprojevents-linfo--cameradjango_celery_monitor.camera.Camera--frequency=2.0For a complete listing of the command-line options available see:$celeryevents--helpConfigurationThere are a few settings that regulate how long the task monitor should keep
state entries in the database. Either of the three should be adatetime.timedeltavalue orNone.monitor_task_success_expires– Defaults totimedelta(days=1)(1 day)The period of time to retain monitoring information about tasks with aSUCCESSresult.monitor_task_error_expires– Defaults totimedelta(days=3)(3 days)The period of time to retain monitoring information about tasks with an
errornous result (one of the following event states:RETRY,FAILURE,REVOKED.monitor_task_pending_expires– Defaults totimedelta(days=5)(5 days)The period of time to retain monitoring information about tasks with a
pending result (one of the following event states:PENDING,RECEIVED,STARTED,REJECTED,RETRY.In your Celery configuration simply set them to override the defaults, e.g.:from datetime import timedelta

monitor_task_success_expires = timedelta(days=7)
Package: django-celery-oncommit
# django-celery-oncommitDelay all celery tasks until after the current django transaction has committed to prevent race conditions.See the [django docs](https://docs.djangoproject.com/en/2.1/topics/db/transactions/#performing-actions-after-commit) for more details.## Usage`pip install django-celery-oncommit`In your task file:```pythonfrom django_celery_oncommit import task@taskdef some_task(with_args):"""Task that does stuff with objects"""pass```Elsewhere:```pythonfrom mytasks import some_taskdef function_used_in_django_code():create_some_objects()some_task.delay(args_referring_to_new_objects)slow_operation_that_allows_the_race_condition()```Ta da!## TODO* provide a non-transaction-based option `apply_async` for when the user explicity knows how they want to interact with transactions
Package: django-celery-progress
Django Celery ProgressA django app to monitor celery tasks with progressDemoQuick startAdd "django_celery_progress" to your INSTALLED_APPS:INSTALLED_APPS = [
        'django_celery_progress',
    ]Set CELERY_BROKER_URL and CELERY_RESULT_BACKENDCELERY_BROKER_URL = 'redis://localhost:6379/0'
CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'Progress monitor:import time

from celery import shared_task
from django_celery_progress.progress import set_progress

@shared_task(bind=True, name='my_task')
def my_task(self):
    for i in range(100):
        time.sleep(1)
        set_progress(self, i + 1, 100)
Package: django-celery-progressbar
Django Celery ProgressbarSimple progressbar for a Django application with Celery. Uses database as a temporary storage.InstallationInstallation is as simple as installing a package from PyPi and applying migrations:$ pip install django-celery-progresbar
$ python manage.py migrate django_celery_progressbarUsageTypical usage on the side of Celery task would look like:fromdjango_celery_progressbar.barsimportProgressBarfromceleryimportshared_task@shared_taskdefdo_something():bar=ProgressBar(task_id=do_something.request.id,total=10,step='Drying kelp...')some_work()bar.update(progress='5',step='Making sushi...')some_more_work()bar.progress.finalize()To retireve current progressbar state, you can use built-in getter:fromdjango_celery_progressbar.barsimportProgressBarbar=ProgressBar.get(task_id)print(bar)>>>5/10|Dryingkelp...# or as percent:print(bar.as_percent)>>>50.0%Keep in mind: as ProgressBar fetches DB object on creation, it is not updated dynamically.ConfigurationThe following default settings can be overridden in yoursettings.py:PROGRESSBAR_DEFAULT_TOTAL=100PROGRESSBAR_DESTROY_ON_EXIT=FalsePROGRESSBAR_DYNAMIC_UPDATE=FalsePROGRESSBAR_DEFAULT_TOTAL- Default value for ‘Total’ progressbar attributePROGRESSBAR_DESTROY_ON_EXIT- Destroy model object on task completionPROGRESSBAR_DYNAMIC_UPDATE- Dynamically update progressbar DB object in runtime. You don’t need it turned on in stateless appsLicenseFree software: MIT licenseHistory0.2.3 (2020-07-12)added proper documentation0.2.2 (2020-07-12)addeddynamicproperty to ProgressBar0.2.1 (2020-07-12)minor cosmetics0.2.0 (2020-06-28)added possibility for dynamic updates in runtimeaddedupdate()method to ProgressBar classfixed a bug withfinalize()method0.1.1 (2020-06-28)addedas_percentattribute to ProgressBar classaddedfinalize()method to ProgressBar class0.1.0 (2020-06-28)First release on PyPi
Package: django-celery-results
Version:2.5.1Web:https://django-celery-results.readthedocs.io/Download:https://pypi.python.org/pypi/django-celery-resultsSource:https://github.com/celery/django-celery-resultsKeywords:django, celery, database, resultsAboutThis extension enables you to store Celery task results using the Django ORM.It defines a single model (django_celery_results.models.TaskResult)
used to store task results, and you can query this database table like
any other Django model.InstallingThe installation instructions for this extension is available
from theCelery documentationInstallationYou can install django-celery-results either via the Python Package Index (PyPI)
or from source.To install usingpip,:$ pip install -U django-celery-resultsDownloading and installing from sourceDownload the latest version of django-celery-results fromhttps://pypi.python.org/pypi/django-celery-resultsYou can install it by doing the following,:$ tar xvfz django-celery-results-0.0.0.tar.gz
$ cd django-celery-results-0.0.0
$ python setup.py build
# python setup.py installThe last command must be executed as a privileged user if
you are not currently using a virtualenv.Using the development versionWith pipYou can install the latest snapshot of django-celery-results using the following
pip command:$ pip install https://github.com/celery/django-celery-results/zipball/master#egg=django-celery-resultsIssues with mysqlIf you want to rundjango-celery-resultswith MySQL, you might run into some issues.One such issue is when you try to runpython manage.py migrate django_celery_results, you might get the following error:django.db.utils.OperationalError: (1071, 'Specified key was too long; max key length is 767 bytes')To get around this issue, you can set:DJANGO_CELERY_RESULTS_TASK_ID_MAX_LENGTH=191(or any other value if any other db other than MySQL is causing similar issues.)max_length of191seems to work for MySQL.django-celery-results for enterpriseAvailable as part of the Tidelift Subscription.The maintainer of django-celery-results and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source packages you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainer of the exact packages you use.Learn more.
Package: django-celery-results-rest
django-celery-results RESTful APIRESTful API for django-celery-results.UsageAddcelery_results_restin your project'ssettings.py:INSTALLED_APPS = [
    'celery_results_rest',
]Includecelery_results_rest.urlsin project'surls.py:urlpatterns = [
    path('celery/results/', include('celery_results_rest.urls'))
]
Package: django-celery-statuspage
This is simple module which can be used to test running Celery tasks.Usage:adddjango_celery_statuspageto your APPLICATIONSaddurl(‘^status/celery/’, ‘django_celery_statuspage.views.ping’),
to your url definitionopen/status/celery/page on your websiteOpening/status/celery/page creates one dummy task, runs it and
returns its result. If the task result is not obtained withing 5 seconds,
response is 500.The/status/celery/page can be added to your Nagios/Icinga monitoring.
Package: django-celery-tasks
Version:0.0.1Download:http://pypi.python.org/pypi/django-celery-tasksSource:http://github.com/sbneto/django-celery-tasksKeywords:django, celery, database, resultsAboutThis extension builds upon the django-celery-results extension allowing to store relevant
tasks information in a Django model, as well as display and manage tasks more efficiently.This is a work in progresss at the moment.InstallationYou can install django-celery-tasks either via the Python Package Index (PyPI)
or from source.To install usingpip:$ pip install -U django-celery-tasksUsing the development versionWith pipYou can install the latest snapshot of django-celery-tasks using the following
pip command:$ pip install https://github.com/celery/django-celery-tasks/zipball/master#egg=django-celery-tasks
Package: django-celery-tracker
This django extension is intended for existing celery projects that want better monitoring of what’s going on in their queue.UsageTo use this with your project, you need to:Install django-celery-tracker:$pipinstalldjango-celery-trackerAdddjango_celery_trackertoINSTALLED_APPSin your Django settings file:INSTALLED_APPS=(...'django_celery_tracker',)Create the database tables by applying migrations:$pythonmanage.pymigratedjango_celery_trackerYou will now have a record of allfuturecelery tasks and their progress which can be queried like so:$pythonmanage.pyconsole...
>>> from django_celery_tracker.models import CeleryTask
>>> CeleryTask.objects.all()
<QuerySet [<CeleryTask: id=3d889396-daa2-4209-9348-9ec71bfb1262, name=api.taskapp.celery.debug_task>]DashboardOptionally, you can include a dashboard view that can only be accessed by admin users. To add the dashboard to your project, simply add the following to yoururls.py:urlpatterns=[path("celery-tracker/",include("django_celery_tracker.urls")),]You can now visithttp://site_url/celery-trackerto view the status of your tasks!DisclaimerThe datastore for a celery message queue is usually in-memory and highly-optimized (egredisorrabbitmq).  This django extension creates a database entry for every celery task that is created. You may want to periodically delete older entries if storage is an obstacle.
Package: django-celery-with-beanstalk
Version:3.0ContentsThis bundle installs the following packages:['django-celery>=3.0,<4.0', 'beanstalkc']What is this?This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.You can install all of the packages in this bundle by,using pip:$ pip install -U django-celery-with-beanstalkorusing easy_install:$ easy_install -U django-celery-with-beanstalkOr if you want to add this bundle as a dependency in your application, you
can add the following identifier in yoursetup.py’s requires list or
in your pip requirements files:django-celery-with-beanstalkYou can also specify a specific version:django-celery-with-beanstalk>=3.0
Package: django-celery-with-couchdb
Version:3.0ContentsThis bundle installs the following packages:['django-celery>=3.0,<4.0', 'couchdb']What is this?This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.You can install all of the packages in this bundle by,using pip:$ pip install -U django-celery-with-couchdborusing easy_install:$ easy_install -U django-celery-with-couchdbOr if you want to add this bundle as a dependency in your application, you
can add the following identifier in yoursetup.py’s requires list or
in your pip requirements files:django-celery-with-couchdbYou can also specify a specific version:django-celery-with-couchdb>=3.0
Package: django-celery-with-mongodb
Version:3.0ContentsThis bundle installs the following packages:['django-celery>=3.0,<4.0', 'pymongo']What is this?This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.You can install all of the packages in this bundle by,using pip:$ pip install -U django-celery-with-mongodborusing easy_install:$ easy_install -U django-celery-with-mongodbOr if you want to add this bundle as a dependency in your application, you
can add the following identifier in yoursetup.py’s requires list or
in your pip requirements files:django-celery-with-mongodbYou can also specify a specific version:django-celery-with-mongodb>=3.0
Package: django-celery-with-redis
Version:3.0ContentsThis bundle installs the following packages:['django-celery>=3.0,<4.0', 'redis>=2.4.4']What is this?This is a bundle of several packages that you can use as a shortcut in the
requirements lists of your applications.  Bundles are used to follow a
common group of packages, or a package with an optional extension feature.You can install all of the packages in this bundle by,using pip:$ pip install -U django-celery-with-redisorusing easy_install:$ easy_install -U django-celery-with-redisOr if you want to add this bundle as a dependency in your application, you
can add the following identifier in yoursetup.py’s requires list or
in your pip requirements files:django-celery-with-redisYou can also specify a specific version:django-celery-with-redis>=3.0
Package: django-centralauth
django-centralauth solves the problem of managing user access and permissions
from multiple projects in one central place.Featuresbased on OAuth2 standard.provider app to set up your own user-management application.client app for delegating authentication and permissions management to provider.Requirementsdjango-centralauth supports Python 3 only and requires at least Django 2. and django-oauth-toolkit.Prepare for development$poetryinstallNow you’re ready to run the tests:$poetryrunpy.testResourcesDocumentationBug TrackerCode
Package: django-cerberus
Django app that locks out users after too many failed login attempts until release time expires.Tested on Django 1.4.5.RequirementsDjangoInstallationInstall python library using pip: pip install django-cerberusAddcerberustoINSTALLED_APPSin your Django settings fileSync your databaseUsageAddcerberus.decorators.watch_loginsdecorator to your login view. Example:class LoginView(FormView):
    template_name = 'example/login.html'
    form_class = AuthenticationForm

    @method_decorator(watch_logins)
    def dispatch(self, request, *args, **kwargs):
        if request.user.is_authenticated():
            return redirect(settings.LOGIN_REDIRECT_URL)
        return super(LoginView, self).dispatch(request, *args, **kwargs)

    def form_valid(self, form):
        user = form.get_user()
        login(self.request, user)
        return super(LoginView, self).form_valid(form)

    def get_success_url(self):
        return reverse('logged_in')SettingsCERBERUS_MAX_ATTEMPTSNumber of max failed login attempt. Default:5.CERBERUS_LOCKOUT_TIMENumber of seconds after the failed login attempts are forgotten in seconds. Default:600.ModelEach lockout model instance contains username, number of failed login attempts, IP address, user agent details,
GET and POST parameters, information if lockout is locked (user tried to log in with wrong credentials at leastCERBERUS_MAX_ATTEMPTStimes) and if lockout is expired (based onCERBERUS_LOCKOUT_TIME).TemplateYou can overridecerberus/lockout.htmltemplate if you wish. There islockoutinstance andlockout_timevariable
(CERBERUS_LOCKOUT_TIME) available in template context.AuthorsLibrary is byErik TelepovskyfromPragmatic Mates. Seeour other libraries.
Package: django-cerberus-ac
Cerberus Access ControlDjango Ontology Based Access Control ModuleLicenseSoftware licensed underISClicense.Installationpip install django-cerberus-acDocumentationOn ReadTheDocsDevelopmentTo run all the tests:toxChangelog0.2.5 (2018-06-19)Improve performance by getting conveyors/heirs iteratively instead of recursively
(database requests number drastically reduced).0.2.4 (2018-01-18)Fix missingdjango-suit-dashboardinsetup.py.Fix usage ofdjango-app-settings0.3.0 inurls.py.0.2.3 (2017-12-11)Fix mapping setting fordjango-app-settings0.3.0.0.2.2 (2017-12-11)Update to supportdjango-app-settings0.3.0.0.2.1 (2017-11-08)Fixsave() prohibited to prevent data loss due to unsaved related object 'reference'error in adminsave_model.0.2.0 (2017-07-03)Overridesave_modelsadmin methods to add user in history records.Add and rename methods inRoleMixin.Fix mapping setting check function.Implement implicit authorization.Add Science/Research classifier.Fix bug when id cannot be coerced to right type.Add migration 2.ImproveRolePrivilegeadmin.Add drag and zoom to role hierarchy graph.Update initial migration to reflect code.0.1.7 (2017-04-19)Addd3.min.jsas a static asset to enable it in SSL context.0.1.6 (2017-04-19)Finish implementation of edit privileges page (efficient below 1000*1000 matrices).0.1.5 (2017-04-18)Improve admin display.Add allow_update_own_privileges setting.Improveinstance_from_method.Addskip_implicitandlogkwargs oncanmethod.Fix role hierarchy chart, useallow_own_updatesetting.Put backsetting_prefix.Adddjango-app-settingsdependency, removeautowidthfrom data-table.Move access to objects into get to avoid migrate errors.Remove Github pages configuration file.Update django from 1.10.6 to 1.11.Fix migrations (missing__init__.py).0.1.4 (2017-04-10)Implement Ajax call with notification.Interfaceno_datatabletemplate with backend.Set namespace to cerberus, improve consistency.Match application name in breadcrumbs.Move application settings intoappsmodule.Change IDs frominttostr.Add migration file, avoid loading role instances at start-up.Change mapping setting.Register models in admin.Fix unique constraint with integers default 0.0.1.3 (2017-04-04)Admin classes added for separation of privileges.Models updated.0.1.2 (2017-04-03)Added views, templates, and models for testing.Changed Bootstrap version from 3.3.1 to 2.3.1  and JQuery 3.1.1 to 2.1.1.0.1.1 (2017-02-21)Alpha release on PyPI.
Package: django-cerebro
[![Build Status](https://secure.travis-ci.org/sieben/django-cerebro.png)](http://travis-ci.org/sieben/django-cerebro)CerebroCe projet a pour but de créer une application en javascript pouvant localiser
des lycéens et les informations qui leurs sont relatives sur une carte
géographique.ObjectifsPouvoir avoir une représentation géographique d’étudiants.Pouvoir ajouter des informations de plusieurs types (Laboratoires,
Univerisités, Associations,…)Etre rapide, facile d’utilisationInstallationfab installis the command to run on a debian-like system to launch
the application
Package: django-cerial
Fields for storing serializable data.What makes this different from other implementations available?This implementation deserializes only when necessary. Deserializing is done on
field access rather than on model instance creation. Serializing is done right
before saving the model instance.There is a test suiteRequirements2.5 <= Python < 3DjangoInstallationpip install django-cerialJSONFieldSerializes data asJSON. Example:from django.db import models
from cerial import JSONField

class Entry(models.Model):
    data = JSONField()PickleFieldSerializes data usingcPickle. Example:from django.db import models
from cerial import PickleField

class Entry(models.Model):
    data = PickleField()
Package: django-cfdi
django-cfdidjango-cfdi is a tool for friendly work with CFDI's.Installationpip install django-cfdiActivar validación de CFDI'sPara poder utilizar la funcióncfdi.utils.validar_cfdies necesario especificar las siguientes variables en su archivosettings.pyy pueden variar los valores dependiendo de su instalación del proyecto validacfdi-cli (https://gitlab.com/admintotal/validacfdi-cli)CFDI_NODE_BIN = "/home/root/.nvm/versions/node/v12.14.1/bin/node"
CFDI_VALIDADOR_PATH = "/srv/Projects/validacfdi-cli/index.js"
Package: django-cgi
Run Django with CGIInstallationTo get the latest stable release from PyPipipinstalldjango-cgiInstall the appINSTALLED_APPS=(...,'django_cgi',)Usagegenerate_cgi_handler commandpythonmanage.pygenerate_cgi_handlerThis will create a file called cgi_handler.py next to manage.py.Server configPoint your server to serve the cgi_handler.py file.  This is an example config for Apache:LoadModule cgid_module lib/httpd/modules/mod_cgid.so
ScriptAlias /path "/repo/cgi_handler.py"
<Directory "/repo">
    AllowOverride None
    Options None
    Require all granted
</Directory>
Package: django-cgi-wrap
Wrapper to integrate CGI scripts into django views.Simple function to wrap old-style CGI scripts/binaries to integrate them
into the views of a django app.This method preserves the shortcommings of the CGI deployment, but may be adequate
when the performance hit caused by CGI spawning a new process for each request is
negligible, a legacy CGI executable needs to be embedded in a new application or
the ease of deployment is a priority.Data returned by the CGI will be streamed to the client.Example:from django_cgi_wrap import cgi_wrap

def example_view(request):
    return cgi_wrap(request, "/usr/bin/mapserv")Also see the “tests” directory for a working example as well as the doc-strings of the
module itself.
Package: django-chainable-manager
Allows chaining of custom model Manager methods, without jumping through
QuerySet hoops.InstallingSimply install the package usingpip:pip install django-chainable-managerUsingCreate a Manager that extendschainablemanager.ChainableManager:fromdjango.dbimportmodelsfromchainablemanager.managerimportChainableManagerclassPostManager(ChainableManager):classQuerySetMixin(object):defpublished(self):returnself.filter(publish_date__gte=datetime.date.today())defwritten_by(self,user):returnself.filter(author=user)classPost(models.Model):title=models.CharField(max_length=255)content=models.TextField()publish_date=models.DateField()author=models.ForeignKey('auth.User')objects=PostManager()Now use it where ever you need it:from.modelsimportPostmy_published_posts=Post.objects.written_by(request.user).published()
Package: django-chained-autocomplete
[![PyPI version](https://badge.fury.io/py/django-chained-autocomplete.svg)](https://badge.fury.io/py/django-chained-autocomplete)Django Chained Autocomplete----------------Django admin mixins in order to allow autocomplete dropdowns to be chained(having one dropdown's result dependant on another dropdown's value)Installation-----------Install via pip>>> pip install django-chained-autocompleteAdd to Django `settings.py````pythonINSTALLED_APPS = ['autocomplete_chained',...]```Usage-----TODO