Metadata-Version: 2.1
Name: PsycoSpans
Version: 0.1.1
Summary: Psycopg2 support for the Spans library
Home-page: https://www.github.com/runfalk/psycospans
Author: Andreas Runfalk
Author-email: andreas@runfalk.se
License: The MIT License (MIT)
Requires-Dist: spans
Requires-Dist: psycopg2 (>=2.4.0)

Copyright (c) 2014 Andreas Runfalk

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

Description: PsycoSpans
        ==========
        Psycospans brings support for Spans [#]_ to Psycopg2 [#]_. The Spans library
        implements PostgreSQL's range types [#]_ in pure Python.
        
        .. code-block:: python
        
            from psycospans import connect
        
            conn = connect("dbname=test")
            cur = conn.cursor()
        
            test_range = intrange(1, 10)
            cur.execute("SELECT int4range(5, NULL), %s", (test_range,))
        
            other_range, test_range_cmp = cur.fetchone()
        
            test_range == test_range_cmp # True
            other_range == intrange(5) # True
        
        Requirements
        ------------
        Psycospans will only work with PostgreSQL 9.2 or later.
        
        
        Installation
        ------------
        Psycospans exists on PyPI.
        
        ::
        
            pip install psycospans
        
        Documentation
        -------------
        For full doumentation please run ``pydoc psycospans`` from a shell.
        
        .. [#] https://github.com/runfalk/spans
        .. [#] http://initd.org/psycopg/
        .. [#] http://www.postgresql.org/docs/9.2/static/rangetypes.html
        
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Topic :: Database
Classifier: Topic :: Utilities
