Saravanan666/pypi-org huggingface dataset:
Package: django-sixpack
django-sixpackis a Django-friendly wrapper for thesixpack-pyclient library toSeatGeek’sSixpack,
a language-agnostic A/B testing framework.This is not a full-fledged client (it relies onsixpack-pyfor the actual connection); it’s a wrapper
to make usingsixpack-pymore friendly and declarative.Installpipinstalldjango-sixpackConfigurationSetSIXPACK_HOSTand (optionally)SIXPACK_TIMEOUTin your settings file.IfSIXPACK_HOSTis unset, it will fall back tosixpack-py’s default, which ishttp://localhost:5000. IfSIXPACK_HOSTis set toNone,django-sixpackwill
operate in test mode, which means that the control alternative (the first one listed) will be
returned for allparticipatecalls, allconvertcalls will be successful, and the exertnal
sixpack server will not be contacted.UsageFirst, define a test somewhere:fromdjsixpack.djsixpackimportSixpackTestclassButtonColorTest(SixpackTest):alternatives=('RED','BLUE')If you go into the Sixpack web dashboard, you’ll see this as a test calledbutton_color, with
the control being the alternativeRED(the first alternative listed will be considered the control).When it’s time to add a user to the test:expt=ButtonColorTest(request.user)bucket=expt.participate()context={}ifbucket==ButtonColorTest.RED:context={'color':'#FF0000'}elifbucket==ButtonColorTest.BLUE:context={'color':'#0000FF'}SixpackTest.participatewill return the alternativerequest.useris bucketed into - and all alternatives
will be available as class properties.When instantiating aSixpackTesttest, the only argument the constructor takes is the model instance
which is used to represent the person seeing this test. By default,SixpackTestwill use the instance’spkattribute as the unique identifier to represent this person - but this can be overridden by setting theunique_attrclass attribute.For example, you could have aBusinessmodel class which represents a person, and it has a attribute calledglobal_idwhich represents a cross-platform way of identifying a particularBusiness. In that case,
you could do:fromdjsixpack.djsixpackimportSixpackTestclassButtonColorTest(SixpackTest):unique_attr='global_id'alternatives=('RED','BLUE')At any point, you can check theSixpackTest.client_idproperty to see what’s being used as theclient_id.If something ever goes wrong - a request times out, thesixpackserver disappears, etc. - allparticipatecalls will return the control alternative, and allconvertcalls will seem successful (and we’ll note this happend
in the log).Suported Versionsdjango-sixpackwill work with all version of Django >= 1.4, however the test suite requires Django >= 1.6.Licensedjango-sixpackis released under the MIT license.ContributeCheck for open issues or open a fresh issue to start a discussion around a feature idea or a bugFork the repository on GitHub to start making your changes to the master branch (or branch off of it)Send a pull request and bug the maintainer until it gets merged and publishedAdd yourself to theAUTHORSfileThanksSeatGeek, for being great
Package: django-sizedimagefield
Django SizedImageFieldWhat is it ?SizedImageField is a Django field which will automatically resize image to fit a defined dimension.
Because it inherits from ImageField, all the usual ImageField attributes are available.
It uses PIL which is already a requirement to use Django ImageField.Examplefromsizedimagefield.fieldsimportSizedImageFieldclassArticle(models.Model):thumbnail=SizedImageField('thumbnail',width=150,height=150,upload_to='articles/')CompatibilitiesIt has only been tested with Django 1.11 and Python 3.6.InstallationInstalling from pypi (using pip).pip install django-sizedimagefieldInstalling from github.pip install -e git://github.com/makinacorpus/django-sizedimagefield.git#egg=django-sizedimagefieldAddsizedimagefieldin yourINSTALLED_APPS:INSTALLED_APPS = [
    'sizedimagefield',
    [...]
]The application doesn’t have any special requirement.LicensingPlease see the LICENSE file.ContactsCHANGELOG0.1.1Fixed installation0.1** New **Initial release
Package: django-sizefield
django-sizefieldis a file size field, stored as BigInteger and rendered
with units in Bytes (KB, MB, …)INSTALLpip install django-sizefieldUSAGEModel fieldclass Data(models.Model):
    path = models.FilePathField()
    size = FileSizeField()The model form will have a TextInput, which renders the
value with units, and accepts values with or without units.Template filterIt adds units to any number value:{% load sizefieldtags %}

{{ value|filesize }}will render 12.3KB (for example)AUTHORSMathieu Leplatre <contact@mathieu-leplatre.info>Alexander (@meteozond)Tom Yam (@perez)LICENSELesser GNU Public LicenseCHANGELOG2.1.0 (2023-06-29)Remove usage of removed functions in Django 4 (thanks @hagbarddenstore)2.0.0 (2020-08-13)Dropped support for python 2Dropped support for Django <2Moved testing to GitHub Actions and tox1.0.1 (unreleased)Nothing changed yet.1.0.0 (2019-06-21)Fix support of Django 1.11/20.9.1 (2016-04-13)Fix lazy loading of translation infrastructure (#15, thanks @cemiarni).0.9 (2015-11-12)Add support for unitless values (#13, thanks @megapctr)0.8 (2015-10-04)Add support for Python3 (thanks @naxube)0.7 (2015-03-13)Add Zetta and Yotta support (thanks @meteozond)Fix bug with big values (fixes #8, thanks @meteozond)0.6 (2014-09-25)Add Exabytes support (thanks Matt Pritchard)0.5 (2014-06-18)Fix template tag not support None values (fixes #4)Support comma notation for float values (fixes #5)0.4 (2013-08-25)Complete refactor by @perez0.3 (2013-06-08)South support by @meteozond0.2 (2013-05-31)Petabytes support by @meteozond0.1 (2011-01-04)Initial working version.
Package: django-skebby
django-skebby===================A simple Django app to send sms by Skebby.Usage-----In settings.py:SKEBBY_USERNAME = 'yourskebbyusername'SKEBBY_PASSWORD = 'yourskebbypassword'# If SSL cert is not validSKEBBY_VERIFY_SSL_CERTIFICATE = False# If SSL does not work at all#SKEBBY_URL = "http://gateway.skebby.it/api/send/smseasy/advanced/http.php"# If you have *requested and obtained* the raise to 100000 messages per request#SKEBBY_MAX_RECIPIENTS = 100000# default method is classicSKEBBY_DEFAULT_METHOD = "basic"In your code:from django_skebby.utils import Sms, skebby_credit_left# greetings to some peopletemplate = "Good {{ festivity }}{% if friend %} {{ friend }}{% endif %}!"ctx = {'festivity': 'birthday'}sms = Sms(template, ["39123456789", "3912346788"], sender_string="Your friend", ctx=ctx)ret = sms.send()# Skebby has a recipient limit of 50000 numbers that can be raised to 100000 on request# The app will take care of itself depending on settings.SKEBBY_MAX_RECIPIENTSfailed_requests = [r for r in ret if r.skebby_error]if failed_requests:print "some errors!"# to a special friendctx = {'festivity': birthday, 'friend': 'Doge'}r = sms.send_single(ctx, "3912345679")if r.skebby_error:print "failed to greet :( %s" % (r.skebby_response)# check creditcredit = skebby_credit_left()if credit.skebby_error:print "failed to get credit"else:print credit.skebby_responseA view that returns the credit in json format is available, to enable it add the app:INSTALLED_APPS = (...'django_skebby',)include the urls:url(r'^skebby/', include('django_skebby.urls')),add use it:<script>$.get('/skebby/credit_left/', function(data) {console.log(data['credit_left']);console.log(data['classic_sms']);console.log(data['basic_sms']);});</script>
Package: django-skeleton
# django-skeletonA template repository of Django admin features and style enhancements.Detailed documentation is in the “docs” directory.Quick startAdd “skeleton” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'skeleton',
]Include the skeleton URLconf in your project urls.py like this:path('admin/', include('skeleton.urls')),Runpython manage.py migrateto create the skeleton models.Start the development server and visithttp://127.0.0.1:8000/admin/.
Package: django-skeleton-setup
A simple application to quickly setup settings files without too
much hassle.Installationpip installdjango-skeleton-setupConfigure Settings and Environment FilesAdd “skeleton_setup” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'skeleton_setup',
]If your application settings uses default WSGI_APPLICATION move to step 4 else to step 3Set following variable to settings.py.SKELETON_SITE_ROOT =Path(__file__).resolve().parentRunpython manage.py skeleton_setupto create copy following files:settings_common.pysettings_local.pysettings_production.pyenv_local.envAdd following line to end of settings.py filefrom .settings_common import *Database setup is based on postgres, if other database is used then to avoid runserver errorchange DATABASES dict as requiredChange the following env file for local developmentenv_local.envEdit env files or settings files as per your requirementsCreating a new app provided by skeleton setupMinimal command similar to startapp of django-adminpython manage.py skeleton_startapp app_name to_pathParameter “app_name” is requiredParameter “to_path” is optional and is path string value relative to BASE_DIR where
you want to create the appApp with following structure will be created:├── api
│   ├── __init__.py
│   ├── urls.py
│   └── views.py
├── migrations
│   └── __init__.py
├── serializers
│   └── __init__.py
├── services
│   └── __init__.py
├── templates
├── tests
│   └── __init__.py
├── __init__.py
├── admin.py
├── apps.py
├── forms.py
├── model_managers.py
├── models.py
├── signals.py
└── urls.py
└── utils.py
└── views.pyDon’t like app structure provided by this?No problem you can create your own app structure and use this commandCreate a template structure for your application.
Use“*.py-tpl”instead of"*.py"files.Example template:├── api
│   ├── __init__.py-tpl
│   ├── urls.py
│   └── views.py
├── migrations
│   └── __init__.py-tpl
├── tests
│   └── __init__.py-tpl
├── utils
│   └── __init__.py-tpl
├── static
│   └── assets
│   └── js
│   └── css
├── templates
├── admin.py-tpl
├── apps.py-tpl
├── models.py-tpl
└── urls.py-tpl
└── views.py-tplAdd following variable to settings.pySKELETON_STARTAPP_SOURCE="path/to/your/template/"Now run the commandpython manage.py skeleton_startapp app_name to_pathIf you still want to have finer control over the app creation. Extend the following class:skeleton_startapp.CommandCreating a user appDEPENDENCIES: djangorestframeworkCreates an app for handling users.Command similar to startapp of django-adminpython manage.py skeleton_startuserapp app_name to_pathThe command prompts for:UserModel [Suggestion: UpperCamelCase]

db_table [Suggestion: snake_case] [Optional]An app is created with given app_nameModify the app as requiredAdd it to INSTALLED_APPS in settings.pyMake migrations and migrate
Package: django-skin
===========DJANGO-SKIN===========Adds the ability to add "skins" to django projects by adding a custom template loader. This is useful if you have asingle code base with multiple deployments*************Documentation*************Add to ``INSTALLED APPS``=========================Add the module to your installed apps... code-block:: pythonINSTALLED_APS = (...'skin')Use a skin==========There are two different ways you can use skins with django-skin. Using the new template loaders will add skinsglobally to any Template views. Using the new `TemplateSkinView` will allow you to explicitly add a skin to aspecific views.Template Loader---------------Add either of the template loaders to the top of your ``TEMPLATE_LOADERS`` in settings.py.. code-block:: pythonTEMPLATE_LOADERS = ('skin.template.loaders.filesystem.Loader','skin.template.loaders.app_directories.Loader','django.template.loaders.filesystem.Loader','django.template.loaders.app_directories.Loader',)Custom View-----------You can also just use the `TemplateSkinView` to allow only specific views to be skinned... code-block:: pythonfrom skin.views import TemplateSkinViewclass YourView(TemplateSkinView):template_name = 'yourview.html'def get(self, request, **kwargs):# Your view codeYou can also set two different attributes when using this view to overwrite the skin.* *skin_name:* setting this will override what is in settings.SKIN_NAME* *skin_path:* setting this will specify the exact path and will cause the view to ignore `skin_name` and anycreated `SiteSkin`s.Run migrations==============If you have south, run migrations.. code-block:: bash$ python manage.py migrate skinCreate skin in admin====================go to http://yoursite/admin/skin/add/ and add the skin.Add skin folders================Add any folders under normal template directories (see `TEMPLATE_DIRS` in settings.py).* templates/index.html* templates/skin/index.htmlIf a view has a ``template_name`` of `'index.html'`, it will first look for it in the `templates/skin` folder, thenit will look in the `templates` folder (assuming you also have the default Django template loaders set up in``TEMPLATE_LOADERS``.
Package: django-skins
easily apply skins to your django web appDocumentationThe full documentation is athttps://django-skins.readthedocs.io.QuickstartInstall Django Skins:pip install django-skinsAdd it to yourINSTALLED_APPS:INSTALLED_APPS=(...'django_skins',...)Add django_skins.context_processors.template to context_processors:TEMPLATES=[...'OPTIONS':{'context_processors':[...'django_skins.context_processors.template',],...]History0.1.0 (2021-04-24)First release on PyPI.
Package: django-skosxl
Django-SKOSXLWhat is django-skosxl good for?django-coop is a set of several apps to make different websites cooperate. It is based on Django.Websites often need to categorize things, but when time comes for agregating all the data and gather them by tags or categories, we often have face the fact that we have differents systems. Term reconciliation is a hard task.The W3C SKOS specification allows us to define schemes of related Concepts, and the XL extension to the SKOS RDF vocabulary allow us to specify different labels in different languages, so you can have a “preferred label” for english, for french, and alternative or hidden labels too.The goal is here is to allow free tagging of objects (folksonomy), but then regroup similar terms into common concepts. And finally link the concepts between them, using the SKOS relations (broader, narrower, related).The label management part of this app is built around django-taggit, in order to ease end-user input of the labels.
The django admin site then allows an administrator to link labels to concepts and model its SKOS concept tree.Licensedjango-skosxl uses the same license as Django (BSD-like).
Package: django-skwissh
DEMO SITE: Visit theSkwissh demo(usernametest/ passwordtest) to see Skwissh in action.More info:Github Pages for SkwisshPython Package Index:django-skwisshTravis:Last build statusIntroductionA Django application for remotely monitoring servers using SSH.In background (crontabed jobs) Skwissh usesPython Fabricto execute SSH commands, aka. “sensors”, get the output and store timestamped values.
Measures are taken every minute.On the other side, Skwissh is able to display nice charts (linechart, piechart or simple text) with aggregated measures.Default sensors available (tested on Ubuntu 12.04) :MemoryCPUWaitIOLoad AveragesDisk usageTopBut you can easily add your own ones !!Follow @skwissh onTwitterto see latest updates.InstallationSkwissh can be installed from Pypi:pip install django-skwisshConfigure your Django project in a normal way (database, etc…).Addskwisshandkronosto your DjangoINSTALLED_APPS:INSTALLED_APPS = (
    ...
    'kronos',
    'skwissh',
)Add Skwissh to yoururls.py:# Skwissh
url(r'^skwissh/', include('skwissh.urls')),Synchronize your database (this command will load defaut sensors through fixtures):./manage.py syncdbInstall Skwissh tasks (will write to your user crontab, thanks to ‘django-kronos’):./manage.py installtasksYou can check that 4 crontab job have been configured:crontab -lIf you want to activate i18n (French & English currently supported), follow the next steps:In your projectsettings.py, add the DjangoLocaleMiddlewareand set theLANGUAGESvariable:MIDDLEWARE_CLASSES = (
   ...
   'django.middleware.locale.LocaleMiddleware',
   ...
)

LANGUAGES = (
   ('fr', 'Français'),
   ('en', 'English'),
)You’re ready to go !
Connect to the application and start configure your servers and sensors !ScreenshotsLoad averagesDisk usageTop outputServer editionSensor editionCreditsUses Django 1.4.1 (https://www.djangoproject.com).Uses Django applications and addons :django-kronos (https://github.com/jgorset/django-kronos) from Johannes Gorset (https://github.com/jgorset).django-extra-views (https://github.com/AndrewIngram/django-extra-views) from Andrew Ingram (https://github.com/AndrewIngram).Uses Fabric (http://fabfile.org) SSH Python library.Uses jqPlot (http://www.jqplot.com) jQuery plotting and charting library.Uses Zurb Foundation (http://foundation.zurb.com) responsive CSS/JS/HTML bootstrap.Includes icons from TheNounProject (http://thenounproject.com).
Package: django-skylark
What is this?Web development can be a pain.  HTML, CSS, Javascript, DOM; it’s a few inches
shy of bamboo under your fingernails.  If you have a large application with a
few people working on it can get even worse.Django Skylark attempts to make some of this better by:Letting you describe your pages and something else assemble itManaging your mediaProviding a thin Javascript framework for those that don’t need magicUsing Django SkylarkDjango Skylark is a Django app.  You can install it with pip:pip install django-skylarkInside your settings.py add the following:INSTALLED_APPS = (
    'skylark',
)DocumentationYou canview it online.Or run these commands to build it locallypython bootstrap.py --distribute
./bin/buildout
cd docs
make html; open _build/html/index.htmlNews0.4.6Release date: 06-Apr-2011Fix to chmod cachedirectory as well0.4.5Release date: 06-Apr-2011Setting proper permissions for directories0.4.4Release date: 06-Apr-2011Added support for Django’s FILE_UPLOAD_PERMISSIONS when copying media0.4.3Release date: 01-Apr-2011Added support Dojo 1.60.4.2Release date: 01-Apr-2011Added support for STATIC_ROOT and STATIC_URL for destination for copying media0.4.0a3Release date: 28-Jan-2011Added support for rendering less.js on the server side. Need to have less.js installed into node.js0.4.0a1Release date: 07-Sep-2010Renamed the project to django-skylarkAdded support for html5Added support for less.jsUpgraded to Dojo 1.5.0
Package: django-slack-app
Django Slack IntegrationThis application helps you to integrate your existing Django application with Slack.It provides you withModels - needed to keep information from Slack APIDecorators - help you to write implementation of your Slack endpointsAuthorisation backend - allows you to pair your existing user model with your Slack usersViews - OAuth callbacks for "Add To Slack" and "Login With Slack" actionsInstallationAdd 'slack_app' to your INSTALLED_APPS setting like this:INSTALLED_APPS=[...'slack_app',...]Include the urls in your projecturls.pylike this:path('slack/', include('slack_app.urls')),Runpython manage.py migrateto create theslack_appmodels.Addslack_app.auth_backends.SlackAuthenticationBackendto yourAUTHENTICATION_BACKENDSAUTHENTICATION_BACKENDS=['django.contrib.auth.backends.ModelBackend','slack_app.auth_backends.SlackAuthenticationBackend',]Update yoursettings.pySLACK_CLIENT_ID=""SLACK_CLIENT_SECRET=""SLACK_SIGNING_SECRET=""SLACK_LOGIN_OAUTH_REDIRECT_URL=""SLACK_INSTALL_OAUTH_REDIRECT_URL=""Add following URLs to your Slack app's Redirect URLs (OAuth & Permissions)<your_host>/slack/oauthcallback/
<your_host>/slack/login/(Optional) Put<your_host>/slack/interactivity/as your Request URL inInteractive Componentssection(Optional) Configure your Slash commands's Request URL as<your_host>/slack/commands/<command_name>/UsageSlack commandsIf you want to create a new Slack command with name/example, configure your Request URL as<your_host>/slack/commands/example/and put the following code intoslack.pyinside your app's directory.@slack_command('example',require_linked_account=True)defscrumie_staging_command(request,slack_user_mapping,slack_workspace):print(slack_user_mapping,slack_workspace)returnJsonResponse({"blocks":[{"type":"section","text":{"type":"mrkdwn","text":"Hello _world_"},}],"text":"Hello World"})Slack InteractivityPut the following to yourslack.pyinside your app's directory.@slack_interactivity('block_actions')defprocess_block_actions(payload):print('>>>>',payload)returnHttpResponse()
Package: django-slack-event-wrapper
DJANGO SLACK EVENT WRAPPERThis is a django wrapper to handle slack events and slash commands.
It also verifies incoming events using x-slack-signature and x-slack-timestamp.
It receives slack events, slash commands and delivers gracefully with the events.CONFIGURATION AND SETUP>settings.py
INSTALLED_APPS = [
    'django_slack_event_wrapper',
    ...
]

CONFIGURATIONS
=============

VERIFICATION_TOKEN = XXXXXXXXXXXXXXXXXXXXX
SIGNING_SECRET = XXXXXXXXXXXXXXXXXXXXX
APP_ID = XXXXXXXXXXXXXXXXXXXXX
OAUTH_TOKEN = XXXXXXXXXXXXXXXXXXXXX
BOT_ID = XXXXXXXXXXXXXXXXXXXXX>urls.py
    open your projects urls.py file and add the following
    urlpatterns = [
        path('slack-app/', include('django_slack_event_wrapper.urls')),
        ....
    ]
    Note: you can change the name from slack-app to whatever you like.When registering your webhook urls to slack, you use the following:1. For Events: http[s]://yourdomain.name/slack-app/events [If you changed the root url name, you but that instead of slack-app]

    2. For Slash Commands: http[s]://yourdomain.name/slack-app/slash-commands [If you changed the root url name, you but that instead of slack-app]EXAMPLENOTE: Create A slack.py file
    from django_slack_event_wrapper.dispatcher import slack_event_emitter, slash_command_emitter
    from rest_framework.response import ResponseEVENT@slack_event_emitter("message")
    def on_message(event, **kwargs):
        print(event)
        # have funSLASH COMMAND@slash_command_emitter('/message-count')
    def message_count(user_id, channel_id, slash_event_data, **kwargs):
        print(user_id, channel_id)
        # have funChange Log==========0.1.12(11-10-2021)First Release
Package: django-slack-invitation
django-slack-invitationinvites users to Slack automatically when Django users are registered.Supported python versions2.7, 3.3, 3.4, 3.5Supported django versions1.7 - 1.10InstallationInstall using pippipinstalldjango-slack-invitationUsageAddslack_invitationintoINSTALL_APPSinsettings.pyfileINSTALLED_APPS+=('slack_invitation',)AddDJANGO_SLACK_INVITATION_TEAMandDJANGO_SLACK_INVITATION_TOKENinsettings.pyfileDJANGO_SLACK_INVITATION_TEAM='your-slack-team-name'DJANGO_SLACK_INVITATION_TOKEN='your-slack-token'Executeregister_slack_invitationonmodels.pyorurls.py.fromslack_invitationimportregister_slack_invitationregister_slack_invitation()When Django users are registered, invitation mail will send automatically.Authorgiginet <giginet.net@gmail.com>LICENSEMIT License
Package: django-slack-logger
Django errors to Slack channel.Quick startAdd “django-slack-logger” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'django-slack-logger',
]Config:SLACK_WEBHOOK_URL = "https://hooks.slack.com/services/XXXX/XXXX/XXXX"

 1. To create slack app goto `https://api.slack.com/apps` and create new app
 2. In `Create a Slack App` popup enter App Name you want. and select workspace
                    and click on Create App.
 3. After creating app under `Add features and functionality` tab click on `Incoming Webhooks` and make it turn on
 4. Click on "Add New Webhook to Workspace" in new page select channel to post to as an app
 5. Copy `Webhook URL` and set to **SLACK_WEBHOOK_URL**

SLACK_ERROR_LEVEL** = ["ERROR", "CRITICAL"] # only this logs are send to slack channel "*" for all


SLACK_WITH_EMAIL = False # if you want logs in mail default `False` - This will requires email django email configuration to settings.py file


    EMAIL_HOST = 'smtp.gmail.com'
    EMAIL_PORT = 587
    EMAIL_HOST_USER = 'your@gmail.com'
    EMAIL_HOST_PASSWORD = 'password'
    EMAIL_USE_TLS = True
    ADMINS = [('Your Name', 'your@gmail.com'),]

SLACK_SHORT_MESSAGE = False