Search is not available for this dataset
id
stringlengths
1
8
text
stringlengths
72
9.81M
addition_count
int64
0
10k
commit_subject
stringlengths
0
3.7k
deletion_count
int64
0
8.43k
file_extension
stringlengths
0
32
lang
stringlengths
1
94
license
stringclasses
10 values
repo_name
stringlengths
9
59
1100
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
6
Be more explicit in exception catching
5
.py
py
bsd-3-clause
gmr/queries
1101
<NME> tornado_session_tests.py <BEF> """ Tests for functionality in the tornado_session module """ import unittest import mock # Out of order import to ensure psycopg2cffi is registered from queries import pool, tornado_session from psycopg2 import extras from tornado import concurrent, gen, ioloop, testing class...
14
Add a bare exception around invoking psycopg2 methods
2
.py
py
bsd-3-clause
gmr/queries
1102
<NME> tornado_session_tests.py <BEF> """ Tests for functionality in the tornado_session module """ import unittest import mock # Out of order import to ensure psycopg2cffi is registered from queries import pool, tornado_session from psycopg2 import extras from tornado import concurrent, gen, ioloop, testing class...
14
Add a bare exception around invoking psycopg2 methods
2
.py
py
bsd-3-clause
gmr/queries
1103
<NME> LICENSE <BEF> Copyright (c) 2014 - 2019 Gavin M. Roy All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
1
Adjust copyright date in license
1
LICENSE
bsd-3-clause
gmr/queries
1104
<NME> LICENSE <BEF> Copyright (c) 2014 - 2019 Gavin M. Roy All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
1
Adjust copyright date in license
1
LICENSE
bsd-3-clause
gmr/queries
1105
<NME> __init__.py <BEF> """ Queries: PostgreSQL database access simplified Queries is an opinionated wrapper for interfacing with PostgreSQL that offers caching of connections and support for PyPy via psycopg2ct. The core `queries.Queries` class will automatically register support for UUIDs, Unicode and Unicode array...
1
Bump for the next version
1
.py
py
bsd-3-clause
gmr/queries
1106
<NME> __init__.py <BEF> """ Queries: PostgreSQL database access simplified Queries is an opinionated wrapper for interfacing with PostgreSQL that offers caching of connections and support for PyPy via psycopg2ct. The core `queries.Queries` class will automatically register support for UUIDs, Unicode and Unicode array...
1
Bump for the next version
1
.py
py
bsd-3-clause
gmr/queries
1107
<NME> session.py <BEF> """The Session class allows for a unified (and simplified) view of interfacing with a PostgreSQL database server. Connection details are passed in as a PostgreSQL URI and connections are pooled by default, allowing for reuse of connections across modules in the Python runtime without having to p...
66
Re-organize the Session class, update callproc to have an arg called args
109
.py
py
bsd-3-clause
gmr/queries
1108
<NME> session.py <BEF> """The Session class allows for a unified (and simplified) view of interfacing with a PostgreSQL database server. Connection details are passed in as a PostgreSQL URI and connections are pooled by default, allowing for reuse of connections across modules in the Python runtime without having to p...
66
Re-organize the Session class, update callproc to have an arg called args
109
.py
py
bsd-3-clause
gmr/queries
1109
<NME> index.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. |Version| |License| |PythonVersions| The popular psycopg2_ package is a full-featured python client. Unfortunately as a develope...
1
Remove broken badges
3
.rst
rst
bsd-3-clause
gmr/queries
1110
<NME> index.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. |Version| |License| |PythonVersions| The popular psycopg2_ package is a full-featured python client. Unfortunately as a develope...
1
Remove broken badges
3
.rst
rst
bsd-3-clause
gmr/queries
1111
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Fix cffi handling
1
.py
py
bsd-3-clause
gmr/queries
1112
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Fix cffi handling
1
.py
py
bsd-3-clause
gmr/queries
1113
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
0
Remove Python 3.2 support
1
.py
py
bsd-3-clause
gmr/queries
1114
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
0
Remove Python 3.2 support
1
.py
py
bsd-3-clause
gmr/queries
1115
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import logging import unittest import mock from psycopg2 import extras import psycopg2 # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils LOGGER = logging.getLo...
88
Rework and complete session tests
41
.py
py
bsd-3-clause
gmr/queries
1116
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import logging import unittest import mock from psycopg2 import extras import psycopg2 # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils LOGGER = logging.getLo...
88
Rework and complete session tests
41
.py
py
bsd-3-clause
gmr/queries
1117
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured py...
3
Clean it up a bit more
3
.rst
rst
bsd-3-clause
gmr/queries
1118
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured py...
3
Clean it up a bit more
3
.rst
rst
bsd-3-clause
gmr/queries
1119
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
11
Remove/deprecate TornadoSession.validate
37
.py
py
bsd-3-clause
gmr/queries
1120
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
11
Remove/deprecate TornadoSession.validate
37
.py
py
bsd-3-clause
gmr/queries
1121
<NME> pool_tests.py <BEF> """ Tests for functionality in the pool module """ import time import unittest import uuid import unittest2 as unittest except ImportError: import unittest from queries import pool from queries.pool import CLIENTS, LAST, TTL class ConnectionPoolTests(unittest.TestCase): def se...
204
Update connection pool and tests
51
.py
py
bsd-3-clause
gmr/queries
1122
<NME> pool_tests.py <BEF> """ Tests for functionality in the pool module """ import time import unittest import uuid import unittest2 as unittest except ImportError: import unittest from queries import pool from queries.pool import CLIENTS, LAST, TTL class ConnectionPoolTests(unittest.TestCase): def se...
204
Update connection pool and tests
51
.py
py
bsd-3-clause
gmr/queries
1123
<NME> pool_connection_tests.py <BEF> """ Tests for Connection class in the pool module """ import unittest import weakref import mock from queries import pool class ConnectionTests(unittest.TestCase): def setUp(self): self.handle = mock.Mock() self.handle.close = mock.Mock() self.handl...
1
Fix the broken connection.close() test
0
.py
py
bsd-3-clause
gmr/queries
1124
<NME> pool_connection_tests.py <BEF> """ Tests for Connection class in the pool module """ import unittest import weakref import mock from queries import pool class ConnectionTests(unittest.TestCase): def setUp(self): self.handle = mock.Mock() self.handle.close = mock.Mock() self.handl...
1
Fix the broken connection.close() test
0
.py
py
bsd-3-clause
gmr/queries
1125
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
163
Update docstrings
7
.py
py
bsd-3-clause
gmr/queries
1126
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
163
Update docstrings
7
.py
py
bsd-3-clause
gmr/queries
1127
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Bump metadata everywhere.
1
.py
py
bsd-3-clause
gmr/queries
1128
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Bump metadata everywhere.
1
.py
py
bsd-3-clause
gmr/queries
1129
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import logging import unittest import unittest from queries import session # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils LOGGER = logging.getLogger(__n...
1
Fix docstrings
0
.py
py
bsd-3-clause
gmr/queries
1130
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import logging import unittest import unittest from queries import session # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils LOGGER = logging.getLogger(__n...
1
Fix docstrings
0
.py
py
bsd-3-clause
gmr/queries
1131
<NME> index.rst <BEF> ADDFILE <MSG> Base docs structure <DFF> @@ -0,0 +1,22 @@ +.. Queries documentation master file, created by + sphinx-quickstart on Fri Apr 25 10:36:39 2014. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to Queri...
22
Base docs structure
0
.rst
rst
bsd-3-clause
gmr/queries
1132
<NME> index.rst <BEF> ADDFILE <MSG> Base docs structure <DFF> @@ -0,0 +1,22 @@ +.. Queries documentation master file, created by + sphinx-quickstart on Fri Apr 25 10:36:39 2014. + You can adapt this file completely to your liking, but it should at least + contain the root `toctree` directive. + +Welcome to Queri...
22
Base docs structure
0
.rst
rst
bsd-3-clause
gmr/queries
1133
<NME> bootstrap <BEF> #!/bin/sh # vim: set ts=2 sts=2 sw=2 et: test -n "$SHELLDEBUG" && set -x if test -e /var/run/docker.sock then DOCKER_IP=127.0.0.1 else echo "Docker environment not detected." exit 1 fi set -e if test -z "$DOCKER_COMPOSE_PREFIX" then CWD=${PWD##*/} DOCKER_COMPOSE_PREFIX=${CWD/_/} fi COMP...
7
Use COMPOSE_PROJECT_NAME in bootstrap https://docs.docker.com/compose/reference/envvars/#compose_project_name
10
bootstrap
bsd-3-clause
gmr/queries
1134
<NME> bootstrap <BEF> #!/bin/sh # vim: set ts=2 sts=2 sw=2 et: test -n "$SHELLDEBUG" && set -x if test -e /var/run/docker.sock then DOCKER_IP=127.0.0.1 else echo "Docker environment not detected." exit 1 fi set -e if test -z "$DOCKER_COMPOSE_PREFIX" then CWD=${PWD##*/} DOCKER_COMPOSE_PREFIX=${CWD/_/} fi COMP...
7
Use COMPOSE_PROJECT_NAME in bootstrap https://docs.docker.com/compose/reference/envvars/#compose_project_name
10
bootstrap
bsd-3-clause
gmr/queries
1135
<NME> pool.py <BEF> """ Connection Pooling """ module and re-used when the Queries object is created. """ import logging import time LOGGER = logging.getLogger() # Time-to-live in the pool TTL = 60 LOGGER = logging.getLogger(__name__) DEFAULT_IDLE_TTL = 60 DEFAULT_MAX_SIZE = int(os.environ.get('QUERIES_MAX_POOL...
0
Remove logging
10
.py
py
bsd-3-clause
gmr/queries
1136
<NME> pool.py <BEF> """ Connection Pooling """ module and re-used when the Queries object is created. """ import logging import time LOGGER = logging.getLogger() # Time-to-live in the pool TTL = 60 LOGGER = logging.getLogger(__name__) DEFAULT_IDLE_TTL = 60 DEFAULT_MAX_SIZE = int(os.environ.get('QUERIES_MAX_POOL...
0
Remove logging
10
.py
py
bsd-3-clause
gmr/queries
1137
<NME> integration_tests.py <BEF> ADDFILE <MSG> Add integration tests <DFF> @@ -0,0 +1,79 @@ +import datetime +try: + import unittest2 as unittest +except ImportError: + import unittest + +import queries +from tornado import testing + + +class SessionIntegrationTests(unittest.TestCase): + + def setUp(self): + ...
79
Add integration tests
0
.py
py
bsd-3-clause
gmr/queries
1138
<NME> integration_tests.py <BEF> ADDFILE <MSG> Add integration tests <DFF> @@ -0,0 +1,79 @@ +import datetime +try: + import unittest2 as unittest +except ImportError: + import unittest + +import queries +from tornado import testing + + +class SessionIntegrationTests(unittest.TestCase): + + def setUp(self): + ...
79
Add integration tests
0
.py
py
bsd-3-clause
gmr/queries
1139
<NME> pool_exception_tests.py <BEF> ADDFILE <MSG> Add pool exception tests <DFF> @@ -0,0 +1,107 @@ +""" +Tests for Exceptions in queries.pool + +""" +import mock +try: + import unittest2 as unittest +except ImportError: + import unittest +import uuid + +from queries import pool + + +class ActiveConnectionErrorTe...
107
Add pool exception tests
0
.py
py
bsd-3-clause
gmr/queries
1140
<NME> pool_exception_tests.py <BEF> ADDFILE <MSG> Add pool exception tests <DFF> @@ -0,0 +1,107 @@ +""" +Tests for Exceptions in queries.pool + +""" +import mock +try: + import unittest2 as unittest +except ImportError: + import unittest +import uuid + +from queries import pool + + +class ActiveConnectionErrorTe...
107
Add pool exception tests
0
.py
py
bsd-3-clause
gmr/queries
1141
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
5
Add pgsql_wrpaper note in README
0
.rst
rst
bsd-3-clause
gmr/queries
1142
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
5
Add pgsql_wrpaper note in README
0
.rst
rst
bsd-3-clause
gmr/queries
1143
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Add extras_requires for tornado support
0
.py
py
bsd-3-clause
gmr/queries
1144
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Add extras_requires for tornado support
0
.py
py
bsd-3-clause
gmr/queries
1145
<NME> results.py <BEF> """ query or callproc Results """ import logging import psycopg2 LOGGER = logging.getLogger(__name__) class Results(object): """The :py:class:`Results` class contains the results returned from :py:meth:`Session.query <queries.Session.query>` and :py:meth:`Session.callproc <queries...
1
Dont raise NotImplementedError
1
.py
py
bsd-3-clause
gmr/queries
1146
<NME> results.py <BEF> """ query or callproc Results """ import logging import psycopg2 LOGGER = logging.getLogger(__name__) class Results(object): """The :py:class:`Results` class contains the results returned from :py:meth:`Session.query <queries.Session.query>` and :py:meth:`Session.callproc <queries...
1
Dont raise NotImplementedError
1
.py
py
bsd-3-clause
gmr/queries
1147
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import mock try: import unittest2 as unittest except ImportError: import unittest from queries import session self.conn.set_client_encoding = set_client_encoding = mock.Mock() self.obj.set_encoding('UTF-8') ...
119
Initial coverage of queries.Session
0
.py
py
bsd-3-clause
gmr/queries
1148
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import mock try: import unittest2 as unittest except ImportError: import unittest from queries import session self.conn.set_client_encoding = set_client_encoding = mock.Mock() self.obj.set_encoding('UTF-8') ...
119
Initial coverage of queries.Session
0
.py
py
bsd-3-clause
gmr/queries
1149
<NME> .travis.yml <BEF> sudo: false language: python dist: xenial env: global: - PATH=$HOME/.local/bin:$PATH - AWS_DEFAULT_REGION=us-east-1 - secure: "inURdx4ldkJqQXL1TyvKImC3EnL5TixC1DlNMBYi5ttygwAk+mSSSw8Yc7klB6D1m6q79xUlHRk06vbz23CsXTM4AClC5Emrk6XN2GlUKl5WI+z+A2skI59buEhLWe7e2KzhB/AVx2E3TfKa0oY7raM0UUnaOkpV...
1
Add verbose flag to see where pypy is hanging
1
.yml
travis
bsd-3-clause
gmr/queries
1150
<NME> .travis.yml <BEF> sudo: false language: python dist: xenial env: global: - PATH=$HOME/.local/bin:$PATH - AWS_DEFAULT_REGION=us-east-1 - secure: "inURdx4ldkJqQXL1TyvKImC3EnL5TixC1DlNMBYi5ttygwAk+mSSSw8Yc7klB6D1m6q79xUlHRk06vbz23CsXTM4AClC5Emrk6XN2GlUKl5WI+z+A2skI59buEhLWe7e2KzhB/AVx2E3TfKa0oY7raM0UUnaOkpV...
1
Add verbose flag to see where pypy is hanging
1
.yml
travis
bsd-3-clause
gmr/queries
1151
<NME> utils.py <BEF> """ Utility functions for access to OS level info and URI parsing """ import collections import os # All systems do not support pwd module # All systems do not support pwd module try: import pwd except ImportError: pwd = None # Python 2 & 3 compatibility try: from urllib import pars...
6
Handle an error where the logged in user cant be found
1
.py
py
bsd-3-clause
gmr/queries
1152
<NME> utils.py <BEF> """ Utility functions for access to OS level info and URI parsing """ import collections import os # All systems do not support pwd module # All systems do not support pwd module try: import pwd except ImportError: pwd = None # Python 2 & 3 compatibility try: from urllib import pars...
6
Handle an error where the logged in user cant be found
1
.py
py
bsd-3-clause
gmr/queries
1153
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
3
Formatting update
1
.rst
rst
bsd-3-clause
gmr/queries
1154
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
3
Formatting update
1
.rst
rst
bsd-3-clause
gmr/queries
1155
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Properly cast the environment variable as an integer
1
.py
py
bsd-3-clause
gmr/queries
1156
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Properly cast the environment variable as an integer
1
.py
py
bsd-3-clause
gmr/queries
1157
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
9
Mention the queries.uri method
0
.rst
rst
bsd-3-clause
gmr/queries
1158
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
9
Mention the queries.uri method
0
.rst
rst
bsd-3-clause
gmr/queries
1159
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<2.8'] else: install_requires = ['psycopg2>=2.5.1,<2.8'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOC...
4
Widen pin (#36) and include 3.7, 3.8 in support classifiers
2
.py
py
bsd-3-clause
gmr/queries
1160
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<2.8'] else: install_requires = ['psycopg2>=2.5.1,<2.8'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOC...
4
Widen pin (#36) and include 3.7, 3.8 in support classifiers
2
.py
py
bsd-3-clause
gmr/queries
1161
<NME> .travis.yml <BEF> sudo: false language: python env: global: - PATH=$HOME/.local/bin:$PATH - AWS_DEFAULT_REGION=us-east-1 - secure: "inURdx4ldkJqQXL1TyvKImC3EnL5TixC1DlNMBYi5ttygwAk+mSSSw8Yc7klB6D1m6q79xUlHRk06vbz23CsXTM4AClC5Emrk6XN2GlUKl5WI+z+A2skI59buEhLWe7e2KzhB/AVx2E3TfKa0oY7raM0UUnaOkpV1Cj+mHKPIT0="...
3
Add Python3.7 to tests
1
.yml
travis
bsd-3-clause
gmr/queries
1162
<NME> .travis.yml <BEF> sudo: false language: python env: global: - PATH=$HOME/.local/bin:$PATH - AWS_DEFAULT_REGION=us-east-1 - secure: "inURdx4ldkJqQXL1TyvKImC3EnL5TixC1DlNMBYi5ttygwAk+mSSSw8Yc7klB6D1m6q79xUlHRk06vbz23CsXTM4AClC5Emrk6XN2GlUKl5WI+z+A2skI59buEhLWe7e2KzhB/AVx2E3TfKa0oY7raM0UUnaOkpV1Cj+mHKPIT0="...
3
Add Python3.7 to tests
1
.yml
travis
bsd-3-clause
gmr/queries
1163
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import mock import platform import unittest # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils from psycopg2 import extras import psycopg2 class SessionTestCas...
11
Flake8 cleanup of tests
8
.py
py
bsd-3-clause
gmr/queries
1164
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import mock import platform import unittest # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils from psycopg2 import extras import psycopg2 class SessionTestCas...
11
Flake8 cleanup of tests
8
.py
py
bsd-3-clause
gmr/queries
1165
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
9
Update docs
5
.rst
rst
bsd-3-clause
gmr/queries
1166
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
9
Update docs
5
.rst
rst
bsd-3-clause
gmr/queries
1167
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Bump the version for release
1
.py
py
bsd-3-clause
gmr/queries
1168
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Bump the version for release
1
.py
py
bsd-3-clause
gmr/queries
1169
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
11
Make query and callproc return a tuple of (rows, data)
8
.py
py
bsd-3-clause
gmr/queries
1170
<NME> tornado_session.py <BEF> """ Tornado Session Adapter Use Queries asynchronously within the Tornado framework. Example Use: .. code:: python class NameListHandler(web.RequestHandler): def initialize(self): self.session = queries.TornadoSession(pool_max_size=60) @gen.coroutine ...
11
Make query and callproc return a tuple of (rows, data)
8
.py
py
bsd-3-clause
gmr/queries
1171
<NME> .travis.yml <BEF> sudo: false language: python dist: xenial env: - pypy - 3.2 - 3.3 - 3.4 install: - if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install psycopg2ct; fi - test - name: coverage - name: deploy if: tag IS present services: - postgresql install: - pip install awscli -...
1
Comment out Python 3.4
1
.yml
travis
bsd-3-clause
gmr/queries
1172
<NME> .travis.yml <BEF> sudo: false language: python dist: xenial env: - pypy - 3.2 - 3.3 - 3.4 install: - if [[ $TRAVIS_PYTHON_VERSION == 'pypy' ]]; then pip install psycopg2ct; fi - test - name: coverage - name: deploy if: tag IS present services: - postgresql install: - pip install awscli -...
1
Comment out Python 3.4
1
.yml
travis
bsd-3-clause
gmr/queries
1173
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
31
Updated examples
24
.rst
rst
bsd-3-clause
gmr/queries
1174
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
31
Updated examples
24
.rst
rst
bsd-3-clause
gmr/queries
1175
<NME> results_tests.py <BEF> """ Tests for functionality in the results module """ import logging import unittest except ImportError: import unittest from queries import results def test_rownumber_value(self): self.cursor.rownumber = 10 self.assertEqual(self.obj.rownumber, 10) def test_q...
118
Add Results coverage
0
.py
py
bsd-3-clause
gmr/queries
1176
<NME> results_tests.py <BEF> """ Tests for functionality in the results module """ import logging import unittest except ImportError: import unittest from queries import results def test_rownumber_value(self): self.cursor.rownumber = 10 self.assertEqual(self.obj.rownumber, 10) def test_q...
118
Add Results coverage
0
.py
py
bsd-3-clause
gmr/queries
1177
<NME> index.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. |Version| |Downloads| |License| |PythonVersions| The popular psycopg2_ package is a full-featured python client. Unfortunately a...
1
Remove the downloads badge
1
.rst
rst
bsd-3-clause
gmr/queries
1178
<NME> index.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. |Version| |Downloads| |License| |PythonVersions| The popular psycopg2_ package is a full-featured python client. Unfortunately a...
1
Remove the downloads badge
1
.rst
rst
bsd-3-clause
gmr/queries
1179
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Bump the version for release
1
.py
py
bsd-3-clause
gmr/queries
1180
<NME> setup.py <BEF> import os import platform import setuptools # PYPY vs cpython if platform.python_implementation() == 'PyPy': install_requires = ['psycopg2cffi>=2.7.2,<3'] else: install_requires = ['psycopg2>=2.5.1,<3'] # Install tornado if generating docs on readthedocs if os.environ.get('READTHEDOCS', ...
1
Bump the version for release
1
.py
py
bsd-3-clause
gmr/queries
1181
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
3
Fix the URI scheme in README
3
.rst
rst
bsd-3-clause
gmr/queries
1182
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
3
Fix the URI scheme in README
3
.rst
rst
bsd-3-clause
gmr/queries
1183
<NME> utils_tests.py <BEF> """ Tests for functionality in the utils module """ import platform import unittest import mock import queries from queries import utils class GetCurrentUserTests(unittest.TestCase): @mock.patch('pwd.getpwuid') def test_get_current_user(self, getpwuid): """get_current_us...
12
Support Unix socket connections in URI parsing
0
.py
py
bsd-3-clause
gmr/queries
1184
<NME> utils_tests.py <BEF> """ Tests for functionality in the utils module """ import platform import unittest import mock import queries from queries import utils class GetCurrentUserTests(unittest.TestCase): @mock.patch('pwd.getpwuid') def test_get_current_user(self, getpwuid): """get_current_us...
12
Support Unix socket connections in URI parsing
0
.py
py
bsd-3-clause
gmr/queries
1185
<NME> tornado_session_tests.py <BEF> """ Tests for functionality in the tornado_session module """ import unittest import mock # Out of order import to ensure psycopg2cffi is registered from queries import pool, tornado_session from psycopg2 import extras from tornado import concurrent, gen, ioloop, testing class...
21
Merge pull request #20 from dave-shawley/propagate-exceptions
0
.py
py
bsd-3-clause
gmr/queries
1186
<NME> tornado_session_tests.py <BEF> """ Tests for functionality in the tornado_session module """ import unittest import mock # Out of order import to ensure psycopg2cffi is registered from queries import pool, tornado_session from psycopg2 import extras from tornado import concurrent, gen, ioloop, testing class...
21
Merge pull request #20 from dave-shawley/propagate-exceptions
0
.py
py
bsd-3-clause
gmr/queries
1187
<NME> pool_tests.py <BEF> """ Tests for functionality in the pool module """ import time import unittest import uuid import mock from queries import pool MAX_POOL_SIZE = 100 def mock_connection(): conn = mock.MagicMock('psycopg2.extensions.connection') conn.close = mock.Mock() conn.closed = True c...
2
Rename the max pool size constant
2
.py
py
bsd-3-clause
gmr/queries
1188
<NME> pool_tests.py <BEF> """ Tests for functionality in the pool module """ import time import unittest import uuid import mock from queries import pool MAX_POOL_SIZE = 100 def mock_connection(): conn = mock.MagicMock('psycopg2.extensions.connection') conn.close = mock.Mock() conn.closed = True c...
2
Rename the max pool size constant
2
.py
py
bsd-3-clause
gmr/queries
1189
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
8
More README updates
9
.rst
rst
bsd-3-clause
gmr/queries
1190
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
8
More README updates
9
.rst
rst
bsd-3-clause
gmr/queries
1191
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
15
Add badges, code highlighting
0
.rst
rst
bsd-3-clause
gmr/queries
1192
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
15
Add badges, code highlighting
0
.rst
rst
bsd-3-clause
gmr/queries
1193
<NME> pool_tests.py <BEF> """ Tests for functionality in the pool module """ import time import unittest import uuid import mock from queries import pool MAX_POOL_SIZE = 100 MAX_POOL_SIZE = 100 class PoolTests(unittest.TestCase): def test_id_is_set(self): def test_id_property(self): pool_id = ...
16
Add a test for Pool.shutdown & fix the bug it found
0
.py
py
bsd-3-clause
gmr/queries
1194
<NME> pool_tests.py <BEF> """ Tests for functionality in the pool module """ import time import unittest import uuid import mock from queries import pool MAX_POOL_SIZE = 100 MAX_POOL_SIZE = 100 class PoolTests(unittest.TestCase): def test_id_is_set(self): def test_id_property(self): pool_id = ...
16
Add a test for Pool.shutdown & fix the bug it found
0
.py
py
bsd-3-clause
gmr/queries
1195
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
2
Merge pull request #3 from den-t/patch-1
2
.rst
rst
bsd-3-clause
gmr/queries
1196
<NME> README.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often repeating the same st...
2
Merge pull request #3 from den-t/patch-1
2
.rst
rst
bsd-3-clause
gmr/queries
1197
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import logging import unittest import mock from psycopg2 import extras import psycopg2 # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils LOGGER = logging.getLo...
1
Update pool and session tests
6
.py
py
bsd-3-clause
gmr/queries
1198
<NME> session_tests.py <BEF> """ Tests for functionality in the session module """ import hashlib import logging import unittest import mock from psycopg2 import extras import psycopg2 # Out of order import to ensure psycopg2cffi is registered from queries import pool, results, session, utils LOGGER = logging.getLo...
1
Update pool and session tests
6
.py
py
bsd-3-clause
gmr/queries
1199
<NME> index.rst <BEF> Queries: PostgreSQL Simplified ============================== *Queries* is a BSD licensed opinionated wrapper of the psycopg2_ library for interacting with PostgreSQL. |Version| |License| The popular psycopg2_ package is a full-featured python client. Unfortunately as a developer, you're often r...
2
Merge pull request #5 from jchassoul/patch-1
2
.rst
rst
bsd-3-clause
gmr/queries