https://github.com/zacharyvoase/gevent-psycopg2
Obsolete; use https://bitbucket.org/dvarrazzo/psycogreen/ instead.
https://github.com/zacharyvoase/gevent-psycopg2
Last synced: 3 months ago
JSON representation
Obsolete; use https://bitbucket.org/dvarrazzo/psycogreen/ instead.
- Host: GitHub
- URL: https://github.com/zacharyvoase/gevent-psycopg2
- Owner: zacharyvoase
- Created: 2011-12-13T11:39:56.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2017-10-27T12:05:31.000Z (almost 8 years ago)
- Last Synced: 2025-04-02T05:01:37.890Z (6 months ago)
- Language: Python
- Homepage: https://bitbucket.org/dvarrazzo/psycogreen/
- Size: 104 KB
- Stars: 51
- Watchers: 3
- Forks: 23
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gevent-psycopg2
This is just a Python package containing code from Daniele Varrazzo's
[psycogreen][].[psycogreen]: https://bitbucket.org/dvarrazzo/psycogreen/src/77a9c05f5229/gevent/psyco_gevent.py
## Installation
pip install gevent-psycopg2
## Usage
Before attempting to connect to the database:
import gevent_psycopg2; gevent_psycopg2.monkey_patch()
This has been manually confirmed to work with Django, when using psycopg2 as
the database backend.## License
Parts that I have written are released under [the Unlicense](http://unlicense.org/):
> This is free and unencumbered software released into the public domain.
>
> Anyone is free to copy, modify, publish, use, compile, sell, or
> distribute this software, either in source code form or as a compiled
> binary, for any purpose, commercial or non-commercial, and by any
> means.
>
> In jurisdictions that recognize copyright laws, the author or authors
> of this software dedicate any and all copyright interest in the
> software to the public domain. We make this dedication for the benefit
> of the public at large and to the detriment of our heirs and
> successors. We intend this dedication to be an overt act of
> relinquishment in perpetuity of all present and future rights to this
> software under copyright law.
>
> 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 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.
>
> For more information, please refer toParts written by Daniele Varrazzo are governed by this copyright statement:
> Copyright (C) 2010 Daniele Varrazzo
> and licensed under the MIT license:
>
> 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.