Saravanan666/pypi-org huggingface dataset:
Package: django-django_csv_exports
An admin action that allows you to export your models as CSV files without
having to write a single line of code –besides installation, of course.FeaturesEasy installationHigh level of customizabilityCreated with permissions in mindSane defaultsInstallationPython 2.7, 3.3+Django>= 1.5To install:pip install django-exportsNext adddjango_exportsto yourINSTALLED_APPSto include the related css/js:INSTALLED_APPS = (
    # Other apps here
    'django_csv_exports',
)ConfigurationThere are two django settings that you can use to configure who can use the export action:# Use if you want to check user level permissions only users with the can_csv_<model_label>
# will be able to download csv files.
DJANGO_EXPORTS_REQUIRE_PERM = True
# Use if you want to disable the global django admin action. This setting is set to True by default.
DJANGO_CSV_GLOBAL_EXPORTS_ENABLED = FalseFields to exportBy default, all of the fields available in a model ar ordered and exported. You can override this behavior
at the admin model level. Define the following attribute in your AdminModel:class ClientAdmin(CSVExportAdmin):
    csv_fields = ['first_name', 'last_name', 'email', 'phone_number',]PermissionThere are two ways to limit who can export data as CSV files.Model level permissions: create a new model permission and assign it only to
user who should have access to the export action in the admin.class Client(models.Model):class Meta:permissions = ((“can_csv_client”, “Can export list of clients as CSV file”),)AdminModel Level permissions: define ahas_csv_permissionand return True if a user should have access:class ClientAdmin(admin.AdminModel):
    search_fields = ('name', 'id', 'email')
    csv_fields = ['name', 'id']

    def has_csv_permission(self, request):
        """Only super users can export as CSV"""
        if request.user.is_superuser:
            return TrueSelective InstallationSometimes, you don’t want to allow all of your admin models to be exported. For this, you will need to
setDJANGO_CSV_GLOBAL_EXPORTS_ENABLEDto False, and have your AdminModels extend ourCSVExportAdminadmin class:from django_csv_exports.admin import CSVExportAdmin

class ClientAdmin(CSVExportAdmin):
    passRunning the TestsYou can run the tests with via:python setup.py testor:python runtests.py
Package: django-djavue
DjavueDjavue is a Django app that allows the usage of Vue files as Django Templates.
It's meant to be an alternative to Django Templates for developers that want to use Vue as frontend inside Django, without needing to setup npm or webpack.InstallationInstall django-djavue from pippip install django-djavueAdd djavue to your INSTALLED APPSINSTALLED_APPS=[...,'djavue',...]QuickstartCreate a .vue file inside your templates folder.Write a view that loads the templatefromdjavueimportget_vue_templatedefindex(request):template=get_vue_template('index.vue',title="Homepage")returntemplate.render({"""context here"""})Links:TutorialPypiGithub
Package: django-djcopyright
django-djcopyright is a Django reusable application to show pretty formatted copyright yearsContentsInstallationConfigurationSettingsUsageContributingLicensingContactsInstallationObtain your copy of source code from the git repository:$ git clonehttps://github.com/vint21h/django-djcopyright.git. Or download the latest release fromhttps://github.com/vint21h/django-djcopyright/tags/.Run$ python ./setup.py installfrom the repository source tree or unpacked archive. Or use pip:$ pip installdjango-djcopyright.ConfigurationAdd"djcopyright"tosettings.INSTALLED_APPS.# settings.pyINSTALLED_APPS+=["djcopyright",]SettingsDJCOPYRIGHT_START_YEARContains year to start show copyright from. Defaults to1970.DJCOPYRIGHT_FORMAT_STRINGContains format string to show copyright. Defaults to"{start_year} - {current_year}".DJCOPYRIGHT_SHOW_CURRENT_YEARShow current year in copyright string. Defaults toTrue.DJCOPYRIGHT_SHOW_START_YEARShow start year in copyright string. Defaults toTrue.UsageIf you want always have"COPYRIGHT_YEARS"variable in templates context, just add"djcopyright.context_processors.djcopyright_years"tosettings.TEMPLATE_CONTEXT_PROCESSORS# settings.pyTEMPLATE_CONTEXT_PROCESSORS+=["djcopyright.context_processors.djcopyright_years",]Else you can usedjcopyright_yearstemplatetag which can be loaded fromdjcopyright_tags.{# footer.html #}{%loaddjcopyright_tags%}{%djcopyright_yearsasCOPYRIGHT_YEARS%}{{COPYRIGHT_YEARS}}ContributingFork itInstallGNU MakeInstall and configurepyenvandpyenv-virtualenv pluginInstall and configuredirenvCreate environment config from examplecp.env.example.envInstall development dependencies:makeinstallCreate your fix/feature branch:gitcheckout-bmy-new-fix-or-featureCheck code style and moreover:makecheckRun tests:maketestPush to the branch:gitpushoriginmy-new-fix-or-featureCreate a new Pull RequestLicensingdjango-djcopyright is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
For complete license text see COPYING file.ContactsProject Website:https://github.com/vint21h/django-djcopyright/Author: Alexei Andrushievich <vint21h@vint21h.pp.ua>For other authors list see AUTHORS file.
Package: django-djeddit
Bare bones Django forum application with Reddit like features developed as a Django reusable app.comments are ranked using wilson scoring interval and displayed in a collapsable tree structure (usingdjango-mptt)voting functionality for threads & commentscompatible with mobile screen sizes (usingBootstrap)users management page for adminsadmins can lock/unlock, edit, delete threads and posts, edit & delete topicsdjango-registration-reduxis recommanded to go along with this app if you need out of the box user registration functionality.Working demo:http://eatemall.pythonanywhere.comDocumentation:https://django-djeddit.readthedocs.io.ScreenshotsSupported Dajngo versionsThe app is currently tested with Django 1.8, 1.9, 1.10 and 1.11, 2.0QuickstartInstall django-djeddit:pip install django-djedditAdd it and its dependencies to yourINSTALLED_APPS:INSTALLED_APPS=[...'crispy_forms','mptt','djeddit','meta',...]djeddit_settings to context_processors:'context_processors':[...'djeddit.context_processors.djeddit_settings',...]jango-djeddit’s URL patterns:urlpatterns=[...url(r'^',include('djeddit.urls')),...]Migrate models:pythonmanage.pymigratedjedditCreate a topic:You can use New Topic dialog in topics page if you’re logged in as a superuser or you can create one in a python console:fromdjeddit.modelsimportTopicTopic.objects.create(title='Test Topic')CreditsDependencies:django-mpttcrispy_formsdjango-metadjango-ipwareTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2017-04-15)First release on PyPI.0.1.5 (2017-05-26)Added tests for models, forms, viewsUrls that include topic titles with spaces in them don’t work // fixedCompetability fixes for Django 1.9 and 1.8 and Python 2.7client side fixes for added compatibility with mobile screen sizesfont-awsome fonts are not loading // fixedAdded description field for Topic modelmoved base.html to root template dir0.2 (2017-07-04)Admins can lock/unlock & delete threads, delete postsAdmins can edit thread title, url, and post contentadded users management page for adminsadmins can edit & delete topicsadded fields upvotes, downvotes, wsi (Wilson score interval) to Post modelremoved score field from Post modelcomments are ranked using wilson scoring intervaladded comments paging functionality (using “Load n more comments” links)0.3 (2018-06-02)added option to define url prefix in settings.TOPICS_URL for topic & thread pagesadded sitemap supportadded url slugs to threadsadded ip & user agent tracking for postsadded compatibility to Django 2.0added thread stickies (can be added or removed by admins)
Package: django-djembe
A Django email backend that encrypts outgoing mail with S/MIME.FeaturesIt automatically encrypts messages to recipients for whom certificates are
available, falling back to cleartext for any recipients that don’t have
certificates on file.Add certificates for the addresses in settings.ADMINS and you can relax (a
little) about emailing notifications, Django error reports, or other
potentially sensitive information.It supports multiple certificates per recipient address, so you can define
ADMINS as an alias, configure each recipient’s address and certificate and
they’ll all be able to read the messages.If a private key is associated with a sending address, messages from that
sender will also be signed.LicenseYou can copy, modify, distribute and perform the work, even for
commercial purposes, all without asking permission.To the extent possible under law, the author(s) have dedicated all
copyright and related and neighboring rights to this software to the
public domain worldwide. This software is distributed without any
warranty.See the file COPYING for the full text of the CC0 Public Domain
Dedication, also available at:http://creativecommons.org/publicdomain/zero/1.0/Installationpip installdjango-djembeConfigurationAdddjembeto yourINSTALLED_APPSsetting.Create its model tables withmanage.py migrate djembe.To use it as your default email backend, add this setting:EMAIL_BACKEND = 'djembe.backends.EncryptingSMTPBackend'To use a cipher other than the default AES-256, specify it in
settings.DJEMBE_CIPHER:DJEMBE_CIPHER = 'des_ede3_cbc'  # triple DESThe intersection of M2Crypto’s ciphers and RFC 3851 are:des_ede3_cbc(required by the RFC)aes_128_cbc(recommended, not required, by the RFC)aes_192_cbc(recommended, not required, by the RFC)aes_256_cbc(recommended, not required, by the RFC)rc2_40_cbc(RFC requires support, but it’s weak – don’t use it)RFC 5751 requires AES-128, and indicates that higher key lengths are of
course the future. It marks tripleDES with “SHOULD-”, meaning it’s on its
way out.The following mail clients have worked fine with AES-256 in my testing.Mail.app 6.2 (Mac)Thunderbird 17 (Mac, Linux)Windows Live Mail (Windows 7)I’d recommend you try the default and fall back to 3DES if necessary.Use the Django admin to add recipients that should receive encrypted mail.The simplest case is an Identity with a certificate. Any mail sent to that
Identity will be encrypted.To create signing Identities, supply both a certificate and a private key –
which must not have a passphrase, obviously. Any mail sentfromthe
Identity’s address will be signed with the private key.You can create multiple Identity records with the same address, but
different certificates. This is how you encrypt mail to an alias or mailing
list.ContributingThe project is onGithub. If you find a bug or have a feature request, please
add an issue there. Patches or pull requests are of course welcome, too. I
won’t even make you add tests; just make sure you don’t break what’s already
there – you can check by runningpython setup.py testin your working
copy.
Package: django-djet2
Django admin interface based on django-jet (and django-jet2) forked for recent Django.Home page:https://github.com/djungle-io/django-djet2PyPI:https://pypi.python.org/pypi/django-djet2Why Django JET?New fresh lookResponsive mobile interfaceUseful admin home pageMinimal template overridingEasy integrationThemes supportAutocompletionHandy controlsScreenshotsIndex dashboardChangelistSidemenuInstallationDownload and install latest version of Django JET:pipinstalldjango-djet2Add ‘jet’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘django.contrib.admin’):INSTALLED_APPS=(...'jet','django.contrib.admin',)Make suredjango.template.context_processors.requestcontext processor is enabled in settings.py (Django 1.8+ way):TEMPLATES=[{'BACKEND':'django.template.backends.django.DjangoTemplates','DIRS':[],'APP_DIRS':True,'OPTIONS':{'context_processors':[...'django.template.context_processors.request',...],},},]Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('admin/',include(admin.site.urls)),...)Create database tables:pythonmanage.pymigratejetCollect static if you are in production environment:pythonmanage.pycollectstaticClear your browser cacheDashboard installationNoteDashboard is located into a separate application. So after a typical JET installation it won’t be active.
To enable dashboard application follow these steps:Add ‘jet.dashboard’ application to the INSTALLED_APPS setting of your Django project settings.py file (note it should be before ‘jet’):INSTALLED_APPS=(...'jet.dashboard','jet','django.contrib.admin',...)Add URL-pattern to the urlpatterns of your Django project urls.py file (they are needed for related–lookups and autocompletes):urlpatterns=patterns('',path('jet/',include('jet.urls','jet')),# Django JET URLSpath('jet/dashboard/',include('jet.dashboard.urls','jet-dashboard')),# Django JET dashboard URLSpath('admin/',include(admin.site.urls)),...)For Google Analytics widgets onlyinstall python package:pip install google-api-python-client==1.4.1Create database tables:pythonmanage.pymigratedashboardCollect static if you are in production environment:pythonmanage.pycollectstaticLicenseDjango JET (which Django JET2 is based on) has two kinds of licenses: open-source (AGPLv3) and commercial. Please note that using AGPLv3
code in your programs make them AGPL compatible too. So if you don’t want to comply with that we can provide you
a commercial license (visit Home page). The commercial license is designed for using Django JET in commercial products
and applications without the provisions of the AGPLv3.
Package: django-djfiles
DJFilesDJFiles is a simple Django app for manage static files of your project
in admin panel. This app is useful for projects where there is a content
manager, which don’t have access to server via ssh or don’t even know
what it is =)Using this app you will be able to save static files through admin
panel. Files will be saved in /media/ directory of your project. It’s
useful if you are not always have access to server or have a content
manager who responsible for managing such files.RequirementsPython >= 2.7Django >= 1.8unicode-slugifyInstallation$pipinstalldjango-djfilesAdddjfilesto your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...

    'djfiles',
]Applydjfilesmigrations:$./manage.pymigratedjfilesAdd urls to your project urls so you can get image by slug:urlpatterns+=url(r'^djfiles/',include('djfiles.urls'))
Package: django-djmongo
djmongo - A Django application for building APIs without codedjango-djmongo is an "API in a Box".  It provides a web-based UI for
MongoDB management and RESTful API management.If you do not have a Django project setup aslready use our sample project
with Djmongo already configured.https://github.com/videntity/djmsample.djmsample uses on Python 3.6 and Django 3.0.3.See theWikipage for installation and further documentation.
Package: django-dj-plugin
Django plgooge practice modules.DocumentationThe full documentation is athttps://django-dj-plugin.readthedocs.io.QuickstartInstall django-dj-plugin:pip install django-dj-pluginAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_dj_plugin.apps.DjangoDjPluginConfig',...)Add django-dj-plugin’s URL patterns:fromdjango_dj_pluginimporturlsasdjango_dj_plugin_urlsurlpatterns=[...url(r'^',include(django_dj_plugin_urls)),...]If you want to sort menu or hidden menu, replace ‘django.contrib.admin’ with ‘custadmin’ in yourINSTALLED_APPS:INSTALLED_APPS=(...# 'django.contrib.admin','custadmin',...)Add attribute(menu_hidden/menu_index) to your modelAdmin:fromdjango.contribimportadmin@admin.register(XXXModel)classXXXModelAdmin(admin.ModelAdmin):menu_hidden=True# True：hidden the menumenu_index=1# type is int, The lower the value, the higher the rankIf you want add self-defined menu, Add it to yourINSTALLED_APPSand execute: python manage.py migrate:INSTALLED_APPS=(...'custmenu',...)execute:pythonmanage.pymigrateFeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2020-01-22)First release on PyPI.
Package: django-djurk
(pronounced:http://en.wiktionary.org/wiki/jerk#Pronunciation)Thedjurkproject is a Django app that interfaces with and usesAmazon’s
Mechanical TurkService as a requester (http://mturk.com/). If you’re just
starting to useMechanical Turk, and want to try it out without getting bogged
down with the APIs, thiswill be(but isn’t yet) a great place to
start.Over time, you will grow your skills, learn about theBotoproject
(http://code.google.com/p/boto/) which is a python interface toMechanical
Turkand many moreAmazon Web Services(AWS). At that point, you may say
“Wait!?!  Most of this work has been done byAmazonand theBotoproject.
This is nothing but a set of wrappers and high level libraries that let me
access this data without having to go too deep.” You would be right. Until
then, “Pay no attention to that man behind the curtain.”[1]Thedjurkproject is currently in the pre-alpha stage. This means that,
until this note is changed, this project is not any more helpful than usingBototo create a few Django models, wade through the Amazon
Documentation yourself (http://aws.amazon.com/documentation/mturk/) and get
what you need done. The goal is to present this in a Django specific way so
that you as a reader can “plug and play” without getting bogged down much with
the implementation specifics. Because documentation and clear/predictable
design are the two most important factors to make this happen and “fit in your
brain,” this can always be more challenging than it seems. Until then, consider
this a pipedream (That is; bookmark it and come back later).Why make this so public if it’s little more than a few README files? Because
transparency is good. A lot can grow from a little seed like this is now.Get started with Quick Start Guide:
[https://github.com/glenjarvis/djurk/wiki/Quick-Start](https://github.com/glenjarvis/djurk/wiki/Quick-Start)[1]http://www.imdb.com/title/tt0032138/quotes
Package: django-dkim
DKIM signing is generally better left to the mailserver.
However, there are situations when you are unable to configure the SMTP server you use for sending mail.
If you still want to sign your messages with DKIM, you can do it manually, on the application level.This library provides custom e-mail backends with DKIM signing forDjango web framework.
Singing itself is provided bydkimpy library.InstallationYou can install stable version ofdjango-dkimfrom PyPi:$pipinstalldjango-dkimSettingsIn order to use this custom backends, you have to add a few configuration options into your Django settings.EMAIL_BACKEND— dotted path to custom e-mail backendDKIM_SELECTOR— string containing DKIM selectorDKIM_DOMAIN— string containing DKIM domainDKIM_PRIVATE_KEY— string containing whole private key (including the header)Note:This library is not Django application, so you don’t need to change yourINSTALLED_APPSsetting.ExampleEMAIL_BACKEND='django_dkim.backends.smtp.EmailBackend'DKIM_SELECTOR='selector'DKIM_DOMAIN='example.com'DKIM_PRIVATE_KEY='''-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDQUTvs1Rqjw6Vq2/LRnI7LzycT1gM1G4ZRMdWiLFg7y4TEPwfW
r6RgR04f56L9PxM1B6gW+gTkm30dwxNbU60u7emcqu+mYCzyVBHx9a4uhI3Ts8sy
67zIIeXarmxh+V/jqmAbdRAzRzAvjs0S74di1mwCplxYvVOEsDOj7OIEDQIDAQAB
AoGAR2rSJIuaqnI0j8IAKSSHQBAw0XgZeWeKUOPI3eReC4HmbnE9eriUnf1UJ1P+
aNvq9c8+LUJh0w4LgtySEklJoaK6rqLsdQhriHRiYThctMlzoZiLuVo6MQdACHBj
5LvjQY+PSIkpdoQumQJAwngyG0Zkg+t2u57UINn+p3zBxoECQQDuaF5HBELdbu84
08UsiG+zvuGoKEjtr4EjRZ9hdgkErooO8SXbJT+ALwJ6M6awGvkxQiPYR39kgCcG
VpB744aFAkEA37Bx33DKOpbOju2IaF4nwJ/JBmz54EvFOTl2ImP9iHM2qfZo8ueg
/iOG2vifayt5FvgTN7I7rpo3oQcI1DLR6QJBANskYmyi9Rd3zjsNJfQeYZb2gZRB
m2+n4Gtcpvk+N2HvUgYUEfkTjwAztfJAIhtEYASwSCSY6/ekeLqxvVOzu8UCQQCm
F4eWF1OxiUS6j9kXVcJCnuJPKR+o0doRkX8MLh6U8KeIL/ThV+gMjCiX8r+8fb0d
tvneAzOZg90Gbgi6NznxAkAXQz0rYjnQwRjlCyS/KUG1fek/EfJBlgiDmMtYuUpq
UPPnqkzsGyB9LqzL4aoKg1LDsbVP0hSt97SYhB9TtcgO
-----END RSA PRIVATE KEY-----'''Available e-mail backendsdjango_dkim.backends.smtp.EmailBackend— DKIM extension of Django SMTP backenddjango_dkim.backends.console.EmailBackend— DKIM extension of Django console backendContributingThis project is pretty small and self-contained, but I’m willing to add features, if they are useful.
If you have an idea, bugfix, or really anything, please createIssue on GitLab.
Don’t create GitHub issues — the GitHub repo is only a mirror of GitLab, where real development happens.
Package: django-dmcadmin
DMCAdmin is a web-based app for managing the execution of Django manage commands.Store your manage commands in a table, run async through the web and view the result.Quick startpip install django-dmcadminAdd “dmcadmin” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'dmcadmin',
]Include the dmcadmin URLconf in your project urls.py like this:url(r'^dmcadmin/', include('dmcadmin.urls')),Runpython manage.py migrateto create the dmcadmin models.Start the development server and visithttp://127.0.0.1:8000/dmcadmin/to run manage command.
Package: django-dmcm
DMCM is a Django 1.9 app which implements a content management
system where every item is a page and all the content is written
in Markdown.Quick startAdd “dmcm” to yourINSTALLED_APPSsettings.The DMCM pages are orgaised in a tree structure. A default root page
called “Root” will be created. AddSITE_ROOT_SLUGtosettings:SITE_ROOT_SLUG = 'home'  # HomepageInclude the feedreader URLconf in your project urls.py like this:url(r'^dmcm/', include('dmcm.urls', namespace='dmcm')),Runpython manage.py syncdbto create the dmcm models.Runpython manage.py collectstaticto copy static files to your
project’s static root.Visit/dmcm/on your site to see a default home page in DMCM.Visit/dmcm/dmcm/edit/to see a list of all DMCM pages and to add more.Editing in DMCM requires that Django login be enabled.DependenciesDjango 1.9.1django-braces 1.8.1factory_boy 2.6.0Markdown 2.6.5
Package: django-dms
Descriptiondjango-dms is a Django template filter for displaying decimal degrees
of angles (longitude and latitude) in the Degrees-Minutes-Seconds
notation.It contains the filterslongitudeandlatitude. They both take
a number as input and convert it into a DMS value. The filterlongitudeaccepts any number between -180 and 180, the filterlatitudeaccepts any number between -90 and 90. If the input value
is not a number or is a number outside the before mentioned ranges
respectively, then the input is displayed without any change and the
filters don’t have any effect.InstallYou can install django-dms withpip:pip install django-dmsUseTo use the filters you have to include the app in thesettings.pyof
your Django project:INSTALLED_APPS=(# other entries'django_dms',)In your templates you can use the template filters like this:{% load dms %}
{{ 38.8897|latitude }}The output will be:38° 53' 23" N