This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

pyla is a redis based storage system which can filter entries based on item’s attributes.

In it’s current version it stores the information of the entry in a sorted set with all information present in the key.

Why pyla?

Say you have certain jobs that you want to schedule and every job has certain attributes associated to it.

from pyla import entries
from pyla import fields

class Job(entries.Entry):
    id = fields.BaseField(primary=True)
    type = fields.BaseField(index=True)
    assigned_to = fields.BaseField(index=True)
    info = fields.BaseField(index=False)

j = Job(id=1, type='create', assigned_to='dush', info='testing')
j.save()

on calling save on that particular entry you will have following sorted sets available in redis

job
job:type:create
job:assigned_to:dush

Then you have the following awesome filtering abilities:

# Get all the jobs
Job.objects.all()

# Get jobs with type create
Job.objects.filter(type='create')

# Get jobs with either create or delete type
Job.objects.filter(type=['create', 'delete'])

# Get jobs which are assigened to dush
Job.objects.filter(assigned_to='dush')

# Get jobs which are assigened to dush or spam
Job.objects.filter(assigned_to=['dush', 'spam'])

# Get jobs which are assigened to dush and are of type create
Job.objects.filter(assigned_to='dush', type='create')

# Get jobs which are assigened to dush and are of type create or delete
Job.objects.filter(assigned_to='dush', type=['create','delete'])

# Get jobs which are assigened to dush or spam and are of type create or delete
Job.objects.filter(assigned_to=['dush', 'spam'], type=['create','delete'])

You can have any number of filters over the fields which were set to index. Obviously, the more indexes you have the slower your writes become.

Release History

Release History

0.1.0b0

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyla-0.1.0b0.tar.gz (4.8 kB) Copy SHA256 Checksum SHA256 Source Feb 13, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting