Saravanan666/pypi-org huggingface dataset:
Package: django-watson-nominus
django-watsondjango-watsonis a fast multi-model full-text search plugin for Django.It is easy to install and use, and provides high quality search results.FeaturesSearch across multiple models.Order results by relevance.No need to install additional third-party modules or services.Fast and scaleable enough for most use cases.Supports Django 1.11+, Python 3.6+.DocumentationPlease read theGetting Startedguide for more information.Download instructions, bug reporting and links to full documentation can be
found at themain project website.You can keep up to date with the latest announcements by joining thedjango-watson discussion group.ContributingBug reports, bug fixes, and new features are always welcome. Please raise issues on thedjango-watson github repository, and submit
pull requests for any new code.You can run the test suite yourself from within a virtual environment with the following
commands.pip install psycopg2 mysqlclient -e .
    tests/runtests.py
    tests/runtests.py -d psql
    tests/runtests.py -d mysqlMore informationThe django-watson project was developed by Dave Hall. You can get the code
from thedjango-watson project site.Dave Hall is a freelance web developer, based in Cambridge, UK. You can usually
find him on the Internet in a number of different places:WebsiteTwitterGoogle Profile
Package: django-wattup
=====django-wattup v1.0=====A very simple contact form application for django.Quick Start-----------Add "wattup" to your INSTALLED_APPS setting like this::INSTALLED_APPS = (...'wattup',)Include the wattup URLconf in your projects urls.py like so:url(r'', include('wattup.urls'))Add this to your projects settings.py:EMAIL_USE_TLS = fooEMAIL_HOST = 'foo'EMAIL_PORT = fooEMAIL_HOST_USER = 'foo'EMAIL_HOST_PASSWORD = 'foo'DEFAULT_TO_EMAIL = 'foo'DEFAULT_FROM_EMAIL = 'foo'ORG_NAME = 'foo'*NOTE*Make sure that these settings are correct!"DEFAULT_TO_EMAIL" is the email address you want the messages to go to."DEFAULT_FROM_EMAIL" is the email address you want the message to say it is from.Run 'python manage.py syncdb'Start the development server and visit http://127.0.0.1:8000/contactFrom here, you should be able to send a message using the form you are given. If it does not work, check your settings.py
Package: django-wayf
=====WAYF=====WAYF is a simple Django app that implements a SAML WAYF (Where Are You From) service.It allows you to select your home idP (institute) for further redirection,by parsing your federation metadata(.xml)This code originates from https://code.grnet.gr/projects/wayfit was adapted to split of the wayf part as a separate usable django appQuick start-----------1. Add "wayf" to your INSTALLED_APPS setting  and configure the location of your metadata like this::INSTALLED_APPS = [...'wayf',]SHIB_METADATA = 'federation-metadata.xml'INSTITUTION_CATEGORIES = (('university', ("Universities")),('tei',  ("Technological educational institutes")),('school',  ("Other academic institutions")),('institute', ("Research institutes")),('other', ("Please select your institute")),('test', ("Testing")),)P3P_HEADER = ''IDP_COOKIE = 'wayf_selected_idp'LAST_IDP_COOKIE = 'wayf_last_idp'COOKIE_DOMAIN = '.example.com'2. Include the wayf URLconf in your project urls.py like this::url(r'^wayf', include('wayf.urls')),If you want more flexibility around the templates,there is only one view  for the basic appwayf.views.wayfso you can create your own url that points to just this view.The templates shipped with wayf extend a base.html template, where they will insert their html in the {% content %} tag.3. This app doesn't store anything in it's models, so no migrations are needed4. Start the development server and visit http://127.0.0.1:8000/wayfTo select your home institute5. Configure your shibboleth2.xml file to use this wayf::<SessionInitiator type="Chaining" Location="/DS" id="DS"  isDefault="true" relayState="cookie"><SessionInitiator type="SAMLDS" URL="https://example.com/wayf"/><SessionInitiator/>extra---The only view you really need is wayf.views.wayfhowever, wayf.views contains a few other views, that can help you generate auto generated pagesfor users, e.g. using templates like::If you encountered a problem <b>in your Home Organization's authentication page</b>, then you should contact your Home Organization's User Helpdesk. This is also the place to s    olve account-related issues, like the loss or change of your password, change of your contact details, etc.{% if idp.contact.email or idp.contact.telephone %}According to your selected Home Organization, &quot;<b>{{ idpname }}</b>&quot;, you may use the following contact details for getting support:<ul id="contactdetails">{% if idp.contact.email  %}<li><strong>E-mail:</strong> <a href="mailto:{{ idp.contact.email }}?subject=AAI+issue+report">{{ idp.contact.email }}</a></li>{% endif %}{% if idp.contact.telephone %}<li><strong>{% trans "Telephone" %}:</strong> {{ idp.contact.telephone }}</li>{% endif %}</ul>{% endif %}</li>dependencies---This suite requires the following python modules to be present on the system:- python-lxml: uses lxml.objectify to parse the XML metadataoptional, not fully implemented yet, you will need to manually make some changes:- pydns: used for reverse DNS lookup to get a hint about a user's preferred IdP- IPy: used for IP map manipulation
Package: django-we
django-weDjango WeChat OAuth2/Share/Token APIInstallationpipinstalldjango-weUrls.pyfromdjango.urlsimportinclude,re_pathurlpatterns=[re_path(r'^we/',include('django_we.urls',namespace='django_we')),]orfromdjango.urlsimportre_pathfromdjango_weimportviewsaswe_views# WeChat OAuth2urlpatterns=[re_path(r'^o$',we_views.we_oauth2,name='shorten_o'),re_path(r'^oauth$',we_views.we_oauth2,name='shorten_oauth'),re_path(r'^oauth2$',we_views.we_oauth2,name='shorten_oauth2'),re_path(r'^we_oauth2$',we_views.we_oauth2,name='we_oauth2'),re_path(r'^base_redirect$',we_views.base_redirect,name='base_redirect'),re_path(r'^userinfo_redirect$',we_views.userinfo_redirect,name='userinfo_redirect'),re_path(r'^direct_base_redirect$',we_views.direct_base_redirect,name='direct_base_redirect'),re_path(r'^direct_userinfo_redirect$',we_views.direct_userinfo_redirect,name='direct_userinfo_redirect'),]# WeChat Shareurlpatterns+=[re_path(r'^ws$',we_views.we_share,name='shorten_we_share'),re_path(r'^weshare$',we_views.we_share,name='we_share'),]# WeChat JSAPI Signatureurlpatterns+=[re_path(r'^js$',we_views.we_jsapi_signature_api,name='shorten_we_jsapi_signature_api'),re_path(r'^jsapi_signature$',we_views.we_jsapi_signature_api,name='we_jsapi_signature_api'),]# WeChat Tokenurlpatterns+=[re_path(r'^token$',we_views.we_access_token,name='we_token'),re_path(r'^access_token$',we_views.we_access_token,name='we_access_token'),]Settings.pyINSTALLED_APPS=(...'django_we',...)# Wechat SettingsWECHAT={'JSAPI':{'token':'5201314','appID':'','appsecret':'','mchID':'','apiKey':'','mch_cert':'','mch_key':'','redpack':{'SEND_NAME':'','NICK_NAME':'','ACT_NAME':'','WISHING':'','REMARK':'',}},}# Wechat OAuth CfgDJANGO_WE_OAUTH_CFG='JSAPI'# Default ``JSAPI``# Based on Urls.py# WECHAT_OAUTH2_REDIRECT_URI = 'https://we.com/we/we_oauth2?scope={}&redirect_url={}'# WECHAT_OAUTH2_REDIRECT_URI = 'https://we.com/we/o?scope={}&r={}'  # Shorten URLWECHAT_OAUTH2_REDIRECT_URI='https://we.com/we/o?r={}'# Shorten URL Farther, Scope default ``snsapi_userinfo``WECHAT_BASE_REDIRECT_URI='https://we.com/we/base_redirect'WECHAT_USERINFO_REDIRECT_URI='https://we.com/we/userinfo_redirect'WECHAT_DIRECT_BASE_REDIRECT_URI='https://we.com/we/direct_base_redirect'WECHAT_DIRECT_USERINFO_REDIRECT_URI='https://we.com/we/direct_userinfo_redirect'# Temp Share Page to RedirectWECHAT_OAUTH2_REDIRECT_URL=''CallbacksSee django_we_callback_settings.pyWechat_OnlySettings.pyMIDDLEWARE=[...'detect.middleware.UserAgentDetectionMiddleware',...]WECHAT_ONLY=True# Default FalseUsagefromdjango_we.decoratorsimportwechat_only@wechat_onlydefxxx(request):""" Docstring """
Package: django-weapp-auth
Weapp AuthWeapp auth is a Django app that helps to handle wechat mini program login and user info updating logic.Quick startInstall using pippip install --upgrade django-weapp-authAdd "weapp_auth" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
...
'weapp_auth',
]Include the weapp_auth URLconf in your project urls.py like this::path('weapp_auth/', include('weapp_auth.urls')),Runpython manage.py migrateto create the models.These two APIs are avaliable!weapp_auth/wechatLogin/andweapp_auth/wechatUpdateUserInfo/Call these two APIs in your wechat mini app!Authenticate your request withfrom weapp_auth.authenticator.OpenIdAuthenticator import OpenIdAuthenticator
Package: django-web-analysis
Django analytics is an app that can help you with a little analysis like who viewed what, when.Quick startAdd “analyse” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'analyse',
]Import the “ObjectViewedMixin” class like this:from analyse.mixins import ObjectViewedMixinThen add the imported class any class based detail view like this:class BlogDetail(DetailView, ObjectViewedMixin):
    ...You can view the data from your admin panel and you can also pull and use information from your code base.
Package: django-webapp-install-banner
=============================django-webapp-install-banner=============================.. image:: https://badge.fury.io/py/django-webapp-install-banner.png:target: https://badge.fury.io/py/django-webapp-install-banner.. image:: https://travis-ci.org/ferranp/django-webapp-install-banner.png?branch=master:target: https://travis-ci.org/ferranp/django-webapp-install-bannerAdd web App install banner to django project"Documentation-------------The full documentation is at https://django-webapp-install-banner.readthedocs.org.Quickstart----------Install django-webapp-install-banner::pip install django-webapp-install-bannerAdd to your django settings.py file::INSTALLED_APPS += ('webapp_install_banner',)MIDDLEWARE_CLASSES += ('webapp_install_banner.middleware.WebAppMiddleware',)MANIFEST = {"short_name": _("Project name"),"name": _("Project log name"),"icons": [{"src": "img/favicon-96x96.png","sizes": "96x96","type": "image/png"},{"src": "img/apple-touch-icon-144x144.png","sizes": "144x144","type": "image/png"},{"src": "img/android-chrome-192x192.png","sizes": "192x192","type": "image/png"}],"start_url": reverse_lazy("index"),"display": "standalone"}Add to your urls.py::urlpatterns += (url(r'', include('webapp_install_banner.urls')),)Add to your base template html header::{% load webapp_tags %}{% webapp_manifest %}Features--------Adds a manifest.json file, and manages detecting if started from webapp.TODO: Add service worker file.Running Tests--------------Does the code actually work?::source <YOURVIRTUALENV>/bin/activate(myenv) $ pip install -r requirements-test.txt(myenv) $ python runtests.pyCredits---------Tools used in rendering this package:*  Cookiecutter_*  `cookiecutter-pypackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackageHistory-------0.1.0 (2016-03-27)++++++++++++++++++* First release on PyPI.
Package: django-webauth
django-webauthMulti-Factor Authentication (MFA, 2FA) for Django using theWeb Authentication API.Security DisclaimerThis alpha stage software isnot production readyand requires further
hardening before it can be safely deployed into the wild.Quick StartInstalldjango-webauthusing pip$pipinstalldjango-webauthAddwebauthto INSTALLED_APPS# settings.pyINSTALLED_APPS=[..."webauth",]Add django-webauth URLs# urls.pyurlpatterns=[...path("webauth/",include("webauth.urls")),]Add Web Authentication protection to your views. How you do this depends on
whether you're protecting function views or class based views:To protect view functions:Add the@webauth_requireddecorator to disallow users that have not
authenticated with webauth.# views.pyfromwebauth.decoratorsimportwebauth_required@webauth_requireddefprivate_view(request):...To protect class based views:AddWebAuthRequiredMixinto the inheritance list on your view classes.# views.pyfromwebauth.mixinsimportWebAuthRequiredMixinclassYourClassBasedView(WebAuthRequiredMixin,View):...Set some requireddjango-webauthsettings# settings.pyWEBAUTH_RP_ID="localhost"WEBAUTH_RP_NAME="Example Site"WEBAUTH_ORIGIN="http://localhost:8000"WEBAUTH_VERIFY_URL="/webauth/verify/"Run migrations to create the table for storing authenticator data$pythonmanage.pymigrateRun your Django app and register a new security key athttp://localhost:8000/webauth/register/Navigate to a view you protected in step 4.django-webauthwill redirect
you to a page that will attempt to authenticate using your newly created key.
If successful, you will be redirected to the protected view.Customizing the built-in templatesdjango-webauthincludes templates out of the box to get you up and running.
The templates extendwebauth/base.html, which you will likely want to replace
with your own base template.Replace the built-in base template simply by creating a newwebauth/base.htmlin your app'stemplatesfolder. SeeHow to override templatesfrom the Django documentation for more info.You are also welcome, and encouraged, to replace the other included templates
with your own using the same method.Configuration settingsWEBAUTH_RP_ID: the hostname (minus scheme and port) of the server
running your Django appWEBAUTH_RP_NAME: human readable name of your server intended only
for displayWEBAUTH_ORIGIN: used for verifying assertions. Only authentication
ceremonies occurring in this origin will validateWEBAUTH_VERIFY_URL: Users not authenticated withdjango-webauthwill
redirect users here when they request a protected view. This "login" page
completes the multi-factor authentication flow.
Package: django-webbugger
# django webbugger
#### Brandon R. Stoner <monokrome@monokro.me# What is this?
Django-Webbugger is a simple application that can be used to track visitors to your website. It uses the django content-types framework to allow the most flexible approach possible for processing tracking information. This allows you to customize what data is tracked in a very flexible way.## Modes of operation
The main view used for tracking iswebbugger.views.triggerwhich normally works in redirect mode, but can optionally be told to work in pixel mode instead.### Redirect Mode
When in redirect mode, the tracking system uses a given Target class to redirect the client to another page after the tracking is finished. This accomplishes a method of tracking that is transparent to users - depending on your URL schema.### Pixel Mode
The trigger view also takes a keyword argument with the name of “pixel”. When set to True, this argument tells the view to return a 1x1 pixel clear GIF instead of redirecting the user to a new page. With this feature, it is possible to embed tracking URLs directly into pages as invisible image elements. Not only that, but you can make use of any online medium that downloads images by this system.The pixel method allows you to do more clever things, such as including tracking inside of emails in order to see if someone has viewed an email that you sent them - assuming that they have images enabled in their email client, of course.## Model structureFor everything tracked, a “Beacon” is created. This beacon represents our tracking data. Beacons can consist of a Target, an Entity, and a Source. Entity and Source are provided for systems that want to track some sort of data affiliated with their page hits. A Target is required when redirecting, but it is unneeded when using pixels for tracking.### Request Entities
An “Entity” is a django model that stores information related to an HTTP request in django. An entity can be any django model and can optionally define a method called “beacon_update” which will be called and passed the request from the tracking view prior to redirecting to our target URL. This allows you to save data from the request straight into the model very easily.### Traffic Sources
The “Source” can be any django model. This is useful for storing information regarding where the traffic came from. For instance, in an affiliate marketing system - you could use the source attribute of our beacon to reference the affiliate that sent the traffic to your site.### Target Destinations
When not being used in pixel mode, a “target” represents where to redirect traffic after the Beacon has been created. A target is simply a model that defines a get_beacon_url method, which should return a URL to the page that our “entity” will be redirected to after processing a beacon. For compatibility with other django applications, webbugger checks if get_absolute_url is defined as an attribute on our target model when get_beacon_url does not exist. If neither of these methods exist, an HTTP 404 is shown because we have nowhere to direct traffic to after creating the tracking beacon.
Package: django-webcam
django fields easy store webcam snaphot ( ie Facebook Profile )Can store in database or filesystemSupport gif/jpeg/pngManage multiple fields in the same pageWorks in the admin as any other fieldNotebased on jquery.webcam plugin from Robert Eisele (robert@xarg.org)Examplesmodels.py:from django.db import models
from webcam.fields import DBCameraField, FSCameraField
from webcam.storage import CameraFileSystemStorage

class Person(models.Model):
    picture1 = DBCameraField() # store in the database
    picture2 = FSCameraField(format='gif') # by default storen on settings.MEDIA_ROOT
    picture3 = FSCameraField(format='png',
                             storage=CameraFileSystemStorage('/absolute/path/to/'),
                             null=True, blank=True) # store on filesystemLinksProject home page:https://github.com/saxix/django-webcamIssue tracker:https://github.com/saxix/django-webcam/issues?sortDownload:http://pypi.python.org/pypi/django-webcam/
Package: django-webcam-photoupload
django-webcam-photoupload=========================This is a tool that allows people to take a photo from the browser, add a caption that will attach a logo of your choice, and submit it.  When an admin approves the image, it will render on the photo campaign index page.  Think of this as an out of the box 'wearethe99percent', without having to sign up for Tumblr and deal with their limits on photo submissions.In the future, there may or may not be integration using the Actionkit CRM, as that is what we use at CEL, and this might allow people to instantly see their image upload without requiring approval.Written mostly by Mike Vattuone at Citizen Engagement Laboratory, with support from Josh Levinger.Installation=========Pretty dang easy:* Add 'photo_upload' and 'ziplookup' to your INSTALLED_APPS. Yes, we will merge these at some point.* SyncDB (this will load fixtures from ziplookup, which might take a sec since it's a json file full of zipcodes)* Add the app to your urls.pyurlpatterns = patterns('',url(r'^photo/', include('photo_upload.urls')))* In the admin, create a Photo Campaign, including an example photo and logo, and view the campaign index page or take a picture at yourdomain.com/photo/campaign_slug* ...profit?While I am imagining a system that will easily integrate with your base template and make it so that you don't have to do any front-end to get this to play nicely, this is probably idealistic.  One thing we could try to do is create a TEMPLATE_PATH in which you would render your photo_upload views to, but this will be something for later on...Get involved=========Have an idea for how to make this more useful?  A handy abstraction?  Please let me know!
Package: django-webcampicture
django-webcampicturedjango-webcampictureis a very simple Django app that provides a specialization of Django's nativeImageField:WebcamPictureField, which allows users to save images taken from their webcams, instead of uploading.Quick startInstall usingpip:pipinstalldjango-webcampictureAdd"webcampicture"to yourINSTALLED_APPSsetting like this:INSTALLED_APPS=[...'webcampicture',]Use the field in your models:fromdjango.dbimportmodelsfromwebcampicture.fieldsimportWebcamPictureFieldclassChild(models.Model):name=models.CharField("Name",max_length=255)# WebcamPictureField takes the same parameters as ImageField,# besides the "width" and "height" positional parameters.picture=WebcamPictureField("Picture",width=480,height=360,upload_to="pictures",blank=True)# Image URL example...@propertydefpicture_url(self):ifself.pictureandhasattr(self.picture,"url"):returnself.picture.urlRemember to include in your templates:{% load static %}<linkrel="stylesheet"href="{% static "webcampicture/css/webcampicture.css"%}"><scriptsrc="{% static 'webcampicture/js/webcampicture.js' %}"></script>DemoSettings and default valuesWEBCAM_BASE64_PREFIX="data:image/png;base64,"WEBCAM_CONTENT_TYPE="image/png"WEBCAM_FILENAME_SUFFIX=".png"Overridable templateswebcampicture/webcampicture.html
Package: django-web-crawler
Crawler is a Django app to help connect to a website and gather as much links as you want.Quick startAdd “gatherlinks” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'gatherlinks',
]Import the “main” module like this:from gatherlinks.crawler import mainInitialize the StartPoint class like this:crawler = main.StartPoint(https://example.com, max_crawl=50, number_of_threads=10)The StartPoint class can be initialized with three arguments.homepage (a positional argument of the website to gather it’s link.)max_crawl (maximum number of links to gather from the website. Default is 50)number_of_threads (Number of threads to be doing the work simultaneously. Default is 10)After initialising the class, you can then call the “start” method like this:crawler.start()When the crawler must have finished gathering the link, you can access the gathered links like this:crawler.resultThat result attribute is a “set” datatype that holds all the links that the crawler could gather.
You can then loop through the “crawler.result” and do whatever you want with it (write to file or save to database).
Package: django-webdav-ui
File Manager like dropboxScreenshotFeatures文件管理多级目录分片上传文件预览评论分享操作历史Depends onDjangodjangorestframeworkrequestsWebdavReact + Vite@mui/materialQuick StartInstallpipinstalldjango-webdav-uiUpdate Settings.pyINSTALLED_APPS=[...'webdav',...]WEBDAV_HOST='localhost'WEBDAV_USER='demo'WEBDAV_PASSWORD='demopassword'Update Urls.pyurlpatterns=[...path('webdav/',include('webdav.urls')),...]Sync databasepythonmanage.pymigrateReferenceDropboxNextcloudTodo[ ] 优化安全[ ] 排序[ ] 搜索[ ] Permission Controls[ ] 收藏[ ] 最近[ ] 共享[ ] 标签[ ] Grid Display[ ] 批量操作[ ] 移动文件