-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
25 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,10 +5,6 @@ | |
from myql.contrib.auth import YOAuth | ||
import myql.errors | ||
|
||
import importlib | ||
|
||
__author__ = 'Josue Kouka' | ||
__email__ = '[email protected]' | ||
|
||
logging.basicConfig(level=logging.DEBUG,format="[%(asctime)s %(levelname)s] [%(name)s.%(module)s.%(funcName)s] %(message)s \n") | ||
logger = logging.getLogger('mYQL') | ||
|
@@ -28,7 +24,7 @@ class MYQL(object): | |
private_url = 'http://query.yahooapis.com/v1/yql' | ||
community_data = "env 'store://datatables.org/alltableswithkeys'; " #Access to community table | ||
|
||
def __init__(self, table=None, url=public_url, community=False, format='json', jsonCompact=False, crossProduct=None, debug=False, oauth=None): | ||
def __init__(self, table=None, url=public_url, community=True, format='json', jsonCompact=False, crossProduct=None, debug=False, oauth=None): | ||
self.table = table | ||
self.format = format | ||
self._query = None # used to build query when using methods such as <select>, <insert>, ... | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
import os | ||
from setuptools import setup, find_packages | ||
|
||
__author__ = 'Josue Kouka' | ||
__email__ = '[email protected]' | ||
__version__ = "1.2.2" | ||
|
||
#requirements.txt | ||
|
@@ -11,12 +13,12 @@ def read(fname): | |
return open(os.path.join(os.path.dirname(__file__), fname)).read() | ||
|
||
setup( | ||
name = "mYQL", | ||
name = "myql", | ||
version = __version__, | ||
description = "Python Wrapper for the Yahoo! Query Language. Allowing to run YQL queries, fetch financial data and create YQL Open Tables", | ||
long_description = read("README.rst"), | ||
author = "Josue Kouka", | ||
author_email = "[email protected]", | ||
author = __author__, | ||
author_email = __email__, | ||
url = "https://github.com/josuebrunel/MYQL", | ||
download_url = "https://github.com/josuebrunel/myql/archive/{0}.tar.gz".format(__version__), | ||
keywords = ['myql', 'yql', 'yahoo', 'query', 'language'], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters