Skip to content

Commit

Permalink
Update README.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
ayemos committed Jul 6, 2017
1 parent f09c397 commit 9f62a17
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ MySQLDataSource

.. code:: python
from akagi.data_sources import MySQLDataSource
with MySQLDataSource.for_query(
'select * from (select user_id, path from logs.imp limit 10000)', # Your Query here
) as ds:
Expand All @@ -67,6 +69,8 @@ RedshiftDataSource

.. code:: python
from akagi.data_sources import RedshiftDataSource
with RedshiftDataSource.for_query(
'select * from (select user_id, path from logs.imp limit 10000)', # Your Query here
'logs', # schema
Expand All @@ -85,6 +89,8 @@ S3DataSource

.. code:: python
from akagi.data_sources import S3DataSource
with S3DataSource.for_prefix(
'image-data.ap-northeast-1',
'data/image_net/zebra',
Expand All @@ -97,6 +103,8 @@ LocalDataSource

.. code:: python
from akagi.data_sources import LocalDataSource
with LocalDataSource.for_path(
'./PATH/TO/YOUR/DATA/DIR',
'csv') as ds:
Expand Down

0 comments on commit 9f62a17

Please sign in to comment.