semvec/pypi-packages huggingface dataset:
django-stringfield 0.3.0
Better string field for Django.
License: BSD

django-stringfield
==================

A field intended for strings that typically has a length less than 500
characters.  django-stringfield tries to not to enforce length on database level
if possible but different databases have different limitations. Currently
implemented as:

PostgreSQL
    ``character varying``

MySQL
    ``VARCHAR (65528)`` [#f1]_

Oracle
    ``VARCHAR2 (4000)``

SQLite & Other backends
    ``TEXT``


Installation
------------
::

    pip install django-stringfield


Usage
-----
You use this just like the normal ``django.db.models.CharField`` except that the
key word argument ``max_length`` works a little differently:

* It is optional and defaults to 500
* It only enforces max length on the default formfield **not** on the database.

Example::

    # models.py
    from stringfield import StringField

    class MyModel(models.Model):
        name = StringField()


.. [#f1] MySQL >= 5.0.3 should be able to handle a maximum length of 65535 but
    that does not work in my empirical testing using mysql 5.1.41 where 65528
    is the maximum considering ``NULL`` and ``NOT NULL``.
khufu_sqlalchemy 1.0a1
SQLAlchemy bindings for Pyramid
License: BSD
Keywords: pyramid sqlalchemy khufu transaction

khufu_sqlalchemy is meant to reduce the plumbing required to configure a
`SQLAlchemy <http://www.sqlalchemy.org/>`_ based database connection with
a `Pyramid <http://pylonsproject.org/>`_ based web app.

Please see `khufu_sqlalchemy @ github
<http://khufuproject.github.com/khufu_sqlalchemy/>`_
or `docs/index.rst
<https://github.com/khufuproject/khufu_sqlalchemy/blob/master/docs/index.rst>`_
in the source distribution for full docs.


Changes
=======

1.0a1 (Nov-27-2011)
-------------------

  * Unchanged from 0.5.3

0.5.3 (Jul-10-2011)
-------------------

  * now tries to make sure the active context is part of the active db session

  * Various fixes to make session lookup more rigourous

0.5.2 (Jul-10-2011)
-------------------

  * Small fixes

0.5.1 (May-14-2011)
-------------------

  * Fixed bad import in the paster template

  * Put in hack to work around bug with connection pooling and sqlite
    https://github.com/Pylons/pyramid/issues/174

  * Now uses scoped_session for session factory by default

  * sessions created by ``dbsession()`` are now closed upon finishing the
    request

0.5 (May-04-2011)
-----------------

  * Added new *khufu_sqlalchemy* paster template

  * Made dbsession() lookup a little more clever

0.5b1 (Feb-28-2011)
-------------------

  * Backwards incompat changes with 0.4, please stay with 0.4
    to continue using middleware

  * Now uses ``khufu_sqlalchemy.dbsession(request)`` for getting
    the active db session

  * ``traversalutils`` was moved out (in preparation for another
    package

0.4a4 (Feb-20-2011)
-------------------

  * Renamed from Khufu-SQLAHelper to khufu_sqlalchemy

0.4a3 (Feb-16-2011)
-------------------

  * Updated project url's

0.4a2 (Feb-11-2011)
-------------------

  * Fixed small issue where decorator wasn't working

0.4a1 (Feb-10-2011)
-------------------

  * Added traversalutils for helping expose SQL-based models
    using traversal 

0.3 (Feb-04-2011)
-----------------

  * Changed ``with_db`` api to make db param optional

  * Updated docs

0.2.1 (Jan-17-2011)
-------------------

  * Added ``use_zope_tm`` option to ``get_session_factory``

0.2 (Jan-9-2011)
----------------

  * first release
khufu_traversal 1.0a1
Helper for working with SQL-based traversal in Pyramid
License: BSD
Keywords: web wsgi pylons pyramid sql traversal

*khufu_traversal* is a method for mapping SQLAlchemy-based models for traversal
in *Pyramid*.

Please see `khufu_traversal @ github
<http://khufuproject.github.com/khufu_traversal/>`_
or `docs/index.rst
<https://github.com/khufuproject/khufu_traversal/blob/master/docs/index.rst>`_
in the source distribution for full docs.


Changes
=======

1.0a1 - unreleased
------------------

  * added tests

  * Fixed pesky use of global dict 

0.1 - Aug-25-2011
-----------------

  * Initial version