Saravanan666/pypi-org huggingface dataset:
Package: django-socialshareprivacy
django-socialshareprivacy=========================This Django applcation makes the jQuery Plug-In socialshareprivacy from heise.de available in django templates.The plugin will show disabled buttons for the share adn tweet buttons, these disabled buttons are hosted locally. If the user wants to share or tweet he has to first click the disabled button which will then load the real button from facebook, G+ or Twitter. A second click on the buttons will then actually share the page. This basically means that the possibility of sharing is available but until the user interacts with the buttons no data is transmitted to the social networks.The home of the jQuery plugin is http://www.heise.de/extras/socialshareprivacy/.This application uses the same version numbers as the jQuery plugin and appends a third digit to allow for application releases independently of the plugin.Installation============Install via pip:pip install django-socialshareprivacythen add `socialshareprivacy`to your INSTALLED_APPS.In your template load the socialshareprivacy templatetags library{% load socialshareprivacy_tags %}add an empty div used to display the buttons<div id="socialshareprivacy"></div>and include the neccessary javascript by calling the template tag `socialshareprivacy`{% socialshareprivacy %}In the default thediv to hold the buttons has to have an id of socialshareprivacy you can changethat to what ever you want and then call the template tag with the correct selector<div id="share_buttons"></div>{% socialshareprivacy '#share_buttons' %}Configuration=============If you need to configure any of the plugins options override the template `socialshareprivacy\socialshareprivacy.html`The context of the template supplies the variables `selector` which contains the jQuery selector andthe variable `STATIC_URL` from the project settings.Help====For help open an issue here https://github.com/adsworth/django-socialshareprivacy/issuesLicense=======The original jQuery plugin socialshareprivacy is distributed uner the MIT license.This Django application is also distributed under the MIT license. See the LICENSE file in this directory/repository.
Package: django-social-share-settings
django-social-share-settings=======================Model and front end library for choosing and integrating social media share widgets, similar to AddThis.#InstallAdd to your requirements.txt file:```python#requirements.txt-e git+https://github.com/ninapavlich/django-social-share-settings.git@2ac1309c5f2e4a816263ee689bcc60655a0643b5#egg=django-social-share-settings-dev```Run install:```> pip install -r requirements.txt```#CMS Usage:To make social settings administerable, include django_social_share_settings and rake the database:```python#settings.pyINSTALLED_APPS = (...'django_social_share_settings',...)``````> python manage.py schemamigration django_social_share_settings --initial> python manage.py migrate django_social_share_settings```To make track social shares:```python#urls.py(r'^', include('django_social_share_settings.urls')),```#Template Usage:To output share icons based on the settings from the cms, use the"social_share_settings_tags" template tags. In this case I'm using"Font Awesome" to render the icons.```#social-share-partial.html{% load social_share_settings_tags %}{% get_social_share_links as social_links %}{% if social_links|length > 0 %}<ul class="social sticky">{% for link in social_links %}{% get_social_share_link link object.get_absolute_url object.title as link_url %}<li><a href="{{ link_url }}" target="_blank"><i class="fa fa-{{link.font_awesome_class}}"></i></a></li>{% endfor %}</ul>{% endif %}```#Sticky UsageFor sticky behavior, include or compile in the styles and javscript.See screencast of sticky widget in action: http://screencast.com/t/Gm8Sah4IMQ```html#base-template.html<!-- Include Font Awesome  for easier social icons --><link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet" /><!-- Include js plugin and css or compile into your source js --><link rel="stylesheet" href="{% static 'ccl/sticky.min.css' %}"/><script src="{% static 'js/sticky.jqueryplugin.js'%}"></script><script>$(".sticky").sticky({topSelector : "#main",bottomSelector : "#footer",fixedMargin : 160,topMargin : 0,bottomMargin : 0});</script>```*topSelector* is the selector for the item the sticky widget should top-align with.*bottomSelector* is the selector for the item the sticky widget should not go below.*topMargin* refers to the top margin the sticky item will have when aligned to the top selector item![topMargin example](/../master/docs/screenshots/top_margin.png?raw=true "topMargin example")*fixedMargin* refers to the top margin the sticky item will have when the screen has scrolled past the top selector item![fixedMargin example](/../master/docs/screenshots/fixed_margin.png?raw=true "fixedMargin example")*bottomMargin* refers to the bottom margin the sticky item will have when aligned to the bottom selector item![bottomMargin example](/../master/docs/screenshots/bottom_margin.png?raw=true "bottomMargin example")
Package: django-socialtext
A django application that helps integrate Socialtext with your project.This application will help you interact with the Socialtext ReST API and
receive webhooks from your Socialtext appliance.InstallationInstall django-socialtext on your PYTHONPATH:pip install django-socialtext

# or

easy_install django-socialtextAdd ‘djsocialtext’ to your project’s INSTALLED_APPSConfigure the djsocialtext settings:ST_URL = "https://st.example.com" # URL for your ST appliance

ST_USER = "joeuser" # your ST username

ST_PASSWORD = "joepassword" # your ST passwordUsageDjsocialtext helps you interact with the ReST API by providing a shortcut method
to instantiate apython-socialtextAPI client using your project’s settings:from djsocialtext import get_api

api = get_api()

api.workspaces.list()
[<Workspace: blogs>, <Workspace: marketing>]ContributingDevelopment takes place onGitHub. You can file pull requests and issue tickets there.
Package: django-social-user
Introduction============The Django-Social-User library provides an abstract Django-based system for working with remote social network identities. A social identity stores all information gathered about a person from a social network account, and attempts to mirror the information that is necessary for a Django user.All functions and classes are documented inline. If you have additional questions, I can be reached on github or at admin@mattsnider.com.Getting started===============Standard stuff applies to install. Use PIP to install with dependencies:pip install django-social-userOr install from the command line:python setup.py installDependencies============This library is dependent on Django 1.3 or greater. You will need to configure any remote services that you wish to use as this library is expected to be extended. I have a second project django-simple-social (https://www.github.com/mattsnider/django-simple-social) that uses this package to interface with common social networks.If you have south installed, then database table creation and future updates will be managed automatically. If you don't, you may run into DB compatibility issues that you must manually resolve.Usage Guide===========This section describes how to configure the Django Social User app.URL Setup---------Your project should define the following URLs in your settings files:DJANGO_SOCIAL_USER_OPTIONS = {'REDIRECT_ON_ACCESS_TOKEN_FAILURE': '/yourAccessTokenFailureUrl','REDIRECT_ON_AUTHENTICATION': '/yourAuthenticationUrl','REDIRECT_ON_REQUEST_TOKEN_FAILURE': '/yourRequestTokenFailureUrl',}REDIRECT_ON_ACCESS_TOKEN_FAILURE is where to redirect the user if a network fails to authenticate when the social network executes the callback URL.REDIRECT_ON_AUTHENTICATION is where to redirect the user when they successfully authenticate with the social network. If this constant is not defined user will never successfully authenticate.REDIRECT_ON_REQUEST_TOKEN_FAILURE is where to redirect the user if a network fails to provide the request URL as part of the oauth handshake (user will not have been redirected to the social network site yet, and usually means the site authentication is down or request timed out).Add the following URL definitions to the project ``urls.py``:url(r'^social/', include('django_social_user.urls', namespace='django_social_user')),DB Setup--------If you are using South, then run:python manage.py migrate django_social_userOtherwise run:python manage.py sqlall django_social_user > temp.sqlpython manage.py dbshell < temp.sqlrm temp.sqlI recommend using South, as I may need to make model changes and South migrations will make your life easier.Create a Backend for a Social Network-------------------------------------I have another project called Django Simple Social that builds upon Django Social User to support some of the more popular social networks. If you plan on implementing your own social network backend, see https://github.com/mattsnider/django-simple-social for examples on how to do this.Todo====1. better error handling2. TESTING
Package: django-social-widgets
Django app for easy embedding social network widgets and plugins into your site. Supports Facebook, Twitter, Google+, YouTube, Instagram and Pinterest.Useful links:Documentation,Demo.RequirementsPython 2.6, 2.7, 3.3 - 3.5Django 1.6 or higherQuickstartInstall from PyPI:pip install django-social-widgetsAddsocial_widgetsto INSTALLED_APPS:INSTALLED_APPS = (
 ...
 "social_widgets",
 ...
)Load the social_widgets template library in every template you want to use it:{% load social_widgets %}Place{% social_widget_render %}code where you want to show the widget. For example if you want to show Facebook Likebox for Facebook Developers page put this code in your template:{% social_widget_render 'facebook/likebox.html' href='https://www.facebook.com/FacebookDevelopers' %}Passing parametersParameter names for widgets are similar to the original parameters with only one change: they use underscore instead of hyphen. So for example if you need to setshow-screen-nameparameter for Twitter Follow Button, you should use code like this:{% social_widget_render "twitter/follow_button.html" username="BillGates" show_screen_name=True %}As a value for all parameters you can use a Python value like string, integer or Boolean, for example:{% social_widget_render "facebook/likebox.html" app_id=12345678 href="https://www.facebook.com/FacebookDevelopers" show_border=True %}See thisdemo pagewith all supported widgets, their code and available parameters.Example projectYou can find an example project in “example_project” directory.FacebookLikebox -Documentation|DemoFollow Button -Documentation|DemoEmbedded Post -Documentation|DemoActivity Feed -Documentation|DemoRecommendations Feed -Documentation|DemoShare Button -DocumentationTwitterFollow Button -Documentation|DemoShare Button -DocumentationGoogle+Person Badge -Documentation|DemoPage Badge -Documentation|DemoCommunity Badge -Documentation|DemoShare Button -DocumentationYouTubeSubscribe Button -Documentation|DemoInstagramInstagram Badge -Documentation|DemoPinterestFollow Button -Documentation|DemoPin Widget -Documentation|DemoProfile Widget -Documentation|DemoBoard Widget -Documentation|Demo
Package: django-societies
Societies is a collection of abstract models for building django apps that deal with people, places, events and means of communication.Detailed documentation is in the “docs” directory.Quick startAdd “societies” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...,
    "societies",
]To use societies, import and subclass the relevant model classes.Add extra model fields as needed.subclass the Meta class as needed.
Package: django-socketio-events
### What is django-socketio-events?Simply adds socket.io functionality to Django applications by proxying Django behind a Nodejs/SocketIO server.Any callback function defined in an `app_folder` is exposed to Socket.IO as the target `my_app.callback_fn`. See examples below.### Usage```python manage.py runserverjs <hostname> <public port> <proxy port> <socket port>```In any Django template that you want a Socket IO connection, add this templatetag to your HEAD:```{% load nodjango %}<!doctype html><html><head><script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>{% socketio_head_scripts %}</head><body><button>Click Me</button><script type="text/javascript">socket.on('my_callback', function(data){console.log(JSON.stringify(data));});$('button').on('click', function(){socket.emit('django', {'event': 'my_app.change_color','callback': 'my_callback','color': 'red'});});</script></body></html>``````# my_app/socketio.pydef change_color(color):# change color# ...# profitreturn {'result': 42}```### Installation```pip install django-socketio-events```And then add `nodjango` to your `INSTALLED_APPS`.### Under the hood*   [virtual-node](https://github.com/elbaschid/virtual-node) for installing [node.js](http://nodejs.org/) in a Python virtualenv.*   [Django](https://www.djangoproject.com/) web framework
Package: django-socket-server
Django Socket ServerQuickstartInstalldjango-socket-server:pip install django-socket-serverAddsocket_servertoINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'socket_server',
    ...
)Create asockets.pyin an application of your project.django-socket-serverwill discover the socket files that are in applications installed against Django.An examplesockets.pylooks like this:from socket_server.namespace import EventNamespace


class Namespace(EventNamespace):

    def client_connected(self, client):
        super(Namespace, self).client_connected(client)

        print 'Send ping'
        self.emit_to(client, 'ping')

    def register_callbacks(self):
        return {
            'pong': self.pong
        }

    def pong(self, client, **kwargs):
        print 'Received pong event'Messages are sent and received in JSON, and always contain aneventkey. This key is then mapped to callbacks, added insideregister_callbacks.You can specify a namespace name using the name property like so:class Namespace(EventNamespace):
    name = 'pingpong'If you do not specify a name, the app name will be used by default.Start Socket ServerUse the management command provided to start the socket server:python manage.py start_socket.You may pass an optional–portto override the default port of3000.Client connectionThe above example would expose the following:ws://localhost:3000/pingpongDocumentationThe full documentation is athttps://django-socket-server.readthedocs.org.LinksAutobahn PythonTwistedHistory0.0.1 (2015-01-01)First release on PyPI.0.0.2 (2015-01-30)Added python client classes0.0.3 (2015-01-30)Catch server shutdown and pass to namespaces0.0.4 (2015-02-01)Remove debugging and add “room” event errors
Package: django-sockjs-tornado
Makes it easy to run a SockJS server in Django through Tornado.This package is basically a thin wrapper on top ofsockjs-tornadowhich makes it dead easy
to write websocket based apps on top of thesockjs Websocket
emulation library.With this wrapper you basically have access to everything else you
need from your Django project such as your models and your various
settings.Because you need to run two processes (one forrunserver(orwsgi)
and one forsocketserver) it means that the two really are separate
python processes so you can’t easily do things like registering
signals and trigger them in one process and have them fire in another.Getting startedCreate a class somewhere that looks something like this:from sockjs.tornado import SockJSConnection

class MyConnection(SockJSConnection):
    def on_open(self, request):
         pass
    def on_message(self, message):
         pass
    def on_close(self):
         passNext, you need to put the loction of this in a setting in yoursettings.pysomething like this:SOCKJS_CLASSES = (
    'myproject.myapp.myfile.MyConnection',
)Next, to start the server simply run:python manage.py socketserver [--help]You’ll still have your regular django server too in a separate terminal:python manage.py runserverNow you should be able to write the juicy Javascript usingsockjs-client. You can
start by downloading thelatest minified version from the CDN.A simple app might look like this:sock = new SockJS('http://localhost:9999/echo');
sock.onmessage = function(e) {
  console.log(e.data);
};
sock.onclose = function() {
  console.log('closed :(');
};
sock.onopen = function() {
  console.log('opened :>');
  letTheMadnessBegin();
};

function letTheMadnessBegin() {
  // silly, but you get the idea
  sock.send(JSON.stringify({
    name: $('#name').text(),
    message: $('input').val()
  }));
}Getting fancyThere’s a shitload more things you can do with this of course. For
example, you might want to add some form of authentication. Since theon_openhandler receives a request you can use that to ask forrequest.get_cookie()which is left to the reader as an exercise.There is a slightly more fancy example included in this package under
example which might get you some ideas. It’s a fully working chat
application that just works.This package is built mainly onServe Koval’s amazing work onsockjs-tornadowhich has lots of more
examples and documentation that might help you. For example, it lists
to a sample HAProxy configuration which you might need once you take
your project live since you can’t keep exposing port 9999 on a
production system.
Package: django-sockpuppet
Welcome to Sockpuppet 👋🎉You just discovered an exciting new way to build modern, reactive, real-time apps with Django.Why should I spend time exploring this?If you use current frontend libraries, such as react, vue or angular you end up creating state for the frontend and then updating state changes in the backend through an api.This means that you forgo server-rendered html with the advantages that brings + you'll end up with a more complex app overall.With this library you can still use normal django templates, and any frontend state you change will be directly reflected in the backend. Currently this happens through the use of websockets.This is the django implementation of the excellent rails librarystimulus-reflex, which in turn is inspired byPhoenix LiveView.Hit me up on twitter if you have any questions.📚 DocumentationOfficial Documentation⚡️ Get startedpipinstalldjango-sockpuppet# If performance is important you can take advantage lxml parsing# It will typically speed up the round trip by 30-90ms depending on the htmlpipinstalldjango-sockpuppet[lxml]# Add these into INSTALLED_APPS in settings.pyINSTALLED_APPS=['channels','sockpuppet']# generates scaffolding for webpack.config.js and installs required js dependencies# if you prefer to do that manually read the more thorough documentationpythonmanage.pyinitial_sockpuppet# scaffolds a new reflex with everything that's needed.pythonmanage.pygenerate_reflexapp_namename_of_reflexYou're almost there, read about how to tie it all together in thequickstart documentation💙 CommunityDiscord- We share the discord together with stimulus-reflex, and there is a channel dedicated for python/django discussions.django-sockpuppet-expo- Do you want more examples? There code examples of chats, book search, etc ... We accept PRs :)🛠 Development in the repoSee some common commands that can be useful for developmentpipinstall-rrequirements_dev.txt
invoke-lTry out a minimal example manuallygit clone git@github.com:jonathan-s/django-sockpuppet.git
npm install
npm run build:test
python manage.py runserver
# visit https://localhost:8000/test⛑ Running tests locallyThe most important tests are integration tests that makes sure that frontend and backend work together in conjunction with each other.# Install the cypress et al
npm install

# Spin up a dev server that uses some fixtures
inv test-server

# Run the cypress tests
npm run cypress:run🔜 Releasepip install -r requirements_dev.txt
invoke release -b feature
Package: django-soc-lite
django_soc_liteA security middleware for Django app to Detect OWASP Top Basic and generate report in your ThreatEquation dashboard.withpippip install django_soc_liteConfigure to Your APP=================. Add  `django_soc_lite` to your project's `INSTALLED_APPS` in`settings.py` file.

. Add the following middleware to your project's `MIDDLEWARE_CLASSES` in `settings.py` file:

  ``'django_soc_lite.threat.middleware.ThreatEquationMiddleware',``Include your Product_key and Api_key (without this step, AppSoc won't work)=================. in your `settings.py` file place your keys in anywhere.

     THREAT_EQUATION_PRODUCT_KEY = <your product_id>
     THREAT_EQUATION_API_KEY = <your api_key>

. example-

     THREAT_EQUATION_PRODUCT_KEY = 'aaaaabbbbb'
     THREAT_EQUATION_API_KEY = '1111111111999999999999xxxxxxxxxxxxxxxxx'FeaturesMonitoring request data and generate reports on following areas -SQL injectionXSS (Cross Site Scripting)Insecure File/Directory AccessWho do I talk to?contact@threatequation.com
Package: django-soet
A simple Django Middleware for Exception Troubleshooting. It is meant to be used in debug mode only.In a nutshell, the Middleware intercepts a exception thrown by a view and look up for the three most relevant questions
on StackOverflow and print the result to the console.Quick Start1. Install using pip:pip install django-soet2. Include “soet” to your INSTALLED_APPS:INSTALLED_APPS=[...'soet',]3. Include “StackOverflowMiddleware” to your MIDDLEWARE_CLASSES:MIDDLEWARE_CLASSES=(...'soet.middleware.StackOverflowMiddleware',)4. Make sure you are running your project with DEBUG=True.5. Start your development server and wait for the view exceptions (or not).PreviewThis is how it looks like in your Terminal:
Package: django-sofort
.. image:: https://travis-ci.org/codingjoe/django-sofort.png?branch=master:target: https://travis-ci.org/codingjoe/django-sofort:alt: TravisCI.. image:: https://pypip.in/d/django-sofort/badge.png:target: https://pypi.python.org/pypi//django-sofort/:alt: Downloads.. image:: https://pypip.in/v/django-sofort/badge.png:target: https://pypi.python.org/pypi/django-sofort/:alt: Latest Version.. image:: https://pypip.in/license/django-sofort/badge.png:target: https://pypi.python.org/pypi/django-vies/:alt: License=====Django-Sofort=====Django-Sofort a django implementation of the Sofort.com API.Installation--------Current Stable::pip install django-sofortLatest Development::pip install -e git://github.com/codingjoe/django-sofort.git#egg=django-sofortCode changes::INSTALLED_APPS = (...'sofort',...)Usage--------License-------The MIT License (MIT)Copyright (c) 2014 Johannes HoppePermission is hereby granted, free of charge, to any person obtaining a copy ofthis software and associated documentation files (the "Software"), to deal inthe Software without restriction, including without limitation the rights touse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies ofthe Software, and to permit persons to whom the Software is furnished to do so,subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESSFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS ORCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHERIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.