-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathsetup.py
More file actions
83 lines (63 loc) · 2.22 KB
/
setup.py
File metadata and controls
83 lines (63 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
"""
``query``
---------
``query`` is a simple module for quickly, interactively exploring a SQL
database. Together with IPython, it supports quick tab-completion of table
and column names, convenience methods for quickly looking at data (e.g.,
``.head()``, ``.tail()``), and the ability to get a rich interactive database
connection up in only 2 lines by setting a few required environmental
variables.
.. image:: https://travis-ci.org/boydgreenfield/query.svg?branch=v0.1.4
Demo in 2 lines
```````````````
Explore the included demo database:
.. code:: python
from query import QueryDb
db = QueryDb(demo=True)
Real-world use case in 2 lines
``````````````````````````````
Or set a few environmental variables (``QUERY_DB_DRIVER``,
``QUERY_DB_HOST``, ``QUERY_DB_PORT``, ``QUERY_DB_NAME``, and
``QUERY_DB_PASS``) and get started just as quickly:
.. code:: python
from query import QueryDB # capital 'B' is OK too :)
db = QueryDB()
Interactive example
```````````````````
.. image:: https://github.com/boydgreenfield/query/raw/v0.1.2/docs/images/interactive_demo.gif?raw=True
Links
`````
* `Code and additional details on Github: <http://github.com/boydgreenfield/query/>`_
"""
from setuptools import setup
setup(
name='query',
version='0.1.4', # When incrementing,
# make sure to update Travis link above as well
url='http://github.com/boydgreenfield/query/',
license='MIT',
author='Nick Boyd Greenfield',
author_email='boyd.greenfield@gmail.com',
description='Quick interactive exploration of SQL databases.',
long_description=__doc__,
packages=['query'],
package_data={'query': ['sample_data/*.sqlite', 'sample_data/*.md']},
zip_safe=True,
platforms='any',
install_requires=[
'pandas>=0.16',
'sqlalchemy>=1.3.0'
],
classifiers=[
'Development Status :: 4 - Beta',
'Framework :: IPython',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Database',
'Topic :: Database :: Front-Ends'
],
test_suite='nose.collector'
)