semvec/pypi-packages huggingface dataset:
birdcage 0.9.0
library to squeeze text fragments into a phrase of a specified length.Used mainly to create tweets
License: MIT

Use Birdcage to constrain tweets.

Library to take text collections and create a Phrase of those text collections
and fit within the specified length.

This is what the library does:

$ birdcage/example.py 
No maximum set, generate phrase

expecting: one hour, fourty-five minutes until armageddon strikes the earth
expecting: one hour, fourty-five minutes until armageddon strikes the earth


No maximum length set, generate phrase with ": " as the delimiter

expecting: one hour, fourty-five minutes: until armageddon strikes the earth
expecting: one hour, fourty-five minutes: until armageddon strikes the earth


Set a maximum length of 40 characters

expecting: 1h45m until armageddon strikes the ea...
expecting: 1h45m until armageddon strikes the ea...
django-flatqueries 0.1
Flatpage-like SQL queries for Django.
License: MIT

==================
django-flatqueries
==================

Installing the app package from PyPI
====================================
If you already have a working Django 1.3+ project and you just want to install the app:

1. Get the package:
    pip install django-flatqueries

2. Add 'flatqueries' to your INSTALLED_APPS in settings.py.

3. Add this to your urls.py:

    (r'^flatqueries/', 'flatqueries.urls')

4. Create the database table required by this app:

    python manage.py syncdb

Getting the sample project
==========================
This project runs out-of-the box on Django 1.3. Here's how:

1. Grab the code.
    svn checkout http://django-flatqueries.googlecode.com/svn/trunk django-flatqueries-demo
2. cd django-flatqueries-demo/sample_project
3. Create the database.
    python manage.py syncdb
    - Yes, create a superuser
4. Load the demo data. \*(Optional, but see deployment note)
    python manage.py loaddata demo_data.json
5. Start the local development server.
    python manage.py runserver
6. Login at http://127.0.0.1:8000/admin to play with flatqueries.


Usage
=====

TO RUN A FLATQUERY
------------------
1. On its view page, click the "view on site" button.
2. Click the "Run" button.

DEPLOYMENT: VERY IMPORTANT
--------------------------
If you put this on another domain, you need to make sure your "site" values
are correct. Otherwise, the "view on site" button will not work correctly!

SECURITY
--------
For editing, the standard Django Admin permissions apply. Any superuser will
be able to edit, as well as any staff person with the appropriate permissions.

For running queries, an additional permission is needed for staff users.
Assign 'flatqueries.can_run_query' to grant this permission to users or groups.

Still, be careful not to let query URLs fall into the hands of users you
don't want running them. If you ignore this warning, then any trouble that
results is YOUR OWN FAULT. :P
rango 0.0.2a
Rango is a spicey API to Django with some extras.
License: MIT
Keywords: django,utils,sugar

Rango
=====

Rango is a bit of spice for Django.

Why?
----

I beleive that short and plain imports are better than long
nested ones.

In Django you should write in your ``views.py``:

    from django.core.urlresolvers import reverse
    from django.shortcuts import get_object_or_404, redirect
    from django.contrib.auth.decorators import login_required

In Rango:

    from rango.urls import reverse
    from rango.views import get_object_or_404, login_required

Actually that is experimental project tending to build cleaner
API for Django.

Core features
-------------

### New ``reverse`` method

It works like that:

    from rango.urls import reverse
    reverse('url_name', pk=8)

Django ``reverse`` works so:

    from django.core.urlresolvers import reverse
    reverse('url_name', kwargs={'pk': 8})

### Base model class

It has shorcuts for ``all``, ``get``, ``filter`` and ``exclude``
methods and some extra magic:

    from rango import models

    class MyModel(models.RangoModel):
        class MyModel(RangoModel):
            title = models.CharField(max_length=100)
            is_active = models.BooleanField()

            @classmethod
            def active(cls, _queryset=None):
                return cls.filter(_queryset, is_active=True)

    all_objects = MyModel.all()
    start_with_a = MyModel.filter(title__startswith="a")
    active_objects = start_with_a.active()

**Note!** Now you can define filter methods in model class
and chain them in queries. Magic!

### Shortcuts ``rango.views``

    from rango.views import render_to, ajax_request, render_to_response, \
           render, redirect, get_object_or_404, login_required

### Mailing shortcut

If you need to compose E-mail message body from template and
send it you may use a shortcut:

    from rango.mail import send_template

    send_template(subject='Subject', template='mail.html',
                  recipient_list=[to@example.com],
                  context={})

Full method signature:

    def send_template(subject=None, template=None, recipient_list=[],
                      context={}, from_email=None, **kwargs)

### Other shortcuts and stuff

    from rango.crypto import random_token
    random_token(20)  # creates rangom string

    # Yes! that's replacement for
    # from django.conf import settings
    from rango import settings
    settings.has_setting('CUSTOM_SETTINGS')
    settings.get_setting('CUSTOM_SETTINGS', default='Some value')

    from rango.utils import safe_upload_to
    from rango import models
    class MyFile(models.Model):
        file = models.FileField(upload_to=safe_upload_to('files'))
        # files will be uploaded to
        # files/<instance id>/<random>_<filename>


Documentation
-------------

It's not ready yet, I'm working on it.

If you're brave, watch in the source :)