Saravanan666/pypi-org huggingface dataset:
Package: django-gmaps
This app provides template tags for easily creating Google Maps from GeoDjango models.InstallationAddGOOGLE_API_KEYto your settings.Add'gmaps'to yourINSTALLED_APPS.Usage{% load gmaps %}
<div id="mymap"></div>

{% gmap_js %} {# prints out the <script> tag calling the Google Maps API #}

{% map "mymap" object.location %}
    {% marker someobj.location %}
    {# all tags accept optional parameters that will be passed to the js constructor #}
    {% marker someobj.location "title" "'Hello, World!'" %}
    {% polygon someobj.mpoly %}
    {% polyline someobj.mpoly %}
{% endmap %}
Package: django_gmapsfield
django_gmapsfield=================Django Google Maps Field is a robust way to customize and display a Google Map in Django, and use it as a UI for selecting/displaying location information in the Django admin.Developed By Tim Branyen, Bocoup LLC for Community Planit on behalf of Engagement Game LabsFeatures--------This project is currently under development and has not yet reached a beta phase.  It should be treated and used as alpha within development environments.  Features will be addedas the host project work continues.So far several features exist:* Custom admin site field.- Specify a JSON-formatted defaults* Custom public template filter* Customizable properties:- Zoom- Width/Height- Center coordinatesSimple to use:==============Installation-------------Its simple to install - use this command to upgrade as well:#  python setup.py installOr# easy_install django_gmapsfield/settings.py------------INSTALLED_APPS = ('django.contrib.auth','django.contrib.contenttypes',...'gmapsfield', # Make sure to register this...)/urls.py--------# Note: the following approach is non-standand, while it remains functional there are many disadvantages that django 1.3# static file handling will correct.# Add this to serve correct admin js(r'^admin/gmapsfield/admin/(?P<file>.*)$', 'gmapsfield.views.serve'),# Optionally symlink this folder to your admin media path/models.py----------from gmapsfield.fields import GoogleMapsFieldfrom django.db import modelsfrom django.contrib import adminclass Test(models.Model):map = GoogleMapsField()# Can optionally specify defaults via JSON string#map2 = GoogleMapsField(default="{ coordinates: [-40, 50], zoom: 10, size: [400, 200] }")admin.site.register(Test)/views.py---------from demo.map.models import Testfrom django.template import RequestContext, loaderfrom django.http import HttpResponsedef index(request):template = loader.get_template("index.html")# Grab the first map if one exists - for purposes of exampletest = (Test.objects.all() and Test.objects.all()[0]) or { "map": { show: "No maps defined" } }return HttpResponse(template.render(RequestContext(request, {"test": test})))/template.html--------------<!-- Required to view result in a template -->{% load gmap %}<!-- Will display the actual map -->{{ test.map|show }}<!-- Includes the necessary scripts on the page, place anywhere, but only once and do not forget! -->{% gmap_includes %}Development Notes:------------------1/04/11: Updated path to serve admin.js to be called admin instead of public.
Package: django-gnd
django-gndA django package to query and store data fromLobid's GND-APIinstallpip install django-gndaddgndto INSTALLED_APPS:#  project/settings.pyINSTALLED_APPS=['django.contrib.admin','django.contrib.auth','django.contrib.contenttypes','django.contrib.sessions','django.contrib.messages','django.contrib.staticfiles','gnd','example',]featuressee the example ProjectGND/LOBID autocomplete widget
Package: django-gnupg-mails
Created byJan DittbernerIntroductiondjango-gnupg-mails provides a class gnupg_mails.message.GnuPGMessage that
extends Django’s django.core.mail.EmailMessage with the functionality to send
PGP/MIME signed emails.Documentation:http://django-gnupg-mails.readthedocs.org/Source:https://github.com/jandd/django-gnupg-mailsDependenciesgnupgis required for
signing the mailsInstallationThe easiest way to install django-gnupg-mails is directly from PyPI usingpipby running the command below:$ pip install -U django-gnupg-mailsOtherwise you can download django-gnupg-mails and install it directly from
source:$ python setup.py installUsageDefine settings.GNUPG_HOMEDIR to point to a GnuPG home directory containing a
private key with signing capabilities.Instead of using Django’s EmailMessage you can just use
gnupg_mails.message.GnuPGMessage. The class is a drop-in replacement and can
used in the same way as the original class as documented inThe Django
documentation.Similar packagesYou may want to have a look atdjango-email-extrasby Stephen McDonald for
other GnuPG related functionality. Stephen’s package allows sending PGP
encrypted mail and provides a nice email test backend.
Package: django-GNU-Terry-Pratchett
Django GNU Terry Pratchett==========================Keeping the legacy of [Sir Terry Pratchett](http://en.wikipedia.org/wiki/Terry_Pratchett) alive forever.For as long as his name is still passed along the Clacks,Death can't have him.* G: send the message on* N: do not log the message* U: turn the message around at the end of the line and send it back againwith thanks to [this reddit thread](http://www.reddit.com/r/discworld/comments/2yt9j6/gnu_terry_pratchett/)Installation------------You can install from pypi:pip install django-GNU-Terry-Pratchettor from source:git clone git@github.com:aaronbassett/django-GNU-Terry-Pratchett.gitcd django-GNU-Terry-Pratchettpython setup.py installOnce installed add the middleware to you project:MIDDLEWARE_CLASSES=(...'gnu_terry_pratchett.middleware.ClacksMiddleware',),We also provide a view decorator and a mixin for your Class-Based Views if youdon't want to have the header on every response.from gnu_terry_pratchett.decorators import clacks_overheadfrom gnu_terry_pratchett.views import ClacksMixin# function view@clacks_overheaddef my_view(request):...return my_response# CBVclass MyView(ClacksMixin, View):def get(self, request):...return my_response
Package: django-gocs
django-gocs===========================[![Build Status](https://travis-ci.org/ingrammicro/django-gocs.svg?branch=master)](https://travis-ci.org/ingrammicro/django-gocs)Google Cloud Storage file backend for DjangoIf you run your projects on Google's appengine and you are using the django framework you might need thisfile backend since there is no way to upload files, images, etc on appengine.Also downloadable files should use the memory to fully load before being stored in the bucket, because theycan't use temporary files in gae.Prerequisites-------------You need to have an appengine project. This will not work as a standalone solution for non appengine django projects, since there is no authentication mechanism with the google cloud storage implemented.### If you want to copy the files into your repository.You need to install the GCS client library fromhttps://developers.google.com/appengine/docs/python/googlecloudstorageclient/download.Just run `pip install GoogleAppEngineCloudStorageClient -t <your_app_directory/lib>`, or optionally, unzip the file and copy the `src/cloudstorage` folder into your project directory.Installation-------------```pip install django-gocs```Or Just copy the google folder in your project directoryConfiguration-------------On your django settings.py file you need to add the following settingsGOOGLE_CLOUD_STORAGE_BUCKET = '/your_bucket_name' # the name of the bucket you have created from the google cloud storage consoleGOOGLE_CLOUD_STORAGE_BUCKET_TEMP = '/your_temp_bucket_name' # bucket for temporary filesGOOGLE_CLOUD_STORAGE_URL = 'http://storage.googleapis.com/bucket' #whatever the ulr for accessing your cloud storgage bucketGOOGLE_CLOUD_STORAGE_DEFAULT_CACHE_CONTROL = 'public, max-age: 7200' # default cache control headers for your filesAnd finally declare the file storage backend you will use on your settings.py fileDEFAULT_FILE_STORAGE = 'django_gocs.GoogleCloudStorage'FILE_UPLOAD_HANDLERS = ('django.core.files.uploadhandler.MemoryFileUploadHandler','django_gocs.GoogleBlobstoreTemporaryFileUploadHandler',)
Package: django-gofastdfs-storage
django-gofastdfs-storage集成go-fastdfs作为 Django 的静态文件存储后端已发布至 pypi:https://pypi.org/project/django-gofastdfs-storage/1.0.4pip 安装pipinstalldjango-gofastdfs-storage==1.0.4settings.pySTATICFILES_STORAGE='django_gofastdfs_storage.backends.StaticStorage'DEFAULT_FILE_STORAGE='django_gofastdfs_storage.backends.MediaStorage'GOFASTDFS_ENDPOINT=''GOFASTDFS_AUTH_TOKEN=''GOFASTDFS_BUCKET_NAME='djangoadmin'
Package: django-golem
Golem is a python framework for building chatbots for Messenger and other platforms.Find out how to make your own bot on theWiki.FeaturesWhat it can do:Receive messages from Messenger (Telegram and more platforms coming soon)Extractentitiesfrom these messages usingWite.g. “Show me the best concert” ->intent:recommend,query:concertKeep track of the history of all entity values in thecontextMove between differentstatesof the conversation based on intent and other entitiesCall actions of these states and return messagesIt supports any language supported by Wit (English is recommended)What it can NOT do:It does not pre-train Wit, you have to do that yourselfIt does not use Wit stories, only entity recognitionIt’s not built for AI conversational bots (you can try though :P)
Package: django-goncord
# django-goncordDjango auth system.Tested with Django 1.10.4 and Python 3.5.## Installation guideFirst install package using pip```shpip install django-goncord```After installation register middleware and authentication backend in settings```pythonMIDDLEWARE_CLASSES = [...'django.contrib.auth.middleware.AuthenticationMiddleware','django_goncord.middleware.GoncordMiddleware',...]...AUTHENTICATION_BACKENDS = ['django.contrib.auth.backends.RemoteUserBackend',]```Then register auth system url parameters in settings```pythonGONCORD = {'BASE_URL': 'URL like http://www.my-site.ru',}```You can define your own authentication urls```pythonGONCORD = {...'VALIDATE_URL': 'SUB_URL like /validate','LOGIN_URL': 'SUB_URL like /login','LOGOUT_URL': 'SUB_URL like /logout','REGISTER_URL': 'SUB_URL like /register','UPDATE_PAYLOADS_URL': 'SUB_URL like /update','RESET_PASSWORD_URL': 'SUB_URL like /reset_password',...}```at the end specify Django **LOGIN_URL** parameterfor working with package use **login_required** decorator from **django.contrib.auth.decorators**For using special methods like **login** import **goncord** from **django_goncord.backends**## django_goncord.backends.goncord methods### login(request, data)provide request for authenticate user> require: django request object and data for submitting to remote server### logout(request)provide request for logout user> require: django request object### validate(request)provide token validation for user on remote server> require: django request object### register(data)provide user registration request> require: data for submitting to remote server### reset_password(request, data)provide password reset for authenticated user> require: django request object and data for submitting to remote serverall methods return response result from remote server
Package: django-goodforms
Good forms for DjangoGoodForms— rails-like renderer for your form fields. Provide fully control of filed styles and attributes. It’s not replacement fordjango.forms.InstallationRunpip installdjango-goodformsand addgoodformstoINSTALLED_APPS. That’s all.UsageThe view:from django.shortcuts import render
from django import forms

class LoginForm(forms.Form):
    username = forms.CharField()
    password = forms.PasswordField()

def sign_up(request):
    from = MyForm(initial={'username': 'johnsmith'})
    return render(request, 'index.html', {'form': form})The template:{% load form_fields %}

{% form name="login" class="login-form" %}
    {% textfield form.username class="login-form_input" %}
    {% textfield form.password class="login-form_input" %}
    {% submit_button "Login" %}
{% endform %}ControlsForm tagForm tag automatically inject csrf-token.Fields usenameattribute as prefix foridandforin labels.{% form name="myform" %}
    <!-- Form content -->
{% endform %}Textfield and Textarea{% textfield form.title **kwargs %}
{% textarea form.description **kwargs %}Select{% select form.country values="ru:Russia,de:Germany" %}You can use any dict, iterable collection or queryset as values list:{% select form.county values=any_iterable_object value_key="code" label_key="title" %}Checkbox and radio-button{% radio form.gender value="female" %}
{% radio form.gender value="male" %}Thelabelattribute wraps checkbox to<label>tag. All attributes provite to it:{% checkbox form.agree label="I agree" style="font-weight: bold;" %}

<label style="font-weight: bold;">
    <input type="checkbox" name="agree" value="1"> <span>I agree</span>
</label>Submit button{% submit_button "Send message" %}
{% submit_button "Save as draft" name="is_draft" value=True %}TipsYou can use any of field without a form class:{% input "username" required=True %}
{% select "city" values="1:New York, 2:London" %}SettignsGOODFORMS_XHTML— Enable or disable XHTML syntax (default:False)GOODFORMS_AUTO_ID— Automatically generateidandforattributes for fields and labels (default:True)GOODFORMS_ID_PREFIX— Prefix for auto-generatedidandforattributes. For forms withoutnameattribute (default:field)LicenseLicensed under the MIT license.
Package: django-goodgrids
django-goodgridsDjango API for creating Excel files from CSV using theweb-based GoodGrids API.About GoodGridsGoodGridsis a service for creating Excel files from CSV files programmatically. You upload an example Excel file to serve as a template. You can then use the GoodGrids API to create Excel files from CSV files based on this template. You can style cells, include formulas, and avoid all the issues that plague CSV files.Using GoodGrids with class-based viewsLet's assume your Django application already has a class-based viewDownloadDataCSVViewthat returns a CSV file for your users to download. To create a view that let's your users download Excel files, use the following snippet:fromdjango_goodgrids.viewsimportDownloadDataAsExcelViewclassDownloadDataAsExcelView(GoodGridsExcelExportViewMixin,DownloadDataCSVView):goodgrids_api_url='https://goodgrids.com/create-excel-file/3a6c0d9ac7c74d'excel_file_name='data.xlsx'Make sure to setgoodgrids_api_urlto your actual API URL.You can then include this in yoururls.py:url(r'^download-data-as-excel-file/?$',views.DownloadDataAsExcelView.as_view(),name='download_data_as_excel_file'),Using Goodgrids with function-based viewsLet's assume your Django application already has a function-based view nameddownload_data_as_csv_viewthat returns a CSV file for your users to download. To create a view that let's your users download Excel files, use the following snippet:fromdjango_goodgrids.viewsimportcreate_goodgrids_excel_export_viewdownload_data_as_excel_view=create_goodgrids_excel_export_view(csv_export_view=download_data_as_csv_view,goodgrids_api_url='https://goodgrids.com/create-excel-file/3a6c0d9ac7c74d',excel_file_name='data.xlsx',)Make sure to setgoodgrids_api_urlto your actual API URL.You can then include this in yoururls.py:url(r'^download-data-as-excel-file/?$',views.download_data_as_excel_view,name='download_data_as_excel_file'),
Package: django-good-practice-examples
An app for managing and displaying good practice examples for different
purposes.PrerequisitesYou will need to have the following packages installed:django-cms (cms 3 beta tested)InstallationIf you want to install the latest stable release from PyPi:$ pip install django-good-practice-examplesIf you feel adventurous and want to install the latest commit from GitHub:$ pip install -e git://github.com/bitmazk/django-good-practice-examples.git#egg=good_practice_examplesAddgood_practice_examplesto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'good_practice_examples',
)Run the South migrations:./manage.py migrate good_practice_examplesHook this app into yoururls.py:urlpatterns = patterns('',
    ...
    url(r'^goodpractices/', include('good_practice_examples.urls')),
)UsageTODO: Describe usageRoadmapCheck the issue tracker on github for milestones and features to come.
Package: django-googl
# django-googl[![PyPi version](https://pypip.in/v/django-googl/badge.png)](https://crate.io/packages/django-googl/)[![PyPi downloads](https://pypip.in/d/django-googl/badge.png)](https://crate.io/packages/django-googl/)Django short url on goo.glhttp://pypi.python.org/pypi/django-googl# Installationpip install django-googl# UsageAdd **googl** to your *INSTALLED_APPS*Load **googl** in your template:{% load googl %}And use **googl** filter:{{ "http://google.com"|googl }}Use **googl** in backend:from googl.short import GooglUrlShortGooglUrlShort("http://avelino.us/").short()
Package: django-google-address
Address model backed by Google Maps API for your project.Getting StartedInstallingInstall django-google-address:pip install django-google-addressAdd it toINSTALLED_APPSonsettings.py:INSTALLED_APPS = [
  ...,
  'google_address'
]Migrate:./manage.py migrateUsingCreate an Address object with the raw address. Requests will be made to the Google API when saving the address:>>> from google_address.models import Address
>>> a = Address(raw="Av. Paulista, 1000")
>>> a.save()
>>> a.address_line
'Avenida Paulista, 1000, Bela Vista, São Paulo, SP, Brazil'DocumentationYou can check the complete documentationhere.TestingTo test this modulepython google_address/tests/runtests.pyVersioningWe useSemVerfor versioning. For the versions available, see thetags on this repository.LicenseThis project is licensed under the MIT License. See theLICENSE.mdfile for details.
Package: django_google_analytics
Django Google Analytics=======================Django template tag app for inserting google analytic code on a persite basis.Copyright (C) 2011 Benjamin WilburLicense-------This program is free software: you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation, either version 3 of the License, or(at your option) any later version.This program is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See theGNU General Public License for more details.You should have received a copy of the GNU General Public Licensealong with this program.  If not, see <http://www.gnu.org/licenses/>.* This codes underlying structure is largely based off Django'sdocumentation at the following url.http://docs.djangoproject.com/en/dev/howto/custom-template-tags/Installation------------1. `pip install django_google_analytics`1. Ensure you have sites configured. https://docs.djangoproject.com/en/1.8/ref/contrib/sites/#enabling-the-sites-framework1. add `analytics` to your `INSTALLED_APPS`1. `python manage.py migrate`1. In the django admin interface visit the "Sites"page and add your google web property id for the site youwish to track.1. Add the following to your desired templates.`{% load analytics %}`1. at the very bottom of your head section add this`{% analytics %}`1. if you want to avoid counting logged in user visitssurround the above line with the following`{% if not user.is_staff %}``{% endif %}`1. Go to your google analytics control panel and refreshfrantically to see if it is working
Package: django-google-analytics-app
Django Google Analytics brings the power of server side/non-js Google Analytics to your Django projectsContentsInstallationUsage1. HTML tag2. Middleware + CeleryInstallationInstalldjango-google-analytics-appfrom PyPI or add to your Python path some other way.Addgoogle_analyticsto yourINSTALLED_APPSsetting.Add URL include to your project’surls.pyfile:re_path('djga/', include('google_analytics.urls')),Specify a Google Analyticstracking code, i.e.:GOOGLE_ANALYTICS = {
    'google_analytics_id': 'UA-000000-2',
}whereUA-000000-2is your unique tracking code.If you intend tracking through middleware and Celery remember toinstall Celery and run its worker process.UsageThere are two ways to add tracking to your pages.1. HTML tagUsing<img/>and sticking it in yourbase.html:{% load google_analytics_tags %}
<div style="display:none">
    <img src="{% google_analytics %}" width="0" height="0" />
</div>2. Middleware + CeleryUsing Django’s middleware, you can process every request and use Celery to make the request to Google Analytics:MIDDLEWARE = [
    'google_analytics.middleware.GoogleAnalyticsMiddleware',
]You have to addgoogle_analyticsto yourCELERY_IMPORTS:CELERY_IMPORTS = ('google_analytics.tasks')You can also specify paths that will be excluded when tracking:GOOGLE_ANALYTICS_IGNORE_PATH = ['/health/', ]
Package: django-google-analytics-id
Google analytics for djangoThis an installable django application to add your Google analytics code to your website template(s).
It is compatible with Django 1.8, 1.9 and 1.10.Python 2.7 and python 3.5 are supported.Installationpip install django-google-analytics-idaddanalyticsto INSTALLED_APPSUsageLoad template tag {% load analytics_tags %}Add {% google_analytics ‘UA-123-1’ %} to your base template (in <HEAD> section).You can also pass the name of an option from setting.GOOGLE_ANALYTICS_ID = ‘UA-123-1’
{% google_analytics ‘GOOGLE_ANALYTICS_ID’ %}if no parameter is provided, settings.GOOGLE_ANALYTICS_ID as default valueOptionsDISABLE_GOOGLE_ANALYTICS, bool
If true, {% google_analytics %} will return empty string. Can be used to enable google analytics in development
and/or qa environmentsBugs and requestsIf you have found a bug or if you have a request for additional functionality, please use the issue tracker on GitHub.https://github.com/Baguage/django-google-analytics-id/issues