Saravanan666/pypi-org huggingface dataset:
Package: django-googlemap
django-googlemap is a simple Django app to show the google map from ip addresses.Detailed documentation is in the “docs” directory.Quick startInstall django-googlemap:pip install django-googlemapAdd “django-googlemap” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'googlemap',
)Add urls.py:urlpatterns = patterns('',
    ...
    url(r'^googlemap/', include('googlemap.urls')),
)In your template html:{% load gmap_tags %}

<!--
    <ip_list> is a list of ip addresses
    <width> default is auto
    <height> default is 400px
    <show_input> default if false
  -->
{% ip_on_map <ip_List> <width> <height> True %}Settings(optional):# Download maxmind free geo database from http://dev.maxmind.com/geoip/legacy/geolite/

MAXMIND_CITY_DB_PATH = 'Your data file path'
Package: django-google-maps
django-google-mapsis a simple application that provides the basic
hooks into google maps V3 api for use in Django models from Django
version 1.11+.Starting withdjango-google-mapsversion (0.7.0), Django 1.11+ is
required because Django changed their widget template rendering system.
Version 0.8.0 supports Django 2.0+, and as such removes support for
Python 2.7I’m using this to allow someone from the admin panels to type a freeform
address, have the address geocoded on change and plotted on the map. If
the location is not 100% correct, the user can drag the marker to the
correct spot and the geo coordinates will update.StatusUSAGE:include thedjango_google_mapsapp in yoursettings.pyAdd your Google Maps API Key in yoursettings.pyasGOOGLE_MAPS_API_KEYcreate a model that has both an address field and geolocation fieldfromdjango.dbimportmodelsfromdjango_google_mapsimportfieldsasmap_fieldsclassRental(models.Model):address=map_fields.AddressField(max_length=200)geolocation=map_fields.GeoLocationField(max_length=100)in theadmin.pyinclude the following as a formfield_overridefromdjango.contribimportadminfromdjango_google_mapsimportwidgetsasmap_widgetsfromdjango_google_mapsimportfieldsasmap_fieldsclassRentalAdmin(admin.ModelAdmin):formfield_overrides={map_fields.AddressField:{'widget':map_widgets.GoogleMapsAddressWidget},}To change the map type (hybridby default), you can add an html
attribute on theAddressFieldwidget. The list of allowed values
is:hybrid,roadmap,satellite,terrainfromdjango.contribimportadminfromdjango_google_mapsimportwidgetsasmap_widgetsfromdjango_google_mapsimportfieldsasmap_fieldsclassRentalAdmin(admin.ModelAdmin):formfield_overrides={map_fields.AddressField:{'widget':map_widgets.GoogleMapsAddressWidget(attrs={'data-map-type':'roadmap'})},}To change the autocomplete options, you can add an html attribute on
theAddressFieldwidget. Seehttps://developers.google.com/maps/documentation/javascript/places-autocomplete#add_autocompletefor a list of available optionsimportjsonfromdjango.contribimportadminfromdjango_google_mapsimportwidgetsasmap_widgetsfromdjango_google_mapsimportfieldsasmap_fieldsclassRentalAdmin(admin.ModelAdmin):formfield_overrides={map_fields.AddressField:{‘widget’:map_widgets.GoogleMapsAddressWidget(attrs={‘data-autocomplete-options’:json.dumps({‘types’:[‘geocode’,‘establishment’],‘componentRestrictions’:{'country':'us'}})})},}That should be all you need to get started.I also like to make the geolocation field readonly in the admin so a user
(myself) doesn’t accidentally change it to a nonsensical value. There is
validation on the field so you can’t enter an incorrect value, but you could
enter something that is not even close to the address you intended.When you’re displaying the address back to the user, just request the map
using the geocoordinates that were saved in your model. Maybe sometime when
I get around to it I’ll see if I can create a method that will build that
into the model.
Package: django-googlemap-widget
django-googlemap-widgetis a library for using googlemap on Django app.Seehttp://demos.django-googlemap.hashnote.net/for Demo.Installsudo pip install django-googlemap-widgetor:sudo pip install git+git://github.com/lambdalisue/django-googlemap-widget.git#egg=django-googlemap-widgetSeehttps://github.com/lambdalisue/django-googlemap-widget/tree/master/googlemap_testfor usage.
Package: django-google-oauth-rest
This project help with Google Authentication flow when you prefer API
approach. It uses existing User model in your database and no other
tables are created. It also lets you modify parameters based on your
business logic and current authentication flow.Quick StartAdd “google_auth” to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'google_auth',]Add “email” field to your user table if it doesn’t already exist.(OPTIONAL) To have user retrieved info saved in your add these fields
to your user table:given_namefamily_nameAdd a new url to your projects url.py like this:re_path('auth/url',views.AuthURL.as_view(),name="auth_url")Create a new view which is a subclass of ‘AuthCallback’ like
this:classCallbackView(AuthCallback):defget(self,request):user=super(CallbackView,self).get(request)# create new token and authenticate user. Return token and required parameters here``Add another new url to your projects url.py like this:re_path('auth/calback',views.CallbackView.as_view(),name="auth_calback_url")Configuration parameterAUTH_USER_MODEL: Authentication user table in your modelsCLIENT_ID: Retrieved from Google consoleCLIENT_SECRET: Retrieved from Google consoleREDIRECT_URI: Redirect url same as redirect url in google console
(Usually it should route to your front-end url)VALIDATE_STATE: (OPTIONAL) state is a server side generated security
feature suggested by google. It will be saved in session. default
value it True. If set to False it will bypass this security check.SET_REGISTER_USER_FIELD: (OPTIONAL) If you want to set some value in
User table after login/register process is successful, you can set it
here. In example below, we set user verified field to True when
login/register process is successful:SET_REGISTER_USER_FIELD={"verified":True}USER_INFO_REQUEST_URI: (OPTIONAL) Google verification url. Should be
fine with default value.URLs FlowFirst call ‘auth/url’ by POST(Empty body) or GET Method.GET method will return generated URL in JSON response. Your front
end should redirect to this URL.POST method will return 302 status code with redirect url.After redirecting to received URL from step 1, user can verify from
Google. If verification is successful Google will call your
redirect_uri.when redirect_uri is called your frontend should call the Callback
url you already created (step 6 in Quick start).IMPORTANT: You must add all query params received from Google in
this step to ‘auth/callback’ as query params.
Package: django-google-optimize
Django-google-optimizeDjango-google-optimize is a Django application designed to make running Google Optimize A/B tests easy.Here is a tutorial on the Google Optimize basics and how to use this Django application.InstallationInstall django-google-optimize with pip:pip install django-google-optimizeAdd the application to installed Django applications:# settings.pyINSTALLED_APPS=[..."django_google_optimize",...]Add the middleware:MIDDLEWARE=[..."django_google_optimize.middleware.google_optimize",...]Getting startedHead over to the Django admin and add a new Google Optimize experiment. Add an experiment variant with the index 1 and the alias "new_design". Set the experiment cookie's active variant index to 1. Now the active variant index for that experiment is 1 which is the experiment variant with the alias "new_design" that you created.Now you can access the experiment in templates by the experiment alias and the variant alias:{%ifrequest.google_optimize.redesign=="new_design"%}{%include"jobs/jobposting_list_new.html"%}{%else%}{%include"jobs/jobposting_list_old.html"%}{%endif%}Or use it inline:<nav class="navbar navbar-expand-lg navbar-dark{%ifrequest.google_optimize.redesign=="new_design"%}navbar-redesign{%endif%}">Note: The experiment cookie only works in DEBUG mode and is used to avoid interacting with the session to add the_gaexpcookie making it possible to test the experiment variants through the Django admin.Full documentationcan be found here.Documentation and SupportMore documentation can be found in the docs directory or readonline. Open a Github issue for support.
Package: django-googleplay-api
Django-GooglePlay-API=====================.. image:: https://api.travis-ci.org/gotlium/django-googleplay-api.png?branch=master:alt: Build Status:target: https://travis-ci.org/gotlium/django-googleplay-api.. image:: https://coveralls.io/repos/gotlium/django-googleplay-api/badge.png?branch=master:target: https://coveralls.io/r/gotlium/django-googleplay-api?branch=master.. image:: https://pypip.in/v/django-googleplay-api/badge.png:alt: Current version on PyPi:target: https://crate.io/packages/django-googleplay-api/.. image:: https://pypip.in/d/django-googleplay-api/badge.png:alt: Downloads from PyPi:target: https://crate.io/packages/django-googleplay-api/With this package, you can configure device id and proxy params,for google play api. Also you can change google account, and link devicewith new or existing account.This reusable app give you capabilities to search, download and etc.Installation:-------------1. Package:.. code-block:: bash$ git clone https://github.com/gotlium/django-googleplay-api.git$ cd django-googleplay-api && sudo python setup.py install**OR**.. code-block:: bash$  sudo pip install django-googleplay-api2. Add the ``djgpa`` and ``preferences`` applications to ``INSTALLED_APPS``in your settings file (usually ``settings.py``)3. Sync database (``./manage.py syncdb``)Usage example:--------------1. Setup Google Account, DeviceID, Proxy settings on admin panel2. Try to use it from shell (``./manage.py shell``):.. code-block:: python>>> from djgpa.api import GooglePlay>>>>>> api = GooglePlay().auth()>>> # Search apps>>> for row in api.search('google'):...     print row.title>>> # App details>>> details = api.details('com.android.chrome')>>> print details.docV2.title, details.docV2.creator>>> # Download app>>> api.download('com.google.android.apps.docs', '~/Download/chrome.apk')Compatibility:-------------* Python: 2.6, 2.7* Django: 1.3.x, 1.4.x, 1.5.x, 1.6.. image:: https://d2weczhvl823v0.cloudfront.net/gotlium/django-googleplay-api/trend.png:alt: Bitdeli badge:target: https://bitdeli.com/free
Package: django-googlesearch
Django Google SearchDjango Google custom search engine app.Provides a simple tag rendering a Google Custom Search Engine input field and a view displaying search results.
The product is an implementation ofhttp://www.google.com/cse/docs/cref.html. The custom search engine definition
is stored on your site, not by Google. This allows you to define a search engine in version controlled code.ContentsDjango Google SearchInstallationUsageAuthorsChangelog0.20.1.20.10.0.60.0.5InstallationInstall or adddjango-googlesearchto your Python path.Addgooglesearchto yourINSTALLED_APPSsetting.Add googlesearch url include to your project’surls.pyfile:(r'^search/', include('googlesearch.urls')),Optionally add"django.core.context_processors.request",to yourTEMPLATE_CONTEXT_PROCESSORSsetting, i.e.:TEMPLATE_CONTEXT_PROCESSORS = (
    "django.core.context_processors.request",
    ...other processors...
)We need arequestobject when rendering the search input field and results to be able to display the search query value. This is optional and is not required for operation but is highly recommended.UsageOnce installed you can add a Google search box to your templates by using thegooglesearch_formtemplate tag, i.e.:{% load googlesearch_inclusion_tags %}

...some html...

{% googlesearch_form %}

...some more html...By default search results are displayed through the view with URL namedgooglesearch-results, as defined ingooglesearch.urls.
You can create your own URL namedgooglesearch-resultsand include thegooglesearch_resultstemplate tag in its template to display results, i.e.:{% load googlesearch_inclusion_tags %}

...some html...

{% googlesearch_results %}

...some more html...AuthorsPraekelt FoundationShaun SephtonHedley RoosChangelog0.2Django 1.6 compatibility.0.1.2Refer to correct template tag in help text. Thanks grafyte.0.1Refactor to use a linked custom search engine as described athttp://www.google.com/cse/docs/cref.html.0.0.6Packaging and test setup cleanup.0.0.5Refactor to not use django-preferences.Documentation.
Package: django-google-sheets
django-google-sheetsessa biblioteca foi feito para uso proprio mas estÃ¡ sendo disponibilizado em varios projetos
devido a isso nÃ£o existe uma documentaÃ§Ã£oEssa biblioteca Ã© utilizada para alimentar benÃ§Ã£o de dados entre vÃ¡rios programadores entre si sem ter conteÃºdo repetindo ou faltandoO funcionamento Ã© simples a cada post feito ele Ã© adicionado uma cÃ³pia no Google sheets mas antes de adicionar
Os posts sÃ£o restaurados vendo se nÃ£o existe repetido e apÃ³s isso o prÃ³prio Django verifica se nÃ£o Ã© um post repetido de acordo com as suas caracterÃ­sticas Ãºnicasa
ApÃ³s a confirmaÃ§Ã£o o banco de dados no Google sheets Ã© pagado em preenchimento com todos os dados do seu db assim podendo trabalhar em conjuntoExemplo:from googlesheets import google_sheets

class sb(models.Model):
    sbm = models.CharField(max_length=200)

    def __str__(self):
        return self.sbm

    def save(self, *args, **kwargs):
        google_sheets.add(self)
        super().save(*args, **kwargs)
        google_sheets.enviar(self)
        return self

    def delete(self, *args, **kwargs):
        google_sheets.delete(self)
        super().delete(*args, **kwargs)

    def restaurar():
        return google_sheets.restaurar(__class__.__name__)Os principais comandos sÃ£o os de
Adicionar ou atualizar os posts devem ser adicionado dentro do "def save(self, *args, **kwargs):"
O google_sheets.add(self) vai verificar se o posto Ã© novo ou uma alteraÃ§Ã£o
O google_sheets.enviar(self) vai enviar o postApagar um post
O google_sheets.delete(self) vai apagar o postpara funcionar deve conter a variavel "SHEETS_KEY" com o ID de sua tabela e um arquivo "service_account.json" na raiz do seu projeto
o service_account.json Ã© uma autorizaÃ§Ã£o retirada do site do google para poder alterar a tabela exemplo de como Ã© o service_account.json{
  "type": "service_account",
  "project_id": "",
  "private_key_id": "",
  "private_key": "",
  "client_email": "",
  "client_id": "",
  "auth_uri": "",
  "token_uri": "",
  "auth_provider_x509_cert_url": "",
  "client_x509_cert_url": ""
}
Package: django-google-sso
Easily integrate Google Authentication into your Django projectsWelcome to Django Google SSOThis library aims to simplify the process of authenticating users with Google in Django Admin pages,
inspired by libraries likedjango_microsoft_authanddjango-admin-ssoDocumentationDocs:https://megalus.github.io/django-google-sso/Install$pipinstalldjango-google-ssoConfigureAdd the following to yoursettings.pyINSTALLED_APPS:# settings.pyINSTALLED_APPS=[# other django apps"django.contrib.messages",# Need for Auth messages"django_google_sso",# Add django_google_sso]InGoogle ConsoleatApi -> Credentials, retrieve your
Project Credentials and add them in yoursettings.py:# settings.pyGOOGLE_SSO_CLIENT_ID="your client id here"GOOGLE_SSO_PROJECT_ID="your project id here"GOOGLE_SSO_CLIENT_SECRET="your client secret here"Add the callback urihttp://localhost:8000/google_sso/callback/in your Google Console, on the "Authorized Redirect
URL".Let Django Google SSO auto create users for allowable domains:# settings.pyGOOGLE_SSO_ALLOWABLE_DOMAINS=["example.com"]Inurls.pyplease add theDjango-Google-SSOviews:# urls.pyfromdjango.urlsimportinclude,pathurlpatterns=[# other urlpatterns...path("google_sso/",include("django_google_sso.urls",namespace="django_google_sso")),]And run migrations:$pythonmanage.pymigrateThat's it. Start django on port 8000 and open your browser inhttp://localhost:8000/admin/loginand you should see the
Google SSO button.LicenseThis project is licensed under the terms of the MIT license.
Package: django-google-storage
=====================django-google-storage=====================It' just a compilation of django-storages and boto to improve youabilities to use Google Storage. It's easy and fast.Install=======1. pip install django-google-storage2. add 'django-google-storage' to your INSTALLED_APPS3. put 'django-google-storage.storage.GoogleStorage' in DEFAULT_FILE_STORAGE.It's in settings.py too.4. add GS_ACCESS_KEY_ID, GS_SECRET_ACCESS_KEY and GS_STORAGE_BUCKET_NAMEto your settings.py5. ....6. PROFITTODO====* custom exceptions* testing
Package: django-google-tag-manager
Template tag to install your Google Tag Manager account in your
templates (http://www.google.com/tagmanager/)## Installation and Usagerunpip install django-google-tag-manageradd‘gtm’to yourINSTALLED_APPSsetting.setGOOGLE_TAG_IDto your Google Tag Container Id. It
should look something likeGTM_XXXXXXIn your templates (probably in your base template) you{% load
gtm_tags %}and then add{% gtm_head %}to your<head>and
add{% gtm_body %}just below your<body>opening tag.ProfitThat’s it for the most part. If for any reason you want to override
the templates used to render the tags, they are calledgtm/gtm_head.htmlandgtm/gtm_body.html.Optionally, you can pass the google tag id as a parameter to the
templatetag like this:{% gtm_head “GTM-ABC123” %}and{% gtm_body “GTM-ABC123” %}For backwards compatibility you can still use the single{% gtm %}tag just below your<body>opening tag. This will output both the
head and body code.
Package: django-google-tools
Django app for managing Google Analytics and Site Verification codes.InstallationIn your virtualenv just type:$ pip install django-google-toolsConfigurationIn Django 1.6 the sites framework is disabled by default, for enable the sites
framework in Django 1.6 follow the steps 1, 2 and 3:Add ‘django.contrib.sites’ to your INSTALLED_APPS setting.Define a SITE_ID setting:SITE_ID = 1Run in your shell:$ ./manage.py syncdbAddgoogletoolsto yourINSTALLED_APPS:INSTALLED_APPS = (
    'django.contrib.admin',
    'django.contrib.auth',
    'django.contrib.contenttypes',
    'django.contrib.sessions',
    'django.contrib.sites',
    ...
    'googletools',
    ...
)Run in your shell:$ ./manage.py syncdbOr if you are usingSouth:$ ./manage.py migrateIf you have in your settingsDEBUG=Truegoogletools will not render anything
because this library is inteded mostly to use on production sites, if you want to
change this behavior you can setGOOGLETOOLS_ENABLED=Truein your settings
file. Just for clarification it is defined like this:GOOGLETOOLS_ENABLED = not DEBUGThis means, by default googletools will be enabled whenDEBUG=False.ManagementGo to the admin interface. When correctly installed, you will find theGoogletoolsapp. There you can manage your Google Analytics and Site Verification
codes.TemplatetagsIn order to use the googletools in your templates you’ll have to load the templatetags.{% load googletools %}Use{% analytics_code %}for inserting your Analytics code.Use{% site_verification_code %}for inserting your site verification code.Templatetags will return an empty string if they are not configured for the current site.The template should look like:{% load googletools %}
<html>
    <head>
        <meta charset="utf-8">
        ...
        <meta name="description" content="..." />
        {% site_verification_code %}

        <link rel="stylesheet" href="/static/css/style.min.css">

        {% analytics_code %}
    </head>
    <body>
        <h1>My awesome project</h1>
        ...
    </body>
</html>
Package: django-google-translate
Google Translate provides easy way to add google translate plugin in your django templates.
If your project needs to have multiple languages and if you dont want to manage .po files then you can add this package to make your website available in multiple languages easily without any hassle.SimpleVerticalHorizontalQuick startDownload the package:pip install django-google-translateAdd “google_translate” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'google_translate',
]Load the translate tag in your template (ideally on base.html):{% load google_translate %}Add following template tag wherever you want to show translate button:{% google_translate %}You can also pass type and default language in the translate button type in the inclusion tag (OPTIONAL):{% google_translate type='vertical' language='en' %}Available values for the type are “horizontal”, “vertical” and “simple” (default) and for language you can pass any ISO language code
Package: django-google-urchin
Django Google Analytics=======================Django Google Analytics provides a template tag for inserting the tracking code to provide [Google Analytics](http://www.google.com/analytics/) data.Installation------------Run `pip install django-google-analytics`Add `google_analytics` to your `INSTALLED_APPS` setting:```pythonINSTALLED_APPS = (...'google_analytics',)```Template Tags-------------###google_analyticsInserts the Google Analytics' tracking code in your template. Takes the tracking code as an argument.```html{% load analytics %}<html><head><title>My Site</title></head><body><h1>My Site</h1><p>My site's content.</p>{% google_analytics 'UA-XXXXXXX-XX' %}</body></html>```
Package: django-googlytics
Google + Analytics = GooglyticsApplication to use the google analytics tracking snippet in a Django project.There are a couple of other apps like this one, but I wasn’t fully satisfied so I’ve implemented googlytics on top of the ideas expressed in thisStackOverflow
Q&A.Features:Ability to turn off googlytics in development.Ability to turn off googlytics for (logged-in) admin users.Tests.Simplicity.Documentation.Project Page.
Package: django-goto-url
Wraps external links in base64 and relocate on the special View, later redirect to source URLpip install django-goto-urlFor more details see:http://github.com/adw0rd/django-goto-url- the GitHub repositoryhttp://pypi.python.org/pypi/django-goto-url- the PyPI pageSettings:Add tosettings.py:INSTALLED_APPS = (
    'goto_url',
)Add tourl.py:urlpatterns = patterns('',
    url(r'', include('goto_url.urls')),
)Usage:The templates can be used as follows:{% load goto_url %}
{% goto_url comment.user_url %}
{% goto_url "http://adw0rd.com/" %}Not in the templates can be used as follows:from goto_url.utils import goto_url

goto_url('http://adw0rd.com/')
>>> '/goto/aHR0cDovL2FkdzByZC5jb20v'
Package: django-gotuskra
[![Build Status](https://secure.travis-ci.org/StefanKjartansson/django-gotuskra.png?branch=master)](http://travis-ci.org/StefanKjartansson/django-gotuskra)Django Gotuskrais a pluggable application for theDjango Web Frameworkproviding Icelandic post codes and street names. Downloads and bootstraps
the database tables using csv files from the Icelandic post office.Project pagehttps://github.com/StefanKjartansson/django-gotuskraInstalling & SetupDjango Gotuskrais in thePython Package Index (PyPI)and you can easily install
the latest stable version of it using the toolspiporeasy_install. Try:pip install django-gotuskraor:easy_install django-gotuskraAlternatively, you can installDjango Gotuskrafrom source code running the follow
command on directory that contains the filesetup.py:python setup.py installAfter installation you need configure your project to recognize the application
by adding'djgotuskra'to yourINSTALLED_APPSsetting and running syncdb.