Saravanan666/pypi-org huggingface dataset:
Package: django-da-login
=====Da Login=====Da Login is a simple Django app to register and login to system.Detailed documentation is in the "docs" directory.Quick start-----------1. Add "da_login" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'da_login',)2. Include the polls URLconf in your project urls.py like this::(r'', include('da_login.urls', namespace='da_login', app_name='da_login')),3. Run `python manage.py migrate` to create the polls models.5. Visit http://127.0.0.1:8000/register/ to register or http://127.0.0.1:8000/login/ to login.
Package: django-dana-time
# Django Dana TimeShort, readable datetime filters.### Install### Usage```python{% load danatime %}{{ datetime_instance|danatime:"previous year format" }}```### FormattingExamples are shown with `en` translation/formatting and no arguments to thetemplate tag.| timedelta               | danatime                     ||-------------------------|------------------------------|| 0 seconds               | now                          || 1 second                | a second ago                 || 2 - 60 seconds          | 2 - 60 seconds ago           || 1 minute                | a minute ago                 || 2 - 60 minutes          | 2 - 60 minutes ago           || 1 hour                  | an hour ago                  || 2 - 6 hours             | 2 - 6 hours ago              || 6 - 24 hours, same day  | 4:26 p.m.                    || 6 - 24 hours, yesterday | 4:26 p.m. yesterday          || \> 24 hours, same year  | Aug 10                       || previous year           | 8/10/2012                    |### Internationalization NotesAll values are internationalized and localized by default using[Django's internationalization and localization support](https://docs.djangoproject.com/en/1.9/topics/i18n/).#### 6 - 24 hours (same day/yesterday)Uses `defaultfilters.time`, which defaults to the localized`settings.TIME_FORMAT`.Example: In [en](https://github.com/django/django/blob/master/django/conf/locale/en/formats.py),`TIME_FORMAT = 'P'`.#### \> 24 hours, same yearUses `defaultfilters.date` with an argument of `'MONTH_DAY_FORMAT'`, thelocalized `settings.MONTH_DAY_FORMAT`.Example: In [en](https://github.com/django/django/blob/master/django/conf/locale/en/formats.py),`MONTH_DAY_FORMAT = 'F j'`.#### previous yearUses `defaultfilters.date` with an argument of `'n/j/Y'`.Example: 10 August 2012 is formatted as `8/10/2012`.Override this by passing an optional argument with a format to the filter tag.#### previous year format examples:Pass `None` to use the default, localized `settings.DATE_FORMAT`:```{{ mytime|danatime:None }}```Pass `SHORT_DATE_FORMAT` to use the localized `settings.SHORT_DATE_FORMAT`:```{{ mytime|danatime:"SHORT_DATE_FORMAT" }}```Pass a format string like `"F j, Y"` to use a custom format:```{{ mytime|danatime:"F j, Y" }}```This particular format yields `August 8, 2012`.See Django's [available format strings](https://docs.djangoproject.com/en/1.9/ref/templates/builtins/#date)for help.
Package: django-dans-notifications
Django Dans NotificationsDescriptionA Django app to handle notifications.Support for basic notifications, push notifications and email notifications.Quick startInstall the package via pip:pipinstalldjango-dans-notificationsAdd "django_dans_notifications" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'django_dans_notifications',]Include the URL configs in your projecturls.pyfor the REST API endpoints like this:path("api/notifications/",include("django_dans_notifications.urls")),Runpython manage.py migrateto update your database schema.Use the API endpoints, in code or your Django admin portal.RequirementsPython 3.8 or higherDjango 3.1 or higherDjango Rest FrameworkNOTE:not only must you have this installed, you must have setDEFAULT_AUTHENTICATION_CLASSESandDEFAULT_PAGINATION_CLASSin yoursettings.pyto work with the APIs properly. An example config would be:REST_FRAMEWORK={"DEFAULT_PAGINATION_CLASS":"rest_framework.pagination.PageNumberPagination","PAGE_SIZE":20,"DEFAULT_AUTHENTICATION_CLASSES":("rest_framework.authentication.TokenAuthentication",),}Available SettingsCurrently all available settings are optional:TEAM_NAME- Default team name to use for emails, can be added to message context manually as well still.IN_TEST- Whether running in tests or not. Used to determine whether to actually send email.Add these to yoursettings.pyfile to customize the app's behavior like so:TEAM_NAME="My Team"IN_TEST=TrueUsageThe main way to interact with this app is to create and use the appropriate models and their managers' methods as needed.Also included is theNotificationManagera class to expose some common functionality and maintain object permissions.Some of its methods currently are:get_notifications_push/email/basic/allEnforce object ownership and notification 'direction'mark_notification_basic_readYou can also interact directly, so for example to send an email notification:fromdjango_dans_notifications.modelsimportEmailNotificationemail_notification=EmailNotification.objects.send_email(...)DocsModel docs.API docs.Email Template docs.https://danielnazarian.comCopyright 2024 © Daniel Nazarian.
Package: django-dans-waitlist
Django Dans WaitlistDescriptionA Django app to handle waitlist and basic functionality.Support forWaitlistandWaitlistEntrymodels, as well as aWaitlistManagerto handle common operations.Quick startInstall the package via pip:pipinstalldjango-dans-waitlistAdd "django_dans_waitlist" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'django_dans_waitlist',]Include the URL configs in your projecturls.pyfor the REST API endpoints like this:path("api/waitlist/",include("django_dans_waitlist.urls")),Runpython manage.py migrateto update your database schema.Use the API endpoints, in code or your Django admin portal.RequirementsPython 3.10 - 3.11Django 3.1 or higherDjango Rest FrameworkNOTE:not only must you have this installed, you must have setDEFAULT_AUTHENTICATION_CLASSESandDEFAULT_PAGINATION_CLASSin yoursettings.pyto work with the APIs properly. An example config would be:REST_FRAMEWORK={"DEFAULT_PAGINATION_CLASS":"rest_framework.pagination.PageNumberPagination","PAGE_SIZE":20,"DEFAULT_AUTHENTICATION_CLASSES":("rest_framework.authentication.TokenAuthentication",),}Available SettingsCurrently all available settings are optional:TEAM_NAME- Default team name to use for emails, can be added to message context manually as well still.Add these to yoursettings.pyfile to customize the app's behavior like so:TEAM_NAME="My Team"DocsModel docs.API docs.https://danielnazarian.comCopyright 2024 © Daniel Nazarian.
Package: django-dantejcoder
# DanteJcoderSimple way to make json from standard django modelsQuickstart:Installation`pip install django-dantejcoder`Simple use1. Import DanteJcoder```pythonfrom dantejcoder.coder import DanteJcoder```2. Get one django model or queriset (for example in result variable)3. Use DanteJcoder in JsonResponse```pythonreturn JsonResponse(result, encoder=DanteJcoder)```
Package: django-dantejsoncoder
# dantejsoncoderdantejsoncoder is a simple Django app to covert standard django-models to jsonQuick start-----------0. Install::`pip install django-dantejsoncoder`1. Add "dantejsoncoder" to your INSTALLED_APPS setting like this::```INSTALLED_APPS = (...'dantejsoncoder',)```2. Import::`from dantejsoncoder.coder import DanteEncoder`3. Simple way (all fields)::"""get QuerySet"""`objects = YourModel.objects.all()`"""return json result"""`return JsonResponse(objects, encoder=DanteEncoder)`4. If you need concrete fields in your model class add::`__to_json_fields__ = ('field1','field2',...)`5. If you need a special translation, add `__to_json_dict__` method in your model class::`def __to_json_dict__(self):return {'field_name': self.val. ... }`6. If you want to add something in the Encoder, use inheritance::```class VirgilEncoder(DanteEncoder):def default(self, obj):if isinstance(obj, QuerySet):result = {}...return resultelse:return super().default(obj)```
Package: django-darenme-polls
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 start
———–
1. Add “polls” to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
…
‘polls’,
]
2. Include the polls URLconf in your project urls.py like this::
url(r’^polls/’, include(‘polls.urls’)),
3. Runpython manage.py migrateto create the polls models.
4. Start the development server and visithttp://127.0.0.1:8000/admin/to create a poll (you’ll need the Admin app enabled).
5. Visithttp://127.0.0.1:8000/polls/to participate in the poll.
Package: django-dark
django-darkPreambleThis is just a fresh playground, stay tuned or feel free to contribute.Setuppipinstalldjango-darkIntegrationAdd "dark" to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'dark',]Modify Django's base_site.html{% block extrahead %}
    .
    .<linkhref="/static/admin/css/dark.css"type="text/css"media="(prefers-color-scheme: dark)"rel="stylesheet">{% endblock %}Template can be found here:lib/python3.X/site-packages/django/contrib/admin/templates/admin/base_site.htmlhttps://github.com/django/django/blob/master/django/contrib/admin/templates/admin/base_site.htmlHelper ClassesIf you are using tintable images (one colored icons), you can add the class "img-invertable", which simply represents:.img-invertable{filter:invert(0.7)}Current ResultDeveloper Notes# alias sv="source .virtualenv/bin/activate"# alias vv="mkdir .virtualenv && python3 -m venv .virtualenv && sv"vv
sv
pipinstall-rrequirements/common.txt# Compile Exampleslesscpy-xdark/less/dark.lessdark/static/admin/css/dark.css
watchmedoshell-command--wait--patterns="*.less"--recursive--command"lesscpy -V -x dark/less/dark.less dark/static/admin/css/dark.css"watchmedoshell-command--wait--patterns="*.less"--recursive--command"lesscpy -V -x dark/less/dark.less dark/static/admin/css/dark.css && python manage.py collectstatic --noinput"# Distributionpythonsetup.pysdist
twineupload--repository-urlhttps://upload.pypi.org/legacy/dist/*
Package: django-darthmail
django-darthmailModule for using darthmail as an EMAIL_BACKEND in Django.SettingsEMAIL_BACKEND='django_darthmail.backends.DarthMailBackend'EMAIL_DARTHMAIL_URL='https://some.darthmail.instance.url'EMAIL_DARTHMAIL_TOKEN='someauthtoken'EMAIL_DARTHMAIL_FALLBACK='django.core.mail.backends.smtp.EmailBackend'Making a new releasebumpversionis used to manage releases.After reaching a releasable state, runbumpversion <major|minor|patch>When the tag is pushed, the release will be done by the GitHub actions
Package: django-dartium
django-dartiumprovides for a simple way to detect the Dartium web browser and make
it easy to serve Dart sources instead of compiled JavaScript during development.InstallationPython 3andDjangoare the only requirements:Installdjango-dartiumwith your favorite python tool, e.g.pip installdjango-dartium.Adddjango_dartiumto yourINSTALLED_APPSsetting.Adddjango_dartium.middleware.DartiumDetectionMiddlewareto yourMIDDLEWARE_CLASSESsetting.Add two named mappings toSTATICFILES_DIRS, one nameddart/buildwhich points to the
build location of the JavaScript output and the other isdart/srcwhich points to thewebdirectory containing your original Dart source. If you created your Django project by runningdjango-adminstartproject your_projectand placed your Dart sources inyour_project/your_project/dartdirectory, then you would have the followingSTATICFILES_DIRS:STATICFILES_DIRS=[('dart/build','your_project/dart/build/web'),('dart/src','your_project/dart/web'),]UsageLoad thedartiumtag library into your Django template, call thewebcomponentstag to load
the necessary polyfills and then add a reference to your Dart code via thedarttag.A good setup would be to have the following in yourbase.html:{%loaddartium%}<html>...<body>{%blockcontent%}{%endblock%}{%webcomponents'lite'%}{%blockscript%}{%endblock%}</body></html>Then in each of your pages where you want to use Dart some Dart script you can add:{%loaddartium%}{%blockcontent%}... page content ...{%endblock%}{%blockscript%}{%dart"your_script.dart"%}{%endblock%}The end result will be that if you browse to this page with Dartium you will get
served your original Dart source but if you are using any other browser you’ll
be servedyour_script.dart.jsfrom thebuild/webdirectory.0.1.3 - 2017-01-31New style middlware to work with Django 2.00.1.0Initial release.
Package: django-dashboards-app
Django Admin for Developers and Django Dahsboard for Clients.FeaturesPanel Dahsboard for all apps and modelsCRUD + Duplicate, Filter and Export for all apps and modelsGeneric and extensible Urls, Filters, Forms, Serializers and Views for all modelsBootstrap integrationTODOmodal errorsInstallationpipinstalldjango-dashboards-appUsageAdd'django_dashboards_app'to yourINSTALLED_APPS.INSTALLED_APPS=[...'django_dashboards_app',]ConfigureDASHBOARD_PROJECT_NAMEandDASHBOARD_REDIRECTon your project settings.DASHBOARD_PROJECT_NAME='Project Title'DASHBOARD_REDIRECT='your_app_url/'Addget_detail_url,get_update_urlandget_delete_urlfor each model.classModel(models.Model):defget_detail_url(self):returnreverse('your_app_name:model_name_detail',args=[self.pk])defget_update_url(self):returnreverse('your_app_name:model_name_update',args=[self.pk])defget_delete_url(self):returnreverse('your_app_name:model_name_delete',args=[self.pk])Run generate command.pythonmanage.pygenerateyour_app_nameAdd dashboard and your app urls to project urls.fromdjango_dashboards_appimporturlsasdashboard_urlsfromyour_app_nameimportbase_urlspath('dashboard/',include((dashboard_urls,'dashboard'),namespace='dashboard')),path('dashboard/your_app_name/',include((base_urls,'your_app_name'),namespace='your_app_name')),Next FeaturesNested relations info in detail viewNested urls and breadcrumbs for model relationsFormsets for nested relationsTranslationsPermissions
Package: django-dash-ddx-catalog
django-dash-ddx-catalogAuxiliary Django forms for semi-automatic CRUD fordash-devextremecomponentsInstallation$pipinstalldjango-dash-ddx-catalogUsagefromdash_ddx_catalog.formsimportDashDDXForm,DashDDXModelFormfromdjangoimportformsfrom.modelsimportMyModelclassSimpleForm(DashDDXForm):name=forms.CharField(label='Label name',max_length=255)...classSimpleModelForm(DashDDXModelForm):name=forms.CharField(label='Label name',max_length=255)...classMeta:model=MyModelLicenseMIT
Package: django-dashing
django-dashingis a customisable, modular dashboard application framework for Django to visualize interesting data about your project. Inspired in the exceptionally handsome dashboard frameworkDashingCheck out a demo overhere.PrerequisitesDjango 1.5.+Django Compressor (optional)Key conceptsUse premade widgets, or fully create your own with css, html, and javascript.Use the API to push data to your dashboards.Drag & Drop interface for re-arranging your widgets.InstallationInstall latest stable version from PyPi:$ pip install django-dashingAdddashingtoINSTALLED_APPSof the your projects.INSTALLED_APPS=(...'dashing',)Include the dashboard URLconf in your project urls.py like this:fromdashing.utilsimportrouter...url(r'^dashboard/',include(router.urls)),Start the development server and visithttp://127.0.0.1:8000/dashboard/to view the dummy dashboard.Quick StartTo make your own dashboard and retrieves the data from django you should:Create a django dashboard application with awidgets.pyfileCreate your widget extended fromNumberWidget,ListWidget,GraphWidgetor simplyWidget(from dashing.widgets), for examplesee.Register your widget inurls.pylike:fromdjango.conf.urlsimporturl,includefromdashing.utilsimportrouterfromproject.dashboard.widgetsimportCustomWidgetrouter.register(CustomWidget,'custom_widget')urlpatterns=[url(r'^dashboard/',include(router.urls)),]Create a dashing-config.js file with a widget that retrive the data in your static directory like:varmyDashboard=newDashboard();myDashboard.addWidget('customWidget','Number',{getData:function(){varself=this;Dashing.utils.get('custom_widget',function(data){$.extend(self.scope,data);});},interval:3000});Also if you want to locate the config file in a different directory you can create adashing/dashboard.htmlfile in yourTEMPLATE_DIRSand replace theconfig_fileblock to the route of your javascript config file, see thedocs.TestingInstall dependencies.$ npm install
$ pip install -r requirements.txtRun tests.$ npm testLinksDocumentationDemo applicationWidget List
Package: django-dashing-custom-torsten
django-dashingis a customisable, modular dashboard application framework for Django to visualize interesting data about your project. Inspired in the exceptionally handsome dashboard frameworkDashingCheck out a demo overhere.PrerequisitesDjango 1.5.+Key conceptsUse premade widgets, or fully create your own with css, html, and javascript.Use the API to push data to your dashboards.Drag & Drop interface for re-arranging your widgets.InstallationInstall latest stable version from PyPi:$ pip install django-dashingAdddashingtoINSTALLED_APPSof the your projects.INSTALLED_APPS=(...'dashing',)Include the dashboard URLconf in your project urls.py like this:fromdashing.utilsimportrouter...url(r'^dashboard/',include(router.urls)),Start the development server and visithttp://127.0.0.1:8000/dashboard/to view the dummy dashboard.TestingFirst install any development dependencies.$ npm install
$ pip install -r requirements.txtThen download and installPhamtonJSdjango-dashing uses mocha as testing framework. Run the following command in the root directory to run the full test suite.$ mocha -t 10000LinksDocumentationExample (blog post)Demo applicationWidget List
Package: django-dashvisor-ui
django-dashvisorDjango supervisor dashboard UIRequirements:Django >= 1.11Install:pip install django-dashvisor-uiInstructionsAdd to django installed apps:INSTALLED_APPS = [
    ...
    dashvisor
]Configure urls:url(r'^/dashboard/', include('dashvisor.urls'))Execute on web browser:http://localhost:8000/dashboard/
Package: django-database-backup-to-git
Django Database Backup to GitA Django app, which makes a database backup in JSON format, commits and pushes it to a dedicated Git repository.
Intended to be run in deployment scripts and as a scheduled task.Installation and SetupInstall with pip:pip install django-database-backup-to-gitSet up a Git repository outside of your application's main Git repository.Adddbbackup_gitto yourINSTALLED_APPS.In you settings file, specify theDBBACKUP_GITsettingDBBACKUP_GIT={'DATABASE_BACKUP_FILENAME':os.path.join(BASE_DIR,'..','..','myapp-db-backup','db.json'),'PUSH':True# Determines whether the created backup is pushed to a remote repository, defaults to `True`}Runmanage.py help, check thatdbbackup_gitis listed as available command.UsageTypingmanage.py dbbackup_gitwill also display output. When running it fromcron, usemanage.py dbbackup_git --silent.Running withcronCreate the following scriptdbbackup-git.sh:#!/bin/bashset-eSCRIPT_DIR="$(cd"$(dirname"${BASH_SOURCE[0]}")"&&pwd)"cd$SCRIPT_DIR/../srcsource../venv/bin/activate

pythonmanage.pydbbackup_gitAdd it to hourlycronsudoln-s`pwd`/dbbackup-git.sh/etc/cron.hourly/dbbackup-gitTest itrun-parts--test/etc/cron.hourlyCronwithin a Docker containerIf your project is living inside a Docker container the "Using Cron Within Your Containers" section ofthis articlemight be useful for you.
Package: django-database-conn-pool
Push messages with different backends for the Django framework.Version1.1.0WebDownloadhttp://pypi.python.org/pypi/django-database-conn-poolSourcehttps://github.com/luojidr/django-database-conn-poolKeywordsdjango, database pool, MySQL, PostgreSQL, OracleAboutMySQL & Oracle & PostgreSQL connection pool backends of Django, Be based on SQLAlchemy.
Work fine in multiprocessing and multithreading django project.InstallationYou can install django-database-conn-pool either via the Python Package Index
(PyPI) or from source.To install usingpip:$ pip install -U django-database-conn-pooland then add it to your installed apps:(1.1): INSTALLED_APPS = [
    ...,
    'database_pool',
    ...,
]

(1.2): DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'my_test',
        'HOST': '127.0.0.1',
        'PORT': 3306,
        'USER': 'mysql_test',
        'PASSWORD': '123456',
        'POOL_OPTIONS' : {
            'POOL_SIZE': 10,
            'MAX_OVERFLOW': 15,
            'RECYCLE': 60 * 60
        }
    },
    ......
}

OR

(2): DATABASES = {
    'default': {
        'ENGINE': 'database_pool.backends.mysql',
        'NAME': 'my_test',
        'HOST': '127.0.0.1',
        'PORT': 3306,
        'USER': 'mysql_test',
        'PASSWORD': '123456',
        'POOL_OPTIONS' : {
            'POOL_SIZE': 10,
            'MAX_OVERFLOW': 15,
            'RECYCLE': 60 * 60
        }
    },
    ......
}Downloading and installing from sourceDownload the latest version of django-database-conn-pool fromhttp://pypi.python.org/pypi/django-database-conn-poolYou can install it by doing the following,:$ tar xvfz django-database-pool-0.0.0.tar.gz
$ cd django-database-pool-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.
Package: django-database-email-backend
django-database-email-backend is a simple email backend for django that delivers emails to the database. All sent
emails can be reviewed and searched in admin. This can be practical while developing where the console backend can’t be
used (e.g on a development or staging server).NoteCurrently only the plaintext part of the email and the attachments are saved accessable. Future versions of
django-database-email-backend will also display alternative content, especially html.Installation:pip install django-database-email-backendAdddatabase_email_backendtoINSTALLED_APPSand runmanage.py syncdbormanage.py migrate django_database_email_backendif you are using South.Add the email backend setting:EMAIL_BACKEND = 'database_email_backend.backend.DatabaseEmailBackend'