Saravanan666/pypi-org huggingface dataset:
Package: django-pikaday
Django PikadayA simple app that provides easy integration with the Pikaday Datepicker.MIT licensedCompatibilityDjango 1.4, 1.5, 1.6Python 2.7, 3.xBrowsers: Chrome, Firefox 3.5, IE8, Opera 10, Safari 3.2 and laterInstallationpipinstalldjango-pikadayOr install directly from master branch:pipinstallgit+http://github.com/caioariede/django-pikaday.git#egg=django-pikaday==1.0ConfigurationAdddjpikadayto theINSTALLED_APPSsetting.Usagefromdjangoimportformsfromdjpikaday.widgetsimportPikadayInputclassYourForm(forms.ModelForm):widgets={'my_date_field':PikadayInput(),# Uses DATE_FORMAT}Using a custom formatfromdjangoimportformsfromdjpikaday.formsimportPikadayFieldclassYourForm(forms.ModelForm):# Needs to use the format described in:# http://docs.python.org/2/library/datetime.html#strftime-strptime-behaviorwidgets={'my_date_field':PikadayInput(format='%Y-%m-%d'),}
Package: django-pika-pubsub
Django-pika-pubsub is a simple Django app to publish and consume rmq-messages via Pika.Using default rmq exchange.Quick startAdd “django_pika_pubsub” to your INSTALLED_APPS setting like this:INSTALLED_APPS = [
    ...
    'django_pika_pubsub',
]Add the following to your settings.py module:PUBSUB = {
        'RABBITMQ_USERNAME': os.getenv('RABBITMQ_USERNAME'),
        'RABBITMQ_PASSWORD': os.getenv('RABBITMQ_PASSWORD'),
        'RABBITMQ_HOST': os.getenv('RABBITMQ_HOST'),
        'RABBITMQ_PORT': int(os.getenv('RABBITMQ_PORT')),
}Do something similar for producing messages:from django_pika_pubsub import Producer
...
producer = Producer.get_producer()
producer.produce(
        body={'id': order.id},
        routing_key='order.sent.order_id.1.0.0'
)Do something similar for consuming messages:consumer = MyConsumer.get_consumer()
consumer.consume(
        routing_key='test',
        callback=callback,
)


def callback(channel, method, properties, body):
        payload = json.loads(body)
        order_id = payload.get('id')
        if order_id:
                print(f'{order_id=}')
Package: django-pikpdf
django-pikpdf - propper html to pdf generatordjango-pikpdf is a Django app to generate pdfs from html templates.
This app will capture the html from a template and convert it to a pdf file
with all styles in tact.Generator method returns htp responce which you can directly return to screen and file bytes, if you want to attach file to email, or return different responseThis generatordoes not rely on xhtml2pdfGenerator uses api onwww.pikutis.ltsite. No information sent to api is stored longer than required for processing.To obtain API key, use contact form in the site.Quick startAdd "django-pikpdf" to your INSTALLED_APPS setting like this::INSTALLED_APPS = [
    ...,
    "django-pikpdf",
]Add the following settings to your settings.py:PIKUTIS_API_KEY=os.environ.get("PIKUTIS_API_KEY", None) # can be obtained from https://www.pikutis.lt for free
SITE_URL = os.environ.get("SITE_URL", "https://www.pikutis.lt") # your website urlInclude conversion method get_document_pdf_response as so:from django_pikpdf.utils import get_document_pdf_responseUse the method to convert your html to pdf and return a response:html_content = render_to_string("my_template.html", context)
file_name = "my_pdf_file"
http_response, file_bytes = get_document_pdf_response(html_content, file_name)
# HTTP response is a response object which will display pdf in browser screen
# file_bytes is the pdf file buffer, which you can i.e. attach to email
return http_responseThat's it! You can now convert your html to pdf and return it as a response.
Package: django-pin
django pinterest like apllicationInstallationRequirements:pip install -r requirements.txtTo install:pip install django-pinThen addpinto yourINSTALLED_APPS:INSTALLED_APPS=(...'pin','django.contrib.comments','django.contrib.humanize','django.contrib.flatpages','daddy_avatar','sorl.thumbnail','taggit','compressor',...)In your urls.py:urlpatterns=patterns('',url(r'pin/',include('pin.urls')),# other urls ...)Live demohttp://www.wisgoon.com/pin/http://www.shiastock.com/
Package: django-pinba
Django-Pinba============What's that-----------App for collect Django statistics into PinbaEngine.Publications-----------* `Completely installation and usage on production <http://habrahabr.ru/post/200128/>`_.Quick installation------------------1. Using pip:.. code-block:: bash$  pip install django-pinba2. Add ``pinba.middleware.PinbaMiddleware`` middleware to ``MIDDLEWARE_CLASSES`` on your settings3. Add pinba-engine server configuration:.. code-block:: pythonPINBA_SERVER = '192.168.55.11'PINBA_PORT = 30002PINBA_ENABLED = TruePINBA_DISABLE_ADMIN = TrueTimers------.. code-block:: pythonfrom time import sleepfrom pinba.timers import get_monitormonitor = get_monitor()timer = monitor.timer(foo='bar')timer.start()sleep(0.5)timer.stop()monitor.send()Requirements------------* PinbaEngine==1.1.0* Pinboard==1.5.2* pynba==0.5.4Credits-------- PinbaEngine_- Pynba_- PinBoard_.. _PinbaEngine: http://pinba.org.. _Pynba: https://github.com/johnnoone/pynba.. _PinBoard: https://github.com/intaro/pinboard.. image:: https://d2weczhvl823v0.cloudfront.net/gotlium/django-pinba/trend.png:alt: Bitdeli badge:target: https://bitdeli.com/free
Package: django-ping
Django Ping is utility that provides a lightweight endpoint for availability and uptime monitoring services. It
also provides hooks for testing stack components and reporting them via JSON.InstallationUse pip to download and install:pip install django-pingAdd Django Ping to url conf:url(r'^ping/', include('ping.urls')),Basic ConfigurationHitting the endpoint returns a simple status 200 response.
You can customize the message by adding to your Django settings:PING_DEFAULT_RESPONSE = "All systems go!"
PING_DEFAULT_MIMETYPE = 'text/html'Hitting the url:/pingdisplays:All systems go!Advanced ConfigurationEnable Status ChecksAdding achecks=trueparameter to the url tells Django Ping to run
a series of status checks and reports the results.For example:/ping?checks=truedisplays:Your site is up!
db_sessions True
db_site TrueBy default, Django Ping tests that your Database is responding
by using supplying two tests.  You can supply your own tests
to make sure everything is responding as expected. If you don’t
use database sessions or the contrib.sites app, you can removed
remove the ones you don’t need.To customize, include a tuple in your Django settings:PING_CHECKS = (
    'ping.checks.check_database_sessions',
    #'ping.checks.check_database_sites',
    'my_app.module.check_function',
    'my_other_app.some_module.some_function'
)Specifying afmtparameter tojsonreturns more detailed and serialized data.
For example:/ping?fmt=jsondisplays:{
    "db_sessions": true,
    "db_site": true
}Custom Status ChecksChecks should accept the request object and return
two values. The name/key to be displayed
and the value of the check. The value should be anything
that can be serialized.:def check_sample(request):
    #...do some things...
    return 'foo', True
    #or
    return 'bar', float(123.456)
    #or even
    return 'baz', ['one', 'two', 'three', {'a':1, 'b':2, 'c':3}]Then, add that to thePING_CHECKStuple to display:{
    'foo', true
}Included Status ChecksDjango Ping includes a few checks to test various components
live.check_database_sessions- Hits your database and attempts to retrieve a single session.check_database_sites- Hits your database and attempts to retrieve a single site instance.check_cache_set- Attempts to cache a value using the current cache backend defined.check_cache_get- Attempts to retrieve a cached value using the current cache backend defined.AuthenticationYou can require HTTP Basic authentication to access the ping endpoint,
setPING_BASIC_AUTHtoTruein your Django settings.Provide in the request the username/password of a valid User.What’s Next?Go sign up for a monitoring service or role your own.https://www.pingdom.com/http://www.panopta.com/http://binarycanary.com/
Package: django-ping-me
Django ping-me applicationThis app has to be integrated into an existing django website.The purpose of this application is to establish an HTTP connection with a web server list in order to make availability statistics.Quick startAdd "ping-me" to your INSTALLED_APPS setting like this:INSTALLED_APPS = [  
    ...  
    'django_ping_me',
]Include the ping-me URLconf in your project urls.py like this:path('ping-me/', include(('django_ping_me.urls', 'ping_me'))),Runpython manage.py migrateto create models.Start the development server and visithttp://127.0.0.1:8000/ping-meto check if everything is ok.Override those ugly templatesYou can add atemplates/ping_mefolder in your base application to override default templates.Have a look ondefault templatesto see how to override them.
Keep in mind that some features (like edit or delete a server) usebootstrappopups and AJAX calls.
Package: django-pin-passcode
django-pin-passcodeThis is a simple app that adds a site wide pin-passcode for quick authentication. I wrote this originally for my personal
motivation trackerchin upso I could quickly login from my phone.You enter a PIN passcode (using 0-9 and #, can use numpad) until the correct pin is entered, then:IfPIN_PASSCODE_USERNAMEis set, you will be logged in as this userOtherwise, a session variable will be set and you will be able to browse the siteInstallationpipinstalldjango-pin-passcode# settings.pyINSTALLED_APPS+=('pin_passcode',)...MIDDLEWARE_CLASSES+=('pin_passcode.middleware.PinPasscodeMiddleware',)...# user to sign in as, omit this option to use a session variable instead# PIN_PASSCODE_USERNAME = 'eric' # uncomment this to login as "eric" after valid pin code is entered# the passcode required to login as the above user, using 0-9 and '#'# If no PIN is set, pin passcode will allow anyone to access the sitePIN_PASSCODE_PIN=1234# IP addresses to give access to automaticallyPIN_PASSCODE_IP_WHITELIST=('123.123.123.123',)# urls.pyurlpatterns=patterns(...url(r'^',include('pin_passcode.urls')),...)Testingpip install -r requirements.txtpy.testRelease notes0.3.1EmptyPIN_PASSCODE_PINdisables pin passcode0.3.0Switched to Python 3 and added support for Django >= 2.10.2.0AddedMiddlewareMixinfor > Django 1.10 compatibility
Package: django-pipedrive
# django_pipedrive[![CircleCI](https://circleci.com/gh/MasAval/django_pipedrive.svg?style=svg)](https://circleci.com/gh/MasAval/django_pipedrive)[![codecov](https://codecov.io/gh/MasAval/django_pipedrive/branch/master/graph/badge.svg)](https://codecov.io/gh/MasAval/django_pipedrive)django_pipedrive is a simple Django app to post data to the Pipedrive service and keep track of its online data.The app listens for the Pipedrive webhooks for every event as for version 1 of the API.Quick start-----------1. Add "django_pipedrive" to your INSTALLED_APPS setting like this::```pythonINSTALLED_APPS = (...'django_pipedrive',)```2. Configure the variable "PIPEDRIVE_API_KEY" in settings like this::```pythonPIPEDRIVE_API_KEY="your_actual_pipedrive_api_key"```3. Include the django_pipedrive URLconf in your project urls.py like this::```pythonurl(r'^django_pipedrive/', include('django_pipedrive.urls')),```4. Run `python manage.py migrate` to create the django_pipedrive models.5. Start the development server and visit http://127.0.0.1:8000/django_pipedrive/to verify that the server is listening for webhooks (you'll just read a Hello World, but that is enough to check that the server is working).6. Register the url as a webhook at https://yourdomain.pipedrive.com/webhooks## Available Models- pipedrive.User- pipedrive.Pipeline- pipedrive.Stage- pipedrive.Person- pipedrive.Organization- pipedrive.Deal- pipedrive.Activity- pipedrive.Note### Model conventionsAll models have field called 'external_id' which is the corresponding 'id' at Pipedrive.## CompatibilityThe app has been tested with Django1.8 and Postgres 9.5.6## CaveatsAs for the first version of the app, it requires the extension HStore of postgres to deal with Pipedrive's custom fields
Package: django-pipedrive2
# django_pipedrive[![CircleCI](https://circleci.com/gh/MasAval/django_pipedrive.svg?style=svg)](https://circleci.com/gh/MasAval/django_pipedrive)[![codecov](https://codecov.io/gh/MasAval/django_pipedrive/branch/master/graph/badge.svg)](https://codecov.io/gh/MasAval/django_pipedrive)django_pipedrive is a simple Django app to post data to the Pipedrive service and keep track of its online data.The app listens for the Pipedrive webhooks for every event as for version 1 of the API.Quick start-----------1. Add "django_pipedrive" to your INSTALLED_APPS setting like this::```pythonINSTALLED_APPS = (...'django_pipedrive',)```2. Configure the variable "PIPEDRIVE_API_KEY" in settings like this::```pythonPIPEDRIVE_API_KEY="your_actual_pipedrive_api_key"```3. Include the django_pipedrive URLconf in your project urls.py like this::```pythonurl(r'^django_pipedrive/', include('django_pipedrive.urls')),```4. Run `python manage.py migrate` to create the django_pipedrive models.5. Start the development server and visit http://127.0.0.1:8000/django_pipedrive/to verify that the server is listening for webhooks (you'll just read a Hello World, but that is enough to check that the server is working).6. Register the url as a webhook at https://yourdomain.pipedrive.com/webhooks## Available Models- pipedrive.User- pipedrive.Pipeline- pipedrive.Stage- pipedrive.Person- pipedrive.Organization- pipedrive.Deal- pipedrive.Activity- pipedrive.Note### Model conventionsAll models have field called 'external_id' which is the corresponding 'id' at Pipedrive.## CompatibilityThe app has been tested with Django1.8 and Postgres 9.5.6## CaveatsAs for the first version of the app, it requires the extension HStore of postgres to deal with Pipedrive's custom fields
Package: django-pipeline-compass-compiler
## Django Pipeline Compass CompilerCompiler class to use with Django Asset Pipeline package to compile Compass. It uses the official compass gem so you have to install it first:```shell$ sudo gem install compass```### InstallationThe installation is as a `pip` regular package. Remember you have to install [Django Pipeline](https://github.com/cyberdelia/django-pipeline) first since the compiler works as a plugin for it. Once you have it:```bash# from PyPi$ pip install django-pipeline-compass-compiler# or from Github$ pip install git+https://github.com/javivelasco/django-pipeline-compass-compiler.git```### UsageIn your `settings.py` you should specify the location of your compass compiler binary installed with RubyGems. As an option, you can give extra arguments to the compiler just as you'd do it when compiling from the command line. Also, you have to tell Pipeline to use the compiler. An example:```pythonPIPELINE_COMPASS_BINARY = '/usr/local/bin/compass'   # default: '/usr/bin/env compass'PIPELINE_COMPASS_ARGUMENTS = '-c path/to/config.rb'  # default: ''PIPELINE_COMPILERS = ('pipeline_compass.compass.CompassCompiler')```### AboutI've created and updated this package to reuse it in my future projects, but is hardly based in [this](https://github.com/mila-labs/django-pipeline-compass-rubygem) package. The main difference is that here the source is compiled only if there were no changes from last compiling.
Package: django-pipeline-compass-rubygem
Compasscompiler for django-pipeline using the original Ruby Gem.RequirementsCompass:gem install compassInstallation# from PyPi$pipinstalldjango-pipeline-compass-rubygem# from GitHub$pipinstallgit+https://github.com/mila-labs/django-pipeline-compass-rubygem.gitUsageCOMPASS_BINARY and COMPASS_ARGUMENTS can be either a string or a list/tuple.# settings.pyPIPELINE['COMPASS_BINARY']='/usr/local/bin/compass'# default: ['/usr/bin/env', 'compass']PIPELINE['COMPASS_ARGUMENTS']=['-c','path/to/config.rb']# default: []PIPELINE['COMPILERS']=('pipeline_compass.compass.CompassCompiler',)
Package: django-pipeline-csscompressor
django-pipeline-csscompressor==============A https://github.com/jazzband/django-pipeline css compressorto compress css files using https://github.com/sprymix/csscompressor.This allows you to use django-pipeline to compress CSS files without having torely on an external binary like YUI compressor, Uglify, etc.Installation------------pip install django-pipeline-csscompressorConfigure django-pipeline to use django_pipeline_csscompressor.CssCompressoras its `CSS_COMPRESSOR` in your `settings.py`:CSS_COMPRESSOR = 'django_pipeline_csscompressor.CssCompressor '
Package: django-pipeline-eco
django-pipeline-eco is a compiler fordjango-pipeline.This compiler will produce a JS using the widely used JST model.It basically compiles and appends to the window.JST JSON array the template that you request (through django-pipeline) using for exampleBackbone.jsorSpine.js.Installationpipinstalldjango-pipeline-ecoAdd these lines in your djangosettings.py:PIPELINE_JS={'application':{'source_filenames':(# Your other JS files...'path/to/your/templates/*.eco',),'output_filename':'js/application.js'}}PIPELINE_COMPILERS=('pipeline_eco.compiler.EcoCompiler',)UsageIf the paths are set correctly (try to play a bit depending on your static files situation), the eco will be compiled in a JS file and included automatically by pipeline.You will just need then to call the rendered template usingExample.Views.Test=Backbone.View.extendtemplate:"templates/example",render:(done)->@el.innerHTML=JST[@template]Deeply inspired bydjango-spine(base eco compiler)django-pipeline-compass(pipeline compiler model)
Package: django-pipeline-forgiving
An extension of the django-pipeline storage backend which forgives
missing files.This was created to solve the problem of using django-pipline with
third-party Django apps which have missing files in their css.For example, runningcollectstaticagainst an app using bothdjangobb_forumandpipelineproduced (at the time of writing):$ django-admin.py collectstatic
...
ValueError: The file 'djangobb_forum/themes/default/img/active_forum.gif' could not be found with <nest.apps.core.storages.PipelineCachedStorage object at 0x108d06090>.InstallationInstallation using pip:pip install django-pipeline-forgivingUsageSet in your settings.py:STATICFILES_STORAGE = 'django_pipeline_forgiving.storages.PipelineForgivingStorage'CreditsWritten byAdam Charnock.django-pipeline-forgivingis packaged usingseed.
Package: django-pipeline-no-future
PipelinePipeline is an asset packaging library for Django, providing both CSS and
JavaScript concatenation and compression, built-in JavaScript template support,
and optional data-URI image and font embedding.InstallationTo install it, simply:pip install django-pipelineDocumentationFor documentation, usage, and examples, see :https://django-pipeline.readthedocs.orgHistory1.6.8Made templatetags easier to subclass for special rendering behavior. Thanks
to Christian Hammond.Updated the link to readthedocs. Thanks to Corey Farwell.Fixed some log messages to correctly refer to the new PIPELINE settings
tructure. Thanks to Alvin Mites.Changed file outdated checks to use os.path methods directly, avoiding
potential SuspiciousFileOperation errors which could appear with some django
storage configurations.1.6.7Add a view for collecting static files before serving them. This behaves like
django’s built-instaticview and allows running the collector for
images, fonts, and other static files that do not need to be compiled. Thanks
to Christian Hammond.Update documentation for the ES6Compiler to clarify filename requirements.
Thanks to Nathan Cox.Add error output for compiler errors within the browser. This provides for a
much better experience when compiling files from the devserver. Thanks to
Christian Hammond.Make unit tests run against Django 1.6 and 1.7. Thanks to Sławek Ehlert.1.6.6Fix filtering-out of files which require a finder to locate.Allow compilers to override the output path.Fix error reporting when a compiler fails to execute.Fix IOErrors when running collectstatic with some nodejs-based compilers and
compressors. Thanks to Frankie Dintino.Fix compatibility of unit tests when running on Windows. Thanks to Frankie
Dintino.Add unit tests for compilers and compressors. Thanks to Frankie Dintino.1.6.5Fix Django < 1.8 compatibility. Thanks to David Trowbridge.Allow to disable collector during development. Thanks to Leonardo Orozco.1.6.4Fix compressor subprocess calls.1.6.3Fix compressor command flattening.1.6.2Remove subprocess32 usage since it breaks universal support.1.6.1Fix path quoting issues. Thanks to Chad Miller.Use subprocess32 package when possible.Documentation fixes. Thanks to Sławek Ehlert and Jannis Leidel.1.6.0Add full support for Django 1.9.Drop support for Django 1.7.Drop support for Python 2.6.BACKWARD INCOMPATIBLE: Change configuration settings.
Package: django-pipeline-storage
=====Pipeline Storage=====A simple Storage finder for files when django-pipeline is develop mode.Installation------------To install it, simply: ::pip install django-pipeline-storageQuick start-----------1. Replace:.. code-block:: pythonSTATICFILES_STORAGE = 'pipeline.storage.PipelineStorage'by:STATICFILES_STORAGE = 'pipeline_storage.PipelineStorage'2. Add to Pipeline settings:.. code-block:: pythonPIPELINE = {...'PIPELINE_COLLECTOR_ENABLED': False,...}Todo----1. add more storages support2. add test
Package: django-pip-starter
IntroductionHave you ever had problems deploying and configuringdjangoproject? This project
removes headaches that you used to have when quick-startingdjangoproject, configuring
environments, downloading packages and etc.It createsdjangoproject by using one simple command, ready for running.Solution is based onpipandvirtualenv, it has minimal external requirements.InstallationTo install this package:pip install django-pip-starterIf you already have django-pip-starter install you can use the following command to upgrade installation:pip install --upgrade django-pip-starterQuick startThe following commands creates empty, configureddjangoproject in virtual environment. Additionally it will
installsouthpackage. For development environment it additionally installsdjango-debug-toolbar,ipython,ipdbdjango-pip-starter.py project-name
cd project-name
make
make runWhereproject-nameis destination folder where starter should create files.makecommand will download and setup development virtualenv, download latest stabledjangoversion and create
sqlite3 database, load initial data.make runwill run development server. It’s the same as runningproject/manage.py runserverwhich would also work.Default logins for django administration are user:adminpass:adminDocumentationYou can read documentation athttp://readthedocs.org/docs/django-pip-starter/HistoryIdea for this project came from Mantas Zimickas (sirex,https://bitbucket.org/sirex/django-starter/overview).
This was based onzc.buildoutsolution. After some time usingdjango-starterwe had problems deploying it
and Petras Zdanavicius (petraszd) made a fork ofdjango-starterthat used onlypip. This was simple and elegant solution
that Marius Grigaitis (marltu) expanded and packaged it into this project.
Package: django-pipstatus
# django-pipstatusdjango-pipstatus provides simple templatetag and page that shows the status of your pip installation.## InstallationAdd 'pipstatus' to your INSTALLED_APP.## Setup dedicated URLadd pipstatus.url to your urls.py```pythonurlpatterns = [url(r'^admin/', include(admin.site.urls)),url(r'^pipstatus/', include(pipstatus.urls)),]```## Setup own viewDefine a view and a template somewhere```pythondef pipconfig2(request):return render(request, "my_template.html")``````html{% extends "base.html" %}{% block content %}<h1>My PIP Page</h1>{% include "pipstatus.html" %}{% endblock %}```## Define your own template structure```html{% load pipstatus %}{% get_pipstatus as config %}{% for x in config.entries %}{% if x.outdated %}x.name is outdated!<br>{% endif %}{% endfor %}```