Saravanan666/pypi-org huggingface dataset:
Package: django-soap
Your project description goes hereDocumentationThe full documentation is athttps://django-soap.readthedocs.io.QuickstartInstall Django SOAP:pip install django-soapAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_soap.apps.DjangoSoapConfig',...)Add Django SOAP’s URL patterns:fromdjango_soapimporturlsasdjango_soap_urlsurlpatterns=[...url(r'^',include(django_soap_urls)),...]FeaturesTODORunning TestsDoes the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxDevelopment commandspip install -r requirements_dev.txt
invoke -lCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.0 (2021-08-12)First release on PyPI.
Package: django-soap-server
The goal of this projecct is to provide an example of best practices on how to
write a SOAP 1.1 compliant server using Django.Why using django? Well, while I would reallynotrecommend using django for a
pure SOAP webserver (many other solutions would seem far more appropriate),
this project would certainly come in quite handty to people who built a django
website, but want to expose some of its functionality to the world.REST is all the rage theses days, but you might need this to interface with
legacy products, for example.
Package: django-social-api
Django Social API====================[![PyPI version](https://badge.fury.io/py/django-vkontakte-api.png)](http://badge.fury.io/py/django-vkontakte-api) [![Build Status](https://travis-ci.org/ramusus/django-vkontakte-api.png?branch=master)](https://travis-ci.org/ramusus/django-vkontakte-api) [![Coverage Status](https://coveralls.io/repos/ramusus/django-vkontakte-api/badge.png?branch=master)](https://coveralls.io/r/ramusus/django-vkontakte-api)Django social networks API abstraction layer. Application allows to use family of social network API applications, such as:* (django-facebook-api)[https://github.com/ramusus/django-facebook-api]* (django-instagram-api)[https://github.com/ramusus/django-instagram-api]* (django-twitter-api)[https://github.com/ramusus/django-twitter-api]* (django-vkontakte-api)[https://github.com/ramusus/django-vkontakte-api]* (django-odniklassniki-api)[https://github.com/ramusus/django-odniklassniki-api]This application provides access tokens from different storages.# SettingsContext of API calls. You can provide static tokens here in format {'facebook': {'token': '...'}}SOCIAL_API_CALL_CONTEXT = {}You can temporary override this settings using context manager `override_api_context`:from social_api.api import override_api_contextwith override_api_context('facebook', context_key=context_value):api.call(..)Available storages, you can add your own storages inherited from social_api.storages.base.TokensStorageAbstractBaseSOCIAL_API_TOKENS_STORAGES = {'social_api.storages.oauthtokens.OAuthTokensStorage','social_api.storages.social_auth.SocialAuthTokensStorage',}# Storages## Python Social Auth(python-social-auth)[https://github.com/omab/python-social-auth] is an easy-to-setup social authentication/registrationmechanism with support for several frameworks and auth providers. Crafted using base code from django-social-auth,it implements a common interface to define new authentication providers from third parties, and to bring support formore frameworks and ORMs.Mapping settings between provider codes {'social_api': 'social_auth'}SOCIAL_API_SOCIAL_AUTH_PROVIDERS_MAP = {'vkontakte': 'vk-oauth2','instagram': 'instagram','facebook': 'facebook','odnoklassniki': 'odnoklassniki-oauth2','twitter': 'twitter',}If you want to make a API call by exact user, use `override_api_context` with `social_auth_user` argument:from social_api.api import override_api_contextwith override_api_context('facebook', social_auth_user=user):api.call(..)## Django Oauth Tokens(django-oauth-tokens)[https://github.com/ramusus/django-oauth-tokens] is application to make silent oauthauthentication from bunch of user credentials and collect access tokens. All user credentials could be stored insettings or database and for each of them application request access token via Oauth mechanism. It's allowed to tagany of user credentials.If you want to make a API call with access token of tagged user credentials, use `override_api_context` with`oauth_tokens_tag` argument:from social_api.api import override_api_contextwith override_api_context('facebook', oauth_tokens_tag='tag'):api.call(..)
Package: django-social-auth3
Django Social Auth is an easy way to setup social authentication/authorization
mechanism for Django projects.Crafted using base code fromdjango-twitter-oauthanddjango-openid-auth,
it implements a common interface to define new authentication providers from
third parties.You can view this app’s documentation onRead the Docstoo.Table of ContentsFeaturesDemoContactDocumentationDependenciesInstallationCopyrights and LicenceFeaturesThis application provides user registration and login using social site
credentials. Some features are:Registration and login with social sites using the following providers
at the moment:Google OpenIDGoogle OAuthGoogle OAuth2Yahoo OpenIDOpenIdlikemyOpenIDTwitter OAuthFacebook OAuthSome contributions added support for:DISQUS OAuthLiveJournal OpenIDOrkut OAuthLinkedin OAuthFoursquare OAuth2GitHub OAuthDropbox OAuthFlickr OAuthVkontakte OAuthMSN Live Connect OAuth2Skyrock OAuthYahoo OAuthEvernote OAuthMail.ru OAuthOdnoklassniki OAuthMixcloud OAuth2BitBucket OAuthDouban OAuthFitbit OAuthInstagram OAuth2TwilioWeibo OAuth2Yandex OpenIdShopify OAuth2StockTwits OAuth2Stackoverflow OAuth2Basic user data population and signaling to allows custom fields values
from providers’ responsesMultiple social account associations to a single userCustom User model override if needed (auth.Userby default)Extensible pipeline to handle authentication/association mechanismDemoThere’s a demo athttp://social.matiasaguirre.net/.
Note: It lacks some backends’ support at the moment.ContactJoin thedjango-social-auth discussion listand bring any questions or suggestions
that would improve this application.Also join the IRC channel#django-social-authon Freenode server.DocumentationExtensive documentation atRead the Docs.DependenciesDependencies thatmustbe met to use the application:OpenIdsupport depends onpython-openidOAuthsupport depends onpython-oauth2Several backends demands application registration on their corresponding
sitesInstallationFrompypi:$ pip install django-social-author:$ easy_install django-social-author clone fromgithub:$ git clone git://github.com/omab/django-social-auth.gitand add social_auth to PYTHONPATH:$ export PYTHONPATH=$PYTHONPATH:$(pwd)/django-social-auth/or:$ cd django-social-auth
$ sudo python setup.py installCopyrights and Licencedjango-social-authis protected by BSD licence.Some bits were derived from others’ work and copyrighted by:django-twitter-oauth:Original Copyright goes to Henrik Lied (henriklied)
Code borrowed from https://github.com/henriklied/django-twitter-oauthdjango-openid-auth:django-openid-auth -  OpenID integration for django.contrib.auth
Copyright (C) 2007 Simon Willison
Copyright (C) 2008-2010 Canonical Ltd.
Package: django-social-authsch
django-social-authsch=====Django Application for AuthSCHQuick start-----------1. Add "authsch" to your INSTALLED_APPS setting like this::````pythonINSTALLED_APPS = [...'social_django','authsch',]````2. settings.py````pythonSOCIAL_AUTH_URL_NAMESPACE = 'social'AUTHENTICATION_BACKENDS = ['authsch.authentication.AuthSCHOAuth2','django.contrib.auth.backends.ModelBackend',]SOCIAL_AUTH_AUTHSCH_KEY = "key"SOCIAL_AUTH_AUTHSCH_SECRET = "secret"SOCIAL_AUTH_LOGIN_REDIRECT_URL = '/'LOGIN_URL = "login/authsch/"````3. Run `python manage.py migrate` to create the authsch models.
Package: django-social-auth-trello
A [django-social-auth](https://github.com/omab/django-social-auth/) module that
authenticates against Trello.LicenseCopyright 2012 Damian ZarembaDjango-Social-Auth-Trello 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.Django-Social-Auth-Trello is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with Django-Social-Auth-Trello.  If not, see <http://www.gnu.org/licenses/>.
Package: django-social-cn
Django Social APP基于django的社交帐号APP包含微信APP, 微信小程序, 微信公众号, 抖音小程序, QQ开放平台等Quick start更新settings.pyINSTALLED_APPS=[...'social',]执行python manage.py migrateWeb使用AuthViewfrom social.views.AuthView方式一, 直接使用
修改urls.pyfromsocial.viewsimportAuthViewurlpatterns=[...path('social/<slug:provider>/',AuthView.as_view()),]方式二, 继承
修改views.pyfromsocial.viewsimportAuthViewasBaseAuthViewclassAuthView(BaseAuthView):success_url='/success/'API使用API使用django-rest-framework框架, Token使用django-rest-framework-simplejwt安装依赖$pipinstalldjangorestfamework
$pipinstalldjango-rest-famework-simplejwt直接使用from social.apis import AuthView, SocialUpdateView

urlpatterns = [
    ...
    path('social/auth/<slug:provider>/', AuthView.as_view()),
    path('social/update/', SocialUpdateView.as_view()),
]
Package: django-social-friends-finder
django-social-friends-finder============================An extension app for `django-social-auth` or `django-allauth` that fetches your friends from different social-networks.It displays matched friends so you can suggest your users to add them as friend or follow them.Dependencies------------To use it with `django-social-auth`* django-social-auth>=0.7.10 and all its dependencies https://github.com/omab/django-social-auth.gitTo use it with `django-allauth`* django-allauth>=0.8.3 and all its dependencies https://github.com/pennersr/django-allauthBack-end dependencies* python-twitter>=0.8.2 for twitter backend http://code.google.com/p/python-twitter/* facebook-sdk for facebook backend https://github.com/pythonforfacebook/facebook-sdk.gitInstallation------------There are 3 ways to install this apppip install django-social-friends-finderor build from the source.python setup.py installor add `social_friends_finder` to your pathUsage and Configuration-----------------------Add `social_friends_finder` to your APPS list in your settings fileINSTALLED_APPS = (..."social_friends_finder",)Add urls to your url configurlpatterns = patterns('',...url(r'^find-friends/', include('social_friends_finder.urls')),)Optionally you can use following settings:SF_REDIRECT_IF_NO_SOCIAL_ACCOUNT_FOUND: True if no social account found. Default is TrueREDIRECT_URL: The url to redirect if above setting is used. Default is "/"Go to `/find-friends/list/` on your browser.Contributions-------------Currently there are facebook and twitter backends are available. Please help to implement new backends.Implementing backend classes are easy. Just create a class inherits from `BaseFriendsProvider` and implement two of its methods.See backends module for example implementationsThe software design for back-ends needs to be tweaked a little. Encapsulating the allauth and social-auth behaviors in different subclasses would help.Also a common interface for backends to load them silently is crucial. Now if there is a missing backend, we raise an error. Factory class that loads them is also very ugly.I needed to implement this app for a real-world project with an impossible deadline, and now no time to refactor it. So if you can spend some time on the above issues, that'd be awesome.Thanks `lizrice` for the `django-allauth` integration.Change Log----------See `CHANGES.txt` file for history
Package: django-socialize
Socialize is a Django app to create social networks with social authentication.Quick startAdd “socialize” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'socialize',
)Include the socialize URLconf in your project urls.py like this:url(r'^socialize/', include('socialize.urls')),Runpython manage.py syncdbto create the socialize models.Visithttp://127.0.0.1:8000/to view a sample with social authentications
Package: django-social-layer
DJANGO SOCIAL LAYERdjango-social-layer - Adds social media features to any website.FEATURESeasly add a comment section to any webpageusers can like commentsnotificationsusers have profile pageNew: users now can post content, images, videos, etc.INSTALATIONInstall django-social-layer:pipinstalldjango-social-layerAdd to urls.py:path('',include(('social_layer.urls','social_layer'),namespace="social_layer"))add to settings.py:INSTALLED_APPS=[# ...'social_layer','infscroll',# required]# the login url to redirect site visitors to a social account.# Note that you need to take care of auth and user registration.SOCIAL_VISITOR_LOGIN='/login/'run migrations:./manage.pymigrateUSAGECreate a CommentSection for any purpose. It can, for example, be linked to an object with a ForeignKey field, or to a view by it’s URL. In our example we will use an url, but it’s optional. A CommentSection optionally can have an owner.fromsocial_layer.comments.modelsimportCommentSectioncomment_section=CommentSection.objects.create(url=request.path)Now inside a view, lets add a commennt section for the page:fromsocial_layer.comments.modelsimportCommentSectiondefmy_view(request):# in this example, we'll use the url to match the page.comment_section,n=CommentSection.objects.get_or_create(url=request.path)context={'commentsection':comment_section}returnrender(request,'my_view.html',context)To finish, add this to the template:{% load static %}<scriptdeferapplication="javascript"src="{% static 'social_layer/js/social_layer.js' %}"></script><linkrel="stylesheet"href="{% static 'social_layer/css/social_layer.css' %}"/>...<p>The comment section will render below.</p>{% include 'social_layer/comments/comment_section.html' %}Get and create a SocialProfile for an authenticated user:fromsocial_layer.utilsimportget_social_profiledefmy_view(request):profile=get_social_profile(request)Hope this can be useful to you.
Package: django-social-media-links
A reusable Django app that renders a set of social media links, i.e. for your
website footer.InstallationTo get the latest stable release from PyPi:$ pip install django-social-media-linksTo get the latest commit from GitHub:$ pip install -e git+git://github.com/bitmazk/django-social-media-links.git#egg=social_media_linksAddsocial_media_linksto yourINSTALLED_APPS:INSTALLED_APPS = (
    ...,
    'social_media_links',
)Don’t forget to migrate your database:./manage.py migrate social_media_linksIf you want to use the social icons as provided by
[monosocialfont](http://drinchev.github.io/monosocialiconsfont/) you should add
the following stylesheet to yourbase.html:<head>
    <link href="{% static "social_media_links/css/styles.css" %}" rel="stylesheet" media="screen">
</head>
<body>
    // Use it like so:
    <span class="symbol">&#xe224;</span>
</body>UsageFirst you need to create a set ofLinkTypeobjects. You may want to assign
symbols to them. In order to find out the codes for the symbols, please refer
tohttp://drinchev.github.io/monosocialiconsfont/We provide an assignment tag that returns all social media links in your
database. You can use it like so:{% load social_media_links_tags %}
{% get_social_media_links as social_media_links %}
{% if social_media_links %}
    <ul>
        {% for link in social_media_links %}
            <li><span class="symbol">{{ link.link_type.symbol|safe }}</span><a href="{{ link.url }}" title="{{ link.title }}">{{ link.name }}</a></li>
        {% endfor %}
    </ul>
{% endif %}Or shorter:{% load social_media_links_tags %}
{% get_social_media_links as social_media_links %}
{% if social_media_links %}
    <ul>
        {% include "social_media_links/partials/link_list.html" with links=social_media_links %}
    </ul>
{% endif %}ContributeIf you want to contribute to this project, please perform the following steps:# Fork this repository
# Clone your fork
$ mkvirtualenv -p python2.7 django-social-media-links
$ python setup.py install
$ pip install -r dev_requirements.txt

$ git co -b feature_branch master
# Implement your feature and tests
$ git add . && git commit
$ git push -u origin feature_branch
# Send us a pull request for your feature branchLicenseThis repository makes use of
[monosocialiconfonts](https://github.com/drinchev/monosocialiconsfont) so
please have a look at the license of that project.
Package: django-social-metadata
django-social-metadata is a Django application that provides mixin and
template to display social metadata for Facebook and Google+.InstallationPackagejavascript-settings can be installed as a normal Python package.Example instalation for pip:$ pip install django-social-metadataConfigurationsettings.pyAdd javascript-settings to INSTALLED_APPS:INSTALLED_APPS = (
    ...
    'social_metadata',
    ...
)templateInclude template in HEAD section of your main template:{% include "social_metadata/default_tags.html" %}Usage Exampleviews.pyfrom urlparse import urljoin

from django.conf.settings import MEDIA_URL
from django.views.generic import DetailView

import social_metadata.views

class PhotoSocialDataMixin(social_metadata.views.SocialDataMixin):
    def get_social_title(self):
        return self.title

    def get_social_images(self):
        return [urljoin(MEDIA_URL, self.image.path)]

    def get_social_description(self):
        return self.description

class PhotoDetail(PhotoSocialDataMixin, DetailView):
     model = PhotoCheckhttps://github.com/pozytywnie/django-social-metadata/blob/master/social_metadata/views.pyfor other social metadata fields.If you want to use Twitter cards you have to provide all required fields for given type (https://dev.twitter.com/cards/overview),
as well as submit a link in the validator athttps://cards-dev.twitter.com/validatorand witelist every type you want to use for given domain.
Package: django-socialnetwork
django-socialnetworkThis packages provides login and share funcionalities for the social networks.Installationpip install django-socialnetworkBasic usageAddsocialnetworktoINSTALLED_APPS.INSTALLED_APPS=(......'socialnetwork','socialnetwork.facebook',......)Set yoursocial appconfiguration insettings.SOCIALNETWORK_FACEBOOK_CLIENT_ID='0123456789'SOCIALNETWORK_FACEBOOK_CLIENT_SECRET='0123456789abcdefgh'SOCIALNETWORK_FACEBOOK_SCOPE_PERMISSIONS=['email',...]Add thesocial backendsto yourAUTHENTICATION_BACKENDS.AUTHENTICATION_BACKENDS=(......'socialnetwork.facebook.backends.FacebookBackend',......)Addsocialnetworkto yoururls.urlpatterns=patterns('',......url(r'^social/',include('socialnetwork.urls',namespace='socialnetwork')),......)Showlogin buttonin yourtemplates.......{%loadfacebook%}......{%facebook_login'text to show in button''css_class1 css_class2 ... css_classN'%}......Share content usingtagsin yourtemplates(you can provide anynamedargs accepted by the Facebook JavaScript SDK).......{%loadfacebook%}......{%facebook_share'text to show in button''css_class1 css_class2 ... css_classN'link="mysite.com"name="This is my site"...%}......Request data. The clientmust be initializedwith aprofileobject.......fromsocialnetwork.facebook.clientsimportFacebookGraph......graph=FacebookGraph(user.facebookoauthprofile)data=graph.get('me',params={'fields':'first_name,last_name,picture.type(normal)'})data['first_name']>>>'John'Check access token.graph.debug_access_token()>>>(True,{'data':{'is_valid':True,'access_token':...}})TODOProvide a method to call a custom setup when the OAuth flow ends.Extend support for OAuth 2 services (Foursquare, Github, etc.)Add support for OAuth 1 services (Twitter, LinkedIn, etc.)
Package: django-social-oauth-token
django-social-oauth-tokenInstallation•Contributing•How To Use•LicenseOAuthToken generation API for handling OAuth 2.0 Authentication Code Flow based on social-authInstallationUse your preferred package manager (pip,poetry,pipenv) to install the package. For example:$poetryadddjango-social-oauth-tokenThen register 'social_oauth_token', in the 'INSTALLED_APPS' section of your project's settings.# settings.py...INSTALLED_APPS=(...'social_oauth_token',)...Include theurlpatternsin your mainurlsfile.# urls.pyurlpatterns=[...path("social_oauth_token/",include("social_oauth_token.urls",namespace="social_oauth_token")),...]How To UseIn order to verify theAuthorization Codesent by the user and replace it with your ownOAuth Access Token, send aPOSTrequest to thetoken/<backend>/endpoint withclient_idandcodeto receive the token.The POST request parameters:client_id# OAuth Client IDcode# Authorization CodeThe JSON response:{"access_token":<access_token>,"expires_in":<expires_in>,"token_type":<token_type>,"refresh_token":<refresh_token>,}ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMIT License
Package: django-social-passport
Django Social PassportA Python library for seamless social authentication integration with Django.InstallationYou can installDjango Social Passportand its dependencies usingpip:$pipinstalldjango-social-passportUsageNow, createtest.pyfile. You have to import thesocialhifunction in that file.frompassport.socialplayimportsocialhifirst_meet=socialhi()print(first_meet)After importing, You have to call the imported function and print the output.NotesCurrent Version:release serves as a demonstration and does not include a functional social authentication system. We plan to implement a fully working social authentication system in future versions.LicenseMIT
Package: django-social-poster
Signals for posting messages on Facebook and Twitter.RequirementsDjangofacepypython-twitterInstallationUsing PyPI you can simply type into a terminal:pip install django-social-posteror:easy_install django-social-posterConfigurationAddsocial_posterto the list ofINSTALLED_APPSin yoursettings.pyfile.Following settings are required:TwitterTWITTER_CONSUMER_KEYTWITTER_CONSUMER_SECRETTWITTER_ACCESS_TOKEN_KEYTWITTER_ACCESS_TOKEN_SECRETYou have to create anew Twitter application. After creating one, the four required
strings are in the details tab. Please make sure that the application can write.
You can set the permissions in the settings tab.FacebookFACEBOOK_ACCESS_TOKEN: You can get the required access token at theGraph ExplorerIn your models, you have to create a new model which inherits fromsocial_poster.models.AbstractSocialPoster. Please overridetwitter_messageandfacebook_message, because they are empty. Don’t forget to sync your database!Last but not least, add signals:from social_poster import signals
models.signals.post_save.connect(signals.post_to_twitter,
                                 sender=MyModel)
models.signals.post_save.connect(signals.post_to_facebook,
                                 sender=MyModel)AuthorCopyright 2013 Raphael Jasjukaitis <webmaster@raphaa.de>Released under the BSD license.