Saravanan666/pypi-org huggingface dataset:
Package: django-federated-login
This project is currently unmaintained. Not recommended for production use.Django Federated LoginDjango Federated Login provides an authentication bridge between Django
projects and OpenID-enabled identity providers. The bridge is pre-wired to be
used with a single Google Apps domain, but could be extended to be linked with
other OpenID providers also. It is different from other OpenID consumers as
this consumer only allows connecting to a pre-defined identity provider.The provided backend matches users based on the e-mail address returned from
the identity provider. If no matching user could be found, a user account can
optionally be created.I would love to hear your feedback on this package. If you run into
problems, please file an issue on GitHub, or contribute to the project by
forking the repository and sending some pull requests.Compatible with Django 1.4, 1.5 and 1.6 on Python 2.6, 2.7, 3.2 and 3.3. Python
3 is supported through the python3-openid fork.InstallationInstallation withpip:$ pip install django-federated-loginAdd'federated_login.auth_backend.EmailBackend'as authentication backend:settings.py:
AUTHENTICATION_BACKENDS = (
    'federated_login.auth_backends.EmailBackend',
    'django.contrib.auth.backends.ModelBackend',
)Add'federated_login'as installed app:settings.py:
INSTALLED_APPS = (
    ...
    'federated_login',
)Provide the Google Apps domain to identify against:settings.py:
FL_APPS_DOMAIN = 'webatoom.nl'For Django 1.6, need to configure session serializer:settings.py:
SESSION_SERIALIZER = 'django.contrib.sessions.serializers.PickleSerializer'Register the views:urls.py:
url(r'^federated/', include('federated_login.urls')),Sync or migrate your database:python manage.py syncdb
# or if you use South:
python manage.py migrate federated_loginUsagePoint your browser to/federated/login/. You might want to include a
button to this url on the regular login page. You could also use the federated
login page as the default login page, replacing the username and password login
pages. To do this, configure theLOGIN_settings:settings.py:
LOGIN_REDIRECT_URL = '/'
LOGIN_URL = '/federated/login/'SettingsThese are the customizable settings:FL_APPS_DOMAINGoogle Apps domain to identify against. Can be overriden byFL_SSO_ENDPOINT.FL_USER_FACTORY(Default:'federated_login.user_factories.normal')Function that is called when creating a user account. Set toNoneto
disable creation of new users. There is also'federated_login.user_factories.staff'that creates staff users and'federated_login.user_factories.superuser'that creates superusers.FL_SSO_ENDPOINT(Default: Google Apps)Override this setting to link with another OpenID identity provider. TheFL_APPS_DOMAINsetting will have no effect when providing a customFL_SSO_ENDPOINT.FL_USER_CLASS(Default:'django.contrib.auth.models.User')Django model class to used to create and query for users.FL_PATCH_ADMIN(Default:True)Django’s admin site is automatically patched to use federated login. Set
this setting toFalseto disable this feature. You can callfederated_login.admin.patch_admin()andfederated_login.admin.unpatch_admin()to respectively patch and
unpatch the admin site.
Package: django-federation-auditlog
Django AuditlogThis project is totally based inDjango Auditloglibrary.Instalationwith pippipinstalldjango-federation-auditlogwith pipenvpipenvinstalldjango-federation-auditlogwith poetrypoetryadddjango-federation-auditlogAdding Django Federation Auditlog to your Django applicationTo use in your application, just add 'django-federation-auditlog' to your project’s INSTALLED_APPS setting and add 'AuditlogMiddleware' to your's MIDDLEWARE setting then run manage.py migrate to create/upgrade the necessary database structure.INSTALLED_APPS=[# other apps"django_federation_auditlog",]andMIDDLEWARE=[# others middlewares"django_federation_auditlog.middleware.AuditlogMiddleware",]Then runpython manage.py migrateUsageAuditlog can automatically log changes to objects for you. This functionality is based on Django’s signals, but linking your models to Django Federation Auditlog is even easier using signals.fromdjango.dbimportmodelsfromdjango_federation_auditlog.registryimportauditlogclassMyModel(models.Model):pass# Model definition goes hereauditlog.register(MyModel)It is recommended to place the register code (auditlog.register(MyModel)) at the bottom of your models.py file.OBS: If.save()be called to a model and the fields have the same value, log entriesdon'tbe generated.Including FieldsIfinclude_fieldsis specified, only the fields with the given names will be included in the generated log entries.For example, to include only the fieldnamefrom class MyModel, use:fromdjango.dbimportmodelsfromdjango_federation_auditlog.registryimportauditlogclassMyModel(models.Model):name=models.CharField()description=models.CharField()# Model definition goes hereauditlog.register(MyModel,include_fields=["name"])Excluding fieldsFields that are excluded will not trigger saving a new log entry and will not show up in the recorded changes.Ifexclude_fieldsis specified the fields with the given names will not be included in the generated log entries.For example, to exclude the fielddescription, use:fromdjango.dbimportmodelsfromdjango_federation_auditlog.registryimportauditlogclassMyModel(models.Model):name=models.CharField()description=models.CharField()# Model definition goes hereauditlog.register(MyModel,exclude_fields=["description"])
Package: django-feedaggregator
An Django 1.8 app to aggregate RSS and Atom feeds(planet)FeaturesPython 2/3 compatibleImport/export OPML feedsBrowse posts by Feed, Author or TagBootstrap templatesRSS and Atom feedsSitemapsShow word clouds like it’s 2004Multiple templatetags to adapt the siteSEO metatagsCustomizable via settings.pyTODOUpload demoImprove tests and docsDocumentationOnline documentation is available athttp://django-feedaggregator.readthedocs.org/LicenseMIT license
Package: django-feedback
Creates an ajax “feedback” button on your site, which pops up a form for the
user to fill.Add it to your installed apps:INSTALLED_APPS += ('feedback',)Sync the databaseAdd a line to your urls.py:url(r'^feedback/', include('feedback.urls')),Use it (only requires template modifications):<!-- in header block -->
{% include "feedback/header.html" %}

<!-- in body block -->
{% include "feedback/button.html" %}Or use your own button which pops up feedback form:<!-- in body block -->
{% include "feedback/feedback.html" %}
<div class="feedback_button"/>All feedback can be seen in the Django admin interfaceClass “modal-open” is added to body for compatibility with Bootstrap modal.Feedback can optionally be emailed to you as well, as it is submitted. Specify your email address in settings.py:FEEDBACK_EMAIL = “me@example.com”
Package: django-feedback-api
Requirementsdjangodjango rest frameworkSet upSimplesettings.py:INSTALLED_APPS = [
    ...
    'rest_framework',
    'django_feedback_api',
]
EMAIL_HOST = 'smtp.yandex.ru'
EMAIL_PORT = 587
EMAIL_USE_TLS = True
EMAIL_TIMEOUT = 5
EMAIL_HOST_USER = 'email@example.com'
DEFAULT_FROM_EMAIL = EMAIL_HOST_USER
SERVER_EMAIL = 'email@example.com'
EMAIL_HOST_PASSWORD = 'PASSWORD'
MANAGERS = [('Ivanov Ivan', 'email2@example.com')]
# Optional
FEEDBACK_SUBJECT = 'Django FeedBack: New feedback'urls.py:urlpatterns = [
    ...
    url(r'^api/', include('django_feedback_api.urls')),
]Sent POST tohttp://your.site/api/feedback/.
Package: django-feedback-form
Minified JQuery & Ajax feedback/report form to handle fast customer requests in
Django. You can use it as a fast feedback tool and/or to report objects (e.g.
in case of abuse).PrerequisitesYou need at least the following packages in your virtualenv:Djangodjango-mailerdjango-libsInstallationTo get the latest stable release from PyPi:$ pip install django-feedback-formTo get the latest commit from GitHub:$ pip install -e git://github.com/bitmazk/django-feedback-form.git#egg=feedback_formAdd the app to yourINSTALLED_APPS:INSTALLED_APPS = [
    ...
    'django',
    'mailer',
    'feedback_form',
    'django_libs',
]Run the migrations to create the app’s database tables:$ ./manage.py migrate feedback_formUsageFirst of all add the feedback urls to your main urls.py:url(r'^feedback/', include('feedback_form.urls')),You can use the “normal” feedback view via/feedback/but in almost every
case you might want to use the ajax template tag. Just add the following code
to e.g. your base.html:{% load feedback_tags %}
{% feedback_form %}Pretty ugly, eh? Now, you need to add css and js for sure, like this:{% load staticfiles %}
<link href="{% static "feedback_form/css/feedback_form.css" %}" type="text/css" media="all" rel="stylesheet" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="{% static "feedback_form/js/feedback_form.js" %}"></script>That’s it!
You can also use this app as a report tool. Simply call another url:<a href="{% url "feedback_form_content_object" c_type='user' obj_id=user.pk %}">Report this user!</a>You can easily customize your form by changing static files or by changing the
followingsettings:FEEDBACK_FORM_TEXTCOLORBy default the text color is white like'#fff'.FEEDBACK_FORM_COLORBy default the background color is light blue like'#6caec9'.FEEDBACK_FORM_TEXTBy default the text in the form is invisible. Just add the html markup you want
to be displayed above the input fields, like:<h3>Hi! Do you have feedback or questions?</h3>
<p>We'll answer as fast as possible.</p>FEEDBACK_EMAIL_CONFIRMATIONDefault: FalseSends a confirmation email to the feedback poster.
Package: django-feedback-form-package
Feedback form package is a Django app to create and handle feedback forms on your website without writing it out yourself. CheersQuick startAdd “feedback” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'feedback',
]Include the feedback URLconf in your project urls.py like this:path('feedback/', include('feedback.urls')),Make sure to configure your email service in settings.py. Eg using sendgrid:EMAIL_HOST = 'smtp.sendgrid.net'
EMAIL_PORT = 587
EMAIL_HOST_USER = 'apikey'
EMAIL_HOST_PASSWORD = 'xxxxxxx' # Your key here
EMAIL_USE_TLS = TrueIndicate where to send email from and to, in your settings.py like so:EMAIL_TO = 'xxx@gmail.com'
EMAIL_FROM= 'ghaff@gmail.com' # Connected to the mail serviceStart the development server:./manage.py runserverVisithttp://127.0.0.1:8000/feedback/to create see the glory. Dont mind the UI, this is v1, haha.
Package: django-feedburner
This is a app provides a view that handles redirection of feeds to the
feedburner url. It is based on a stack overflow question:http://stackoverflow.com/questions/870979/redirect-django-feed-to-feedburnerInstallationRewrite your urls.py file that uses django’s builtin feed view and replace it
withdjango_feedburner.views.redirect_feed.See this exampleurlpatterns:urlpatterns = patterns('',
    (r'^feeds/(?P<url>.*)/$', 'django.contrib.syndication.views.feed', {'feed_dict': feeds}),
)To use the redirections write:urlpatterns = patterns('',
    (r'^feeds/(?P<url>.*)/$', 'django_feedburner.views.redirected_feed', {'feed_dict': feeds}),
)Know you must specify which feeds should get redirected. You can specify this
with theFEEDBURNER_URLSsetting. This must be adictwhich holds the
complete urls as keys that should get redirect. The values must be either an
absolute url to the feedburner url or a path that starts with a slash. This
values will be prefixed withhttp://feeds.feedburner.com.To redirect thelatestfeed from the example above to feedburner’sexample-latestfeed we must write:FEEDBURNER_URLS = {
    '/feeds/latest/': 'http://feeds.feedburner.com/example-latest',
}or a bit shorter:FEEDBURNER_URLS = {
    '/feeds/latest/': '/example-latest',
}You can change the prefixed url with theFEEDBURNER_URL_PREFIXsetting.
Package: django-feed-imports
===================django-feed-imports===================Import RSS and Atom feeds and save in the Django database.Requirements============* Django >= 1.4* Feedparser* `django.core.context_processors.request` context processor (for the templatetag usage)Installation============Install from pypi::pip install django-feed-importsInstall from source with pip::pip install -e https://github/modlinltd/django-feed-imports/archive/master.zip#egg=feed_importsOr install from source:git clone https://github.com/modlinltd/django-feed-imports.gitcd django_feed_importspython setup.py installAdd it the application to your ``INSTALLED_APPS`` setting::INSTALLED_APPS = (...'feed_imports',)Run `syncdb` and `migrate`::python manage.py syncdbpython manage.py migrateUsage=====#. Configure the feeds sources in the Admin.#. Run the management command::python manage.py refresh_feeds*The management command should run as a cron job.*#. Using the template tag::{% load feed_items %}{% get_feed_items "news" 5 as items %}{# Get the last 5 items from the feed "news" in the current language #}{% for item in items %} {# do stuff ... #} {% endfor %}The `get_feed_items` returns the last `n` items from the provided feed inthe language as set in the request, with a fallback to the default language.If settings.DEFAULT_LANGUAGE is not defined, English will be assumed.<<<<<<< HEAD#. To use `feed_item.get_absolute_url()` you must the define a url with thename `feed_item` in you `urls.py`. For Example::url(r'^feed_item/(?P<pk>.+)$',login_required(DetailView.as_view(model=FeedItem)),name='feed_item'),Changelog=========0.1.7#####* Clean up README and prepare for sharing0.1.6#####* add Python 3 support=======>>>>>>> parent of 68cd327... updated readme
Package: django-feedly
Feedly is a Django app to create list and grid-based feeds. The
feeds created with this app can have social and e-commerce aspects.Quick startAdd “feedly” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (
    ...
    'feedly',
)Include the feedly URLconf in your project urls.py like this:url(r'^feedly/', include('feedly.urls')),Runpython manage.py syncdbto create the feedly models.Runpython manage.py loaddata fixtures.jsonto create the data on feed.Visithttp://127.0.0.1:8000/to view a sample with populated data
Package: django-feedmap
Authors:Justin Quick <justquick@gmail.com>Version:0.1pip install django-feedmapDjango Feedmap is a syndication feeds and sitemaps generator for django.
Register the querysets only once with feedmap so it knows how to populate
the feeds. Put this bit in your urls.py:from feedmap import feedmap

feedmap.register('entries',
    BlogEntry.objects.filter(is_public=True),
    feed_attrs = {
        'title':'Recent Blog Entries',
        'link':'/blog/',
    },
)

urlpatterns += feedmap.urlsThen it will generate syndication feeds in atom and rss2 formats as well as corresponding sitemaps:/sitemap.xml # Global Index
/sitemap-feeds.xml # Index of syndication feeds
/sitemap-entries.xml # Actual sitemap of recent blog entries
/feeds/entries # RSS2 feed
/feeds/entries/atom # Atom feed
Package: django-feedmapper
django-feedmapper is a library for synchronizing data from feeds with Django models. The process of synchronizing the data requires the use of three pieces: a parser, a mapping, and a schedule.Example projectClone this git repo:git clone git@github.com:natgeo/django-feedmapper.git
cd django-feedmapperMake sure you havevirtualenvwrapperinstalled and create a virtual environment:mkvirtualenv --no-site-packages --distribute django-feedmapper
workon django-feedmapperInstall the requirements:pip install -r requirements.txtSynchronize the database and load the dummy data:cd example
./manage.py syncdbSynchronize the dummy data:./manage.py feedmapper_syncFire up the development server:./manage.py runserverCheck out the feed mapping in the admin athttp://localhost:8000/admin/feedmapper/mapping/1/and the sync results in the admin athttp://localhost:8000/admin/myapp/thing/.Full documentationDocumentation is on Read the Docs:http://readthedocs.org/docs/django-feedmapper/.
Package: django-feedreader
Feedreader is a simple Django app to aggregate RSS feeds.FeaturesLocally stored feed link, title and description.Locally stored entry link, title and description.Show recent entries.String search of locally stored data.Uses Django admin to manage feeds.Detailed documentation is in the “docs” directory. These are available
onlinehere.Quick startAdd “feedreader” to your INSTALLED_APPS setting like this:INSTALLED_APPS = (...
                  'feedreader',
                  )Include the feedreader URLconf in your project urls.py like this:path('feedreader/', include('feedreader.urls')),Runpython manage.py migrateto create the feedreader models.Runpython manage.py collectstaticto copy static files to your
project’s static root.Start the development server and visit/admin/feedreader/feed/to add feeds. Only each feed’s xml url is needed.Visit/feedreader/to see the contents of the feeds.DependenciesDjango 3.1.7django-braces 1.14.0factory_boy 2.12.0feedparser 5.2.1
Package: django-feedstorage
This is an application designed for storing Feeds entries
and notifying subscribers only when there are new entries.It has 2 dependencies:requestsandlxml.For now, it has just been tested with: Python 2.7, Django 1.4, requests 0.13.2 and lxml 2.3.4
but feel free to try it with other versions and let me know.For installation instructions, see the fileINSTALL.rstin this
directory; for instructions on how to use this application, and on
what it provides, see the fileoverview.rstin thedocs/directory.Next things to doSee the roadmap on Trello:https://trello.com/b/zPAnRZsLwrite tests caseswrite more documentationtest with older versions of python and djangoadd Scheduling in the adminhandle more feed formatsnotify new entries in a merged XML file instead of several Entry objectsrefactoring: create a “callback” custom field to serialize/deserialize a callable object
Package: django-feedz
[![](https://img.shields.io/pypi/v/django-feedz.svg)](https://pypi.python.org/pypi/django-feedz) [![Build Status](https://img.shields.io/travis/chrisspen/django-feedz.svg?branch=master)](https://travis-ci.org/chrisspen/django-feedz) [![](https://pyup.io/repos/github/chrisspen/django-feedz/shield.svg)](https://pyup.io/repos/github/chrisspen/django-feedz)A Django model for storing and analyzing RSS/Atom feeds.DevelopmentTo run unittests across multiple Python versions, install:sudo add-apt-repository ppa:fkrull/deadsnakes
sudo apt-get update
sudo apt-get install python-dev python3-dev python3.3-minimal python3.3-dev python3.4-minimal python3.4-dev python3.5-minimal python3.5-dev python3.6 python3.6-devTo run all [tests](http://tox.readthedocs.org/en/latest/):export TESTNAME=; toxTo run tests for a specific environment (e.g. Python 2.7 with Django 1.8):export TESTNAME=; tox -e py27-django18To run a specific test:export TESTNAME=.test_importers.TestFeedImporter.test_entry_limit; tox -e py27-django18To run the [documentation server](http://www.mkdocs.org/#getting-started) locally:mkdocs serve -a :9999To [deploy documentation](http://www.mkdocs.org/user-guide/deploying-your-docs/), run:mkdocs gh-deploy –cleanTo build and deploy a versioned package to PyPI, verify [all unittests are passing](https://travis-ci.org/chrisspen/django-feedz), and then run:python setup.py sdist
python setup.py sdist upload
Package: djangoFeignClient
djangoFeignClientinstallpipinstalldjangoFeignClientexamplefromfeign_client.feignClientimportFeignClientclassEurekaTest(unittest.TestCase):deftest_eureka_user_login(self):data={'username':'admin','password':'123456'}# eureka_server addresshost='127.0.0.1:8081'# eureka app nameapp_name='test_app'# http request methodmethod='POST'# request pathpath='/user/login'res=FeignClient(eureka_server=host,method=method,path=path,app_name=app_name,data=dict(data)).resultprint(res)
Package: django-fe-manager
django-fe-managerManage front end dependencies in DjangoUsageCreate aFE_MANAGERvariable in your project settings defining the modules that can be used in your project. An example:FE_MANAGER={'bootstrap':{'version':'4.0.0','js':['/static/js/bootstrap.bundle.min.js'],'css':['/static/css/bootstrap.css','/static/css/custom.css'],'dependencies':{'jquery'}},'jquery':{'version':'3.2.1','js':['/static/private/js/vendors/jquery-3.2.1.min.js']},'moment':{'version':'2.24.0','js':['https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.24.0/moment-with-locales.min.js']},'chartjs':{'version':'2.9.3','js':['https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.3/Chart.min.js'],'dependencies':{'moment'}}}In your base view load the module, declare your dependencies, declare a dummy block at the beggining and add the css and js output tags:{% load fe_manager %}
{% fe_manager_add_module 'bootstrap' %}
{% fe_manager_add_module 'jquery' %}
{% block fe_manager %}{% endblock fe_manager %}<!DOCTYPE html><html><head><!-- Title and other HTML code... --><!-- Output CSS -->{% fe_manager_output_css %}</head><body><!-- Content and other stuff... -->{% block content %}{% endblock content%}<!-- Output JS -->{% fe_manager_output_js %}</body></html>Every child view can now add its dependencies in the following way...{% extends 'base.html' %}

{% load fe_manager %}

{% block fe_manager %}
{% fe_manager_add_module 'chartjs' %}
{% endblock fe_manager %}

{% block content %}
Content here!
{% endblock content %}The plugin will take care of dependency ordering and outputting both JS and CSS to your base template!0.0.3Add some documentation0.0.2Fix packaging (utils package not being included previously).0.0.1Initial release on PyPi.
Package: django-fence
This is a simple Django app with middleware to block access (in a
user-friendly, but not particularly secure way) to early beta or testing sites.The middleware checks for the presence of a session token. If it matches the
token specified in settings, the request procedes normally; if it doesn’t,
the middleware displays a “please enter the token” form instead.  A single
token is shared for all authorized viewers.The point is not to provide high security, but to instead prevent casual
visitors and crawlers from poking around a beta or testing site, while at the
same time making itsuper easyto give access to designers and people of
varying computer literacy.  You just have to tell them:  “Oh, the magic word is
‘fiddlesticks’”, and they can instantly get access without having to do any
sort of registration.  The goal is to be nicer user experience than HTTP basic
auth for this purpose.InstallationGet it into your path.  This ought to work:pip install -e http://github.com/yourcelf/django-fence.gitUsageAddfencetoINSTALLED_APPS:INSTALLED_APPS += ('fence',)Add middleware:MIDDLEWARE_CLASSES += ("fence.middleware.Fence",)Define the magic word:FENCE_TOKEN = "secret"Create a template to display infence/say_the_magic_word.html.  An example template:{% extends "base.html" %}

{# Add a class to <body> which lets us hide footers/headers/etc. #}
{% block body_class %}front-gate{% endblock %}

{% block content %}

    <form method='post' action=''>{% csrf_token %}
        <p>We're still in beta.  What's the magic word?</p>
        {{ form }}
        <input type='submit' value='Let me in!' />
    </form>

{% endblock %}LicenseMIT License.Copyright (C) 2012 Charlie DeTarPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the 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 all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.AuthorsBy Charlie DeTar.