diff --git a/README.md b/README.md index 524df8d..8ed516c 100755 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ mYQL [![Join the chat at https://gitter.im/josuebrunel/myql](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/josuebrunel/myql?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![Code Issues](https://www.quantifiedcode.com/project/gh:josuebrunel:myql/badge.svg)](https://www.quantifiedcode.com/app/project/gh:josuebrunel:myql) -mYQL is a Python wrapper of the Yahoo Query Language. +mYQL is a Python wrapper of the Yahoo Query Language. Full documentation [here](http://myql.readthedocs.org/en/latest/) Yahoo! Query Language Documentation and Support =============================================== @@ -39,7 +39,7 @@ v 1.2.2 ( in development ) v 1.2.1 ------ -* Multiple requests while using OAuth fixed +* Multiple requests while using OAuth fixed v 1.2.0 ------- @@ -53,7 +53,7 @@ v 0.5.6 * select data format (xml/json) * change data source * filter data -* fix handling of default and on the fly response format +* fix handling of default response format on the fly * fix limit on ***select(...).where(...)*** when no limit value is passed * fix limit on ***get(...)*** diff --git a/README.rst b/README.rst index 7153a15..3505082 100644 --- a/README.rst +++ b/README.rst @@ -1,33 +1,17 @@ -`MYQL <.>`_ - -- `MYQL `_ -- `StockScraper `_ -- `YOAuth `_ -- `Open Table `_ -- `Contribute `_ - -  ** ` <.>`_ - -- `Docs <.>`_ » -- Home -- `Edit on GitHub `_ - --------------- - -MYQL +mYQL ==== -MYQL is a Python wrapper of the Yahoo Query Language. +mYQL is a Python wrapper of the Yahoo Query Language. Read the full Documentation `http://myql.readthedocs.org/en/latest/` Yahoo! Query Language Documentation and Support =============================================== -- `Yahoo! Query Language `_ -- `Yahoo! Developer Network `_ -- `Yahoo! Application Platform `_ -- `Yahoo! Social APIs `_ +- `Yahoo! Query Language `__ +- `Yahoo! Developer Network `__ +- `Yahoo! Application Platform `__ +- `Yahoo! Social APIs `__ - `Yahoo! Query Language - Console `_ + Console `__ Installation ============ @@ -36,16 +20,6 @@ Installation $ pip install myql -:: - - $ pip install git+https://github.com/josuebrunel/myql.git - -Or download the package and run - -:: - - $ python setup.py install --record files_path.txt - Quick Start =========== @@ -247,12 +221,12 @@ Using OAuth to fetch protected resources >>> yql = MYQL(format='xml', oauth=oauth) >>> response = yql.getGUID('josue_brunel') # Deal with the response -` `_\ Next +` `__\ Next -------------- -Built with `MkDocs `_ using a -`theme `_ provided by `Read -the Docs `_. +Built with `MkDocs `__ using a +`theme `__ provided by `Read +the Docs `__. -GitHub `« Previous <>`_ `Next » `_ +GitHub `« Previous <>`__ `Next » `__ diff --git a/myql/myql.py b/myql/myql.py index c838051..468bf44 100755 --- a/myql/myql.py +++ b/myql/myql.py @@ -5,10 +5,6 @@ from myql.contrib.auth import YOAuth import myql.errors -import importlib - -__author__ = 'Josue Kouka' -__email__ = 'josuebrunel@gmail.com' 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