Saravanan666/pypi-org huggingface dataset:
Package: django-scidatacontainer
SciDataContainer Django ServerThis is the django based implementation of the server to manageSciDataContainerobjects.DocumentationThedocumentationis hosted onRead the Docs.InstallationInstall using pip:pip install django-scidatacontainerThen add'scidatacontainer_db'and all third party libraries to yourINSTALLED_APPS.INSTALLED_APPS = [
    ...,
    'scidatacontainer_db',
    'guardian',
    'rest_framework',
    'knox',
    'django_filters',
]Finally, configure it in yoursettings.py.DefineMEDIA_ROOT. It is the location where the dataset files are stored.DefineLOGIN_URLandLOGOUT_REDIRECT_URL. This packages provides a login page that can be used.Configure the required third party packages.A good starting point might be the following configuration:AUTHENTICATION_BACKENDS = (
    'django.contrib.auth.backends.ModelBackend',
    'guardian.backends.ObjectPermissionBackend',
)

REST_FRAMEWORK = {
    'DEFAULT_AUTHENTICATION_CLASSES': [
        'knox.auth.TokenAuthentication',
        # remove the following if you only want to allow token authentification (no web browser)
        'rest_framework.authentication.BasicAuthentication',
        'rest_framework.authentication.SessionAuthentication',
        ],
    'DEFAULT_PERMISSION_CLASSES': [
        'rest_framework.permissions.IsAuthenticated', # only registered user have access.
        # 'rest_framework.permissions.AllowAny', # everyone can access the api.
        ],
    # Make sure datetime is imported!!
    # API key settings: valid for 2 weeks, but the expiration date is extended by 2 weeks every time it's used.
    'TOKEN_TTL' : datetime.timedelta(weeks=2),
    'AUTO_REFRESH' : True,
}
Package: django_scim
This is a partial provider-side implementation of the SCIM 2.0[1]specification for use in Django. It covers:Serialization of DjangoUserobjects to SCIM documentsREST view for<prefix>/Users/uidREST view for<prefix>/Users/.searchSCIM filter query parser covering all operators and most fieldsLimited pluggability supportNote that currently the only supported database is Postgres.Installation$ pip install django_scimThen add thedjango_scimapp toINSTALLED_APPSin Django’s settings
file and the necessary url mappings:urlpatterns = patterns('',
    url(r'^/scim/v2/Users/.search/?$',
        SearchView.as_view(), name='scim-search'),
    url(r'^/scim/v2/Users/([^/]+)$', UserView.as_view(), name='scim-user'),
)ExtensibilityBy default,django_scimuses the email field on theUserclass. However,
if your application maintains multiple identities using custom separate
database tables, you can overridedjango_scim.models.SCIMUserand pull that
in:from django_scim.models import SCIMUser as _SCIMUser

from acme.apps.bb.models import Identity


class SCIMUser(_SCIMUser):
    def __init__(self, user):
        super(SCIMUser, self).__init__(user)
        self.identities = (Identity.objects
                                   .filter(profile__user_id=self.user.id))

    @property
    def emails(self):
        return {i.email: i.primary for i in self.identities}Here we keep multiple email addresses in a table that is linked toUserProfile. Next, tell the views to use this class instead of the
default:url(r'^/scim/v2/Users/([^/]+)$', UserView.as_view(usercls=SCIMUser),
    name='scim-user'),When your email address live in different tables, you’ll also need to extend
the filter query parser to make sure they can be queried on:from django_scim.filter import SCIMFilterTransformer


class AcmeSCIMTransformer(SCIMFilterTransformer):
    email = lambda *args: 'i.email'

    def join(self):
        return """
            JOIN bb_userprofile p ON p.user_id = u.id
            LEFT OUTER JOIN bb_identity i ON i.profile_id = p.id
            """And pass it on to the view:url(r'^/scim/v2/Users/([^/]+)$',
    UserView.as_view(usercls=SCIMUser, parser=AcmeSCIMTransformer),
    name='scim-user'),[1]http://www.simplecloud.info/
Package: django-scim2
This is a provider-side implementation of the SCIM 2.0[1]specification for use in Django.Note that currently the only supported database is Postgres.InstallationInstall with pip:$ pip install django-scim2Then add thedjango_scimapp toINSTALLED_APPSin your Django’s settings:INSTALLED_APPS = (
    ...
    'django_scim',
)By default,request.user.is_anonymous()is checked to determine if the SCIM
request should be allowed or denied.If you have specific authentication needs, look into overriding the default “is
authenticated predicate” (i.e. seeGET_IS_AUTHENTICATED_PREDICATEfor
details) or subclassing the middleware that performs the check
(AUTH_CHECK_MIDDLEWARE).Add the necessary url patterns to your root urls.py file. Please note that the
namespace is mandatory and must be namedscim:urlpatterns = [
    ...
    path('scim/v2/', include('django_scim.urls')),
]Finally, add settings appropriate for you app to your settings.py file:SCIM_SERVICE_PROVIDER = {
    'NETLOC': 'localhost',
    'AUTHENTICATION_SCHEMES': [
        {
            'type': 'oauth2',
            'name': 'OAuth 2',
            'description': 'Oauth 2 implemented with bearer token',
        },
    ],
}Other SCIM settings can be provided but those listed above are required.PyPIhttps://pypi.python.org/pypi/django-scim2Sourcehttps://github.com/15five/django-scim2Documentationhttps://django-scim2.readthedocs.io/DevelopmentThis project uses Poetry to manage dependencies, etc. Thus to install the
necessary tools when developing, run:` poetry install `Testshttps://github.com/15five/django-scim2/actionsTests are typically run locally withtox(https://tox.wiki/). Tox will test
all supported versions of Python and Django.toxTo run the test suite with a single version of Python (the version you created
the virtualenv with), run:` poetry run pytest tests/ `Coveragehttps://codecov.io/gh/15five/django-scim2/` tox-ecoverage `LicenseThis library is released under the terms of theMIT license. Full details inLICENSE.txtfile.ExtensibilityThis library was forked and developed to be highly extensible. A number of
adapters can be defined to control what different endpoints do to your resources.
Please see the documentation for more details.PLEASE NOTE: This app does not implement authorization and authentication.
Such tasks are left for other apps such asDjango OAuth Toolkitto implement.Development SpeedSince this project is relatively stable, time is only dedicated to it on
Fridays. Thus if you issue a PR, bug, etc, please note that it may take a week
before we get back to you. Thanks you for your patience.CreditsThis project was forked fromhttps://bitbucket.org/atlassian/django_scim[1]http://www.simplecloud.info/,https://tools.ietf.org/html/rfc7644
Package: django-scraper
django-scraperis a Django application for collecting online content following user-defined instructionsFeaturesExtract content of given online website/pages and stored under JSON dataCrawl then extract content in multiple pages, with given depth.Can download media files present in pageHave option for storing data under ZIP fileSupport standard file system and AWS S3 storageCustomisable crawling requests for different scenariosProcess can be started from Django management command (~cron job) or with Python codeSupport extracting multiple content (text, html, images, binary files) in the same pageHave content refinement (replacement) rules and black words filteringSupport custom proxy servers, and user-agentsSupport Django 1.6, 1.7, and 1.8SamplesBelow is sample result from scrapinghttps://news.ycombinator.com/askResult ZIP fileJSON result via a renderer:InstallationThis application requires some other tools installed first:lxml
requestsdjango-scraperinstallation can be made usingpip:pip install django-scraperFor more and latest information about configuration or usage, please visit the repository in github:https://github.com/zniper/django-scraperSupportIf you have any questions about this application, please email to:me@zniper.net
Package: django-screener
=====Screener=====Screener is a simple Django REST app to manage phone screening. For eachscreen, users add questions and candidates.Requires--------Django REST frameworkPyPI download-------------pip install django-screenerImportant Info--------------Requires a valid token to access the API. Your site must provide its own login functionality.You can use the django-rest-auth package to handle token authentication for you.https://django-rest-auth.readthedocs.io/en/latest/installation.htmlIf you want to browse the API in the browser, a valid session will be required. You can uncomment the default session loginprovided by the Django Rest Framework in the project root urls.py for this if you do not have session loginfunctionality. Documentation for this can be found below.http://www.django-rest-framework.org/tutorial/4-authentication-and-permissions/#adding-login-to-the-browsable-apiThis is just an API. Grab the client side code from this repo https://github.com/richardleahy/ng-screenerQuick start-----------1. Add "screener and the Django REST framework" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [...'rest_framework','screener.apps.ScreenerConfig',]2. Include the screener URLconf in your project urls.py like this::url(r'^screener/', include('screener.urls')),3. Run `python manage.py migrate` to create the screener models.4. Start the development server (python manage.py runserver)5. Grab the GUI from this repo https://github.com/richardleahy/ng-screener5. Visit http://127.0.0.1:8000/screener/ to view the API. Need to add url(r'^api-auth/', include('rest_framework.urls')),to your root urls.py to be able to login if you do not already have login functionality.6. Add some questions.7. Add some screens.8. Create candidates and add them to screens9. Start phone screening!
Package: django-screenshots
DM me on github, or @barce on twitter, if
you want to see a working demo.installationpip install django-screenshots
pip install requestsset values for using environment variables:export SCREENSHOT_USER=’’
export SCREENSHOT_PASSWORD=’’
export SCREENSHOT_SERVER_URL=’’
export SCREENSHOT_FORCE_ENV=’1’set values for using django settings:SCREENSHOT_USER=’’
SCREENSHOT_PASSWORD=’’
SCREENSHOT_SERVER_URL=’’Capture a screen shot and get the URL:from django_screenshots import Builder
b = Builder(’http://www.google.com/’)
b.capture()
print(b.image_url)Get info about a screen shot:from django_screenshots import Builder
b = Builder(’http://www.google.com/’)
print(b.info())Search for a URL:from django_dscreenshots import Builder
b = Builder(’http://www.google.com/’)
print(b.search())IPFS local use:from django_screenshots import ScreenShotIpfs
import ipfshttpclient
b = ScreenShotIpfs(’https://www.reddit.com/’)
b.image_directory = ‘./tests’
b.capture()
b.upload()
b.get(b.ipfs_hash, ‘./tests/output.png’)For developers:How to upload to pypi:python setup.py sdist register upload
# python setup.py sdist
# twine upload dist/*
Package: django-scribbler
django-scribbler is an application for managing snippets of text for a Django website.
Similar projects include django-flatblocks, django-chunks and django-pagelets. This
project attempts to take some of the best concepts from those previous projects as
well as focus on giving the users instant feedback inspired by Bret Victor’sInventing on Principletalk.FeaturesSimple template tag for defining snippet blocks with default textTemplate tag for displaying and editing fields from arbitrary modelsFront-end editing of snippets with the powerfulCodeMirroreditorLive in-place preview of content while editingThe full power of the Django template language in the snippet blocksPython 3 supportInstallationdjango-scribbler currently requires Django 2.2, 3.2, or 4.0 and Python >= 3.7. Older versions of
django-scribbler may support older versions of Django and Python.To install from PyPi:pip install django-scribblerNoteIf you need to run an unreleased version from the repository, see theContributing Guidefor additional instructions.DocumentationDocumentation on using django-scribbler is available onRead The Docs.Licensedjango-scribbler is released under the BSD License. See theLICENSEfile for more details.ContributingIf you think you’ve found a bug or are interested in contributing to this project
check outdjango-scribbler on Github. A
full contributing guide can be found in theonline documentation.If you are interested in translating django-scribbler into your native language
you can join theTransifex project.Development sponsored byCaktus Consulting Group, LLC.
Package: django-script
Django-Script automates the setup and configuration of Django applications. This streamlines the development process, allowing developers to focus on building application features.Initial Commandsstartprojectdjango-script startproject <project_name>It is the initial setup process for creating a new Django project, allowing you to quickly get started with development.startappdjango-script startapp <app_name>It is used to create a new Django application within an existing Django project.FeaturesAutomatically add app name to installed apps in settings.pyIf your current directory has only a Django project, you can use commands even if you are outside the project directory.Static Commanddjango-script addstaticThis command creates all the default folders for frontend in Django.FeaturesGenerates template, static, and media folders.Adds configurations to settings.py and urls.py.React Commanddjango-script addreactThis command setup Django project with rest framework.FeaturesAdd django restframework and corsheaders configurationsGenerate React folder and install all necessary basic packages with django.(In development)Scheduler Commanddjango-script addschedulerThis command sets up Django for executing scheduled jobs in the background automatically.FeaturesAdds Django APScheduler configurations to settings.py.Creates the project with a job store for execution of tasks.Generates scheduler.py and Job.py.Detailed code explanation forschedulerMulti User Commanddjango-script addmultiuser userType1 userType2 userType3This command sets up Django with a multiuser service.FeaturesSets up Django multiuser data models.Allows you to create an unlimited number of different categories of users, such as students, teachers, employees, etc.Automatically migrates the data models to the database.
Package: django-script-codes
=============================Django Script Codes (ISO 15924)=============================.. image:: https://badge.fury.io/py/django-script-codes.svg:target: https://badge.fury.io/py/django-script-codes.. image:: https://travis-ci.org/kingsdigitallab/django-script-codes.svg?branch=master:target: https://travis-ci.org/kingsdigitallab/django-script-codes.. image:: https://codecov.io/gh/kingsdigitallab/django-script-codes/branch/master/graph/badge.svg:target: https://codecov.io/gh/kingsdigitallab/django-script-codesApplication providing access to the script codes standard ISO 15924.Documentation-------------The full documentation is at https://django-script-codes.readthedocs.io.Quickstart----------Install Django Script Codes (ISO 15924)::pip install django-script-codesAdd it to your `INSTALLED_APPS`:.. code-block:: pythonINSTALLED_APPS = (...'script_codes.apps.ScriptCodesConfig',...)To reference Script Codes in your models:.. code-block:: pythonfrom django.db import modelsfrom script_codes.models import Scriptclass MyModel(models.Model):...script = models.ForeignKey(Script, on_delete=models.CASCADE)...]Features--------* TODORunning Tests-------------Does the code actually work?::source <YOURVIRTUALENV>/bin/activate(myenv) $ pip install tox(myenv) $ toxCredits-------Tools used in rendering this package:*  Cookiecutter_*  `cookiecutter-djangopackage`_.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`cookiecutter-djangopackage`: https://github.com/pydanny/cookiecutter-djangopackageHistory-------0.1.0 (2018-11-02)++++++++++++++++++* First release on PyPI.
Package: django-script-pattern
django-script-patternThis app allows you to addscriptblocks into your pages using url patterns like:/category/*/*/subcategory/*# Includes GET parameters/products/catalog/*category=some-category*Use*to pass any symbols and$as the end.Available to use four block locations:Head - TopHead - BottomBody - TopBody - BottomInstallationInstall with pip:$pipinstalldjango-script-patternUpdate INSTALLED_APPS:INSTALLED_APPS=[...'script_pattern','django-admin-sortable2','django_jinja',# optional for jinja2 global function...]Apply migrations:$pythonmanage.pymigrateExample to use:#layout.jinja
<html lang="en">
    <head>{{get_script_pattern(request,'head','top')}}...
        some head content
        ...{{get_script_pattern(request,'head','bottom')}}</head>

    <body>{{get_script_pattern(request,'body','top')}}...
        some body content
        ...{{get_script_pattern(request,'body','bottom')}}</body>
</html>
Package: django-scripts-tracker
Django Scripts TrackerAn unofficial Django utility tool that tracks management scripts execution.What does it mean “to track script execution”?Scripts tracker watches manage.py scripts located inyour_app/management/commandsdirectory and just after you pull
some new code and apply its migrations - you will get notified about new (or modified) manage.py scripts that should
be applied for the project to work properly.Home page:https://krzysiek555.github.io/django-scripts-trackerQuick feature previewStep 1- decorate your management script handle() method with@tracked_scriptdecorator and push it to repository:class Command(BaseCommand):
    help = 'Some sample script help text'

    @tracked_script
    def handle(self, *args, **options):
        # (...)Step 2- anyone who pulls your changes and runs migrations, will get a notification message:$ python manage.py migrate
(...)
Running migrations:
  (...)
Checking management scripts:
  You have 1 new and 0 modified management scripts to be applied.
New scripts (1):
  your_app/management/commands/sample_management_script.py
    Some sample script help textInstallationInstall the app usingpippackage manager:pip install django-scripts-trackerAdddjango_scripts_trackerto yourINSTALLED_APPSsetting:# your_app/settings.py
INSTALLED_APPS = [
    # (...)
    'django_scripts_tracker',
]Run migrations in order to create tracker models:python manage.py migrateConfigure directories that should be scanned for management scripts:# your_app/settings.py
COMMANDS_DIRS = [
    'your_app/management/commands',
    'another_app/management/commands',
]UsageHow to add a new tracked script?Create a new management script under a tracked(...)/management/commands/directory (tracked directories are defined inCOMMANDS_DIRS).Decorate eitherhandle()orhandle_noargs()Command method with a@tracked_scriptdecorator.Make sure that the created script file is not ingored and is within a tracked directory.How to check if there are unapplied scripts?Script checking process takes place every time you perform DB migrations, but you can also invoke it manually:python manage.py check_scriptsHow to mark scripts as “applied” ones?Scripts are automatically marked as applied ones just after their execution.If there are some scripts that have already been applied but the tracker lists them - it is possible to mark them
manually as applied ones.To mark scripts as “applied” ones type in the following command:python manage.py check_scripts --mark-all-appliedRead moreFor more information visit home page:https://krzysiek555.github.io/django-scripts-tracker
Package: django-scrumboard
A small and easy-to-use application for intergrating SCRUM in your Django lifeWhy should I use this?It’s easy. It will boost your perfomance. It dual - offline and online.
Plus, it’s gettext translatable!Built uponhttps://github.com/i-break-codes/scrum-boardDocumentationThe full documentation is athttps://django-scrumboard.readthedocs.io.QuickstartInstall django-scrumboard:pip install django-scrumboardAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_scrumboard',...)Add django-scrumboard’s URL patterns:fromdjango_scrumboardimporturlsasdjango_scrumboard_urlsurlpatterns=[...url(r'^scrumboard/',include('django_scrumboard.urls')),...]FeaturesTODOAdd delete validation with id, title (prevent deleting other task due to offline != server tasks)Remove CSRF token from saved tasksAdd configsAdd wrong form alertsAdd alerts about offline, tasks read/created/updated/deleted online/offline – UPD: migrate to [OfflineJS](http://github.hubspot.com/offline/)Save created tasks offlineFix delete/update syncronisation between offline/onlineAdd permission checksUse django template engine instead of handlebars (?)✅ Show user when he is offline/onlineAdd service workerRunning TestsI’m not the tests guy, I can’t get myself to write them.
Maybe later i will write some - now they are useless. You can still try to launch them - no promises.Does the code actually work?source <YOURVIRTUALENV>/bin/activate
(myenv) $ pip install tox
(myenv) $ toxCreditsTools used in rendering this package:Cookiecuttercookiecutter-djangopackageHistory0.1.1 (2016-11-30)Added editing online supportFixed bugsAdded offline badge at the bottom0.1.0 (2016-11-27)First release on PyPI.
Package: django-scrup
A django-based web receiver forScrupwhich stores screencaptures on S3.FeaturesReceives POST’ed images from scrup and uploads them to S3, and returns a valid URL
for the image.There are a few things on the roadmap:Giving some consideration to security matters – right now it’s either HTTPS or
nothing.Exception handling.Thumbnail generation and storage on S3A web-based timeline showing your history of screenshot uploads so you can easily
find an old screenshot you’ve uploaded.RequirementsDjango(obviously).Boto, the python frontend to AWSInstallationGetting django-scrup can be as easy as:$ pip install django-scrupin your favorite shell.If you prefer to pull down and install the package yourself, you can always download or
checkout thelatest releaseand install via the usualpython setup.py install.Configuration and UsageFirst, add'scrup'to yourINSTALLED_APPS. Don’t forget to./manage.py syncdb!You’ll also need to define a few values in yoursettings.py:SCRUP_AWS_ACCESS_KEYYour AWS access key.SCRUP_AWS_SECRET_KEYYour AWS secret key.SCRUP_AWS_BUCKETThe bucket in which django-scrup should store the uploaded screenshots. This must
be a bucket which is writeable by the AWS user identified by the above credentials.
This bucket should besolely devoted to the use of django-scrup, as the app will
likely barf if it tries to upload a file with the same name as an existing file.
By default, the uploaded files are stored in the root of the bucket, unlessSCRUP_AWS_PREFIXis specified.SCRUP_AWS_PREFIXOptional.A relative pathname to a folder within the bucket. If this value is specified,
uploads will be copied tohttp://yourbucket.s3.amazonaws.com/<SCRUP_AWS_PREFIX>SCRUP_AWS_CNAMEOptional.A boolean value indicating whether to use the bucketname as the domain of the
returned screenshot URL. If you’ve created a CNAME for your bucket, set this toTrueand the returned URLs will be of the formhttp://<BUCKETNAME>/foovs.http://<BUCKETNAME>.s3.amazonaws.com/foo.Next, make sure to importdjango-scrup’s urls. A line like the following in yoururls.pyshould do the trick:(r'^scrup/', include('scrup.urls')),Finally, plug the URL into Scrup’s configuration. Obviously, this depends on your
server’s domain and how you’ve chosen to setupdjango-scrup’s urls. By default,django-scrupaccepts uploads atupload/<FILENAME>, where<FILENAME>is
optional. Here’s an example of the default URL scheme formydomain.com:http://mydomain.com/scrup/upload/{filename}Licensedjango-scrup is made available under the terms of thenew BSD license. For the full
legal text, please consult theLICENSE.txtfile included in the root of the source
tree.