Testing Site Testing Site

skip to navigation
skip to content

PyPI - the Python Package Index

The Python Package Index is a repository of software for the Python programming language. There are currently 16959 packages here.
To contact the PyPI admins, please use the Support or Bug reports links.


Get Packages

To use a package from this index either "pip install package" (get pip) or download, unpack and "python setup.py install" it.

Package Authors

Submit packages with "python setup.py upload". The index hosts package docs. You may also use the web form. You must register. Testing? Use testpypi.

Infrastructure

To interoperate with the index use the JSON, OAuth, XML-RPC or HTTP interfaces. Use local mirroring or caching to make installation more robust.


UpdatedPackageDescription
2017-06-28 gitstars 1.0.1 A Django app to help you manage your starred GitHub projects.
2017-06-28 missinglink-kernel 0.980 Kernel SDK for streaming realtime metrics to https://missinglink.ai
2017-06-28 missinglink-sdk 0.980 SDK for streaming realtime metrics to https://missinglink.ai
2017-06-28 security-manager 0.1 The SoftFIRE Security Manager
2017-06-28 httpie-nsof 0.4 Nsof OAuth 2 plugin for HTTPie.
2017-06-28 stf 0.1.7 The simple test framework
2017-06-28 cloudshell-automation-api 8.1.0.100 QualiSystems CloudShell API package
2017-06-28 cloudshell-orch-core 0.0.0.63 UNKNOWN
2017-06-28 sarltdtgore 0.1 A random test lib
2017-06-28 rhahdjlfhlsagjd 0.1 A random test lib
2017-06-28 porticatolarcematorfa 1.0 A sample Python project
2017-06-28 passwordgen 0.2 A generator for safe and random passwords defined by a user-defined pattern
2017-06-28 synthpressure 0.7.0 An engineer's attempt at a game engine.
2017-06-28 django-limits 0.0.4 django-city-limits ================== Sometimes you need to be able to restrict how many of a certain model a site can have. For example, the number of active users, the number of posts per user, or the number of active pages. This django module allows you to easily setup predefined, hardcoded limits to enforce these kinds of restrictions. 0. Install ``django-city-limits`` from PyPI:: pip install django-city-limits 1. Add ``django_limits`` to your ``INSTALLED_APPS``:: INSTALLED APPS = [ 'django_limits', # All your other apps ] 2. Create and set your limiter class (see below) MODEL_LIMIT_CLASS = 'limiter.MyLimiter' 3. Add the limiter middleware to properly render templates:: MIDDLEWARE_CLASSES = [ 'django_limits.middleware.LimitExceededMiddleware', # Your other middleware ] Defining a Limiter class ------------------------ To properly limit your models, you need a limiter class. This isn't auto loaded, so it can be anywhere, should probably go in a ``limiter.py`` file or in your ``models.py``. All limiters inherit from the ``django_limits.limiter.Limiter``, but you can override most of this class as needed. The simplest limiter, is just an inheritance of this class, with a class attribute defining the limiting rules. A set of rules is a dictionary, with the key being a *model class*, and the associated values being a dictionary described below, or list of dictionaries, like so:: from django_limits.limiter import Limiter from django.contrib.auth.models import User class MyLimiter(Limiter): rules = { User: [ { 'limit': 20, 'message': "Only 20 active users allowed", 'filterset': Q(is_active=True) }, { 'limit': 10, 'message': "Only 10 staff members allowed", 'filterset': Q(is_staff=True) } ] } The above Limiter will only allow a maximum of 20 active users, and 10 staff members. Defining a rules dictionary --------------------------- A rules dictionary can contain the following keys: * ``limit`` (required - The total number of the given model allowed, or if there is a queryset, the total allowed for that queryset * ``message`` - The message shown when a user tries to exceed this number * ``filterset`` - A django Q filters that defines the types of models to restrict on, if this is not set the total number of the model in the database is used (e.g ``Model.objects.all()``) * ``template`` - The template used to render the page explaining the limit restriction, defaults to ``django_limits/limit_exceeded.html`` An example rule is below for a widget is below:: Widget: [ { 'limit': 10, 'message': "Only 10 staff members allowed", 'filterset': Q(color="Blue") }, { 'limit': 10, 'message': "Only 10 staff members allowed", 'filterset': Q(color="Red") }, { 'limit': 30, 'message': "Only 30 widgets allowed", 'template': "widgets/totla_widgets_exceeded.html' } ] In this example, at most 10 blue, 10 red and a total 30 widgets are allowed. How it works ------------ Django limtis installs a ``pre_save`` signal for every model, and checks against the rules, and to prevent the save from finishing throws a ``LimitExceeded`` exception which is caught by the middleware, which in turn renders a page with a HTTP 403 error. Apologies to Tina Turner.
2017-06-28 cloudshell-cp-aws 1.3.0.425 A repository for projects providing out of the box capabilities within CloudShell to define AWS instances in CloudShell and leverage Amazon Cloud Computing capabilities to deploy and connect apps in CloudShell sandboxes.
2017-06-28 spykeball 0.0.26 Spikeball Statistics Engine
2017-06-28 cloudshell-cm-customscript 1.1.0.191 A repository for projects providing out of the box capabilities within CloudShell remotely configure vm's
2017-06-28 sol_vj 2.1.0 sol - fixes for resolume
2017-06-28 cloudshell-cp-azure 1.2.0.2124 A repository for projects providing out of the box capabilities within CloudShell to define Azure instances in CloudShell and leverage Azure Cloud Computing capabilities to deploy and connect apps in CloudShell sandboxes.
2017-06-28 azureml-datacollection-api 0.1.0a18 Microsoft Azure Machine Learning Python SDK for collecting model data
2017-06-28 cloudshell-cp-openstack 1.1.0.625 A repository for projects providing out of the box capabilities within CloudShell to define OpenStack instances in CloudShell and leverage OpenStack (Liberty and above) capabilities to deploy and connect apps in CloudShell sandboxes.
2017-06-28 mali 0.196 Command line tool for missinglink.ai platform
2017-06-28 nexpose 0.1.0 The official Python Nexpose API client library
2017-06-28 awsebcli 3.10.3 Command Line Interface for AWS EB.
2017-06-27 sparkmagic 0.12.1 SparkMagic: Spark execution via Livy
2017-06-27 autovizwidget 0.12.1 AutoVizWidget: An Auto-Visualization library for pandas dataframes
2017-06-27 hdijupyterutils 0.12.1 HdiJupyterUtils: Utils for Jupyter projects from HDInsight team
2017-06-27 rummage 2.0 A GUI search and replace app.
2017-06-27 yaz0 0.1.0 Python module for decompressing Nintendo Yaz0 data.
2017-06-27 tulip-python 5.0.0.dev9 Large graphs analysis and drawing
2017-06-27 tulipgui-python 5.0.0.dev9 Tulip GUI Python bindings
2017-06-27 featuretools 0.1.3 a framework for automated feature engineering
2017-06-27 metasetup 0.0.3.alpha metasetup
2017-06-27 Tell-Tg 1.1.0 A command line utility to send Telegram messages via a bot.
2017-06-27 mssqltoolsservice-DEBIAN-8 1.0.0a14 Microsoft SQL Tools Service
2017-06-27 mssqltoolsservice-Windows-7-86 1.0.0a14 Microsoft SQL Tools Service
2017-06-27 mssqltoolsservice-Windows-7-64 1.0.0a14 Microsoft SQL Tools Service
2017-06-27 mssqltoolsservice-Ubuntu-16 1.0.0a14 Microsoft SQL Tools Service
2017-06-27 mssqltoolsservice-Ubuntu-14 1.0.0a14 Microsoft SQL Tools Service
2017-06-27 mssqltoolsservice-RHEL-7 1.0.0a14 Microsoft SQL Tools Service

And now for something completely different...

Customer: Now then, some cheese please, my good man.
Owner: (lustily) Certainly, sir. What would you like?
Customer: Well, eh, how about a little red Leicester.
Owner: I'm, a-fraid we're fresh out of red Leicester, sir.