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
Truong Le
committed
May 13, 2018
1 parent
607f3e1
commit 6d35498
Showing
4 changed files
with
49 additions
and
30 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export_dynamodb | ||
=============== | ||
|
||
A cli to export dynamodb. | ||
|
||
* [Key Features](key-features) | ||
* [How to use](#how-to-use) | ||
* [Getting started](#getting-started) | ||
|
||
Key Features | ||
============ | ||
* Scan table in single or parallel thread. | ||
* Output file can be json or csv. | ||
* Get list of tables from yaml file. | ||
|
||
How to use | ||
========== | ||
|
||
Getting started | ||
--------------- | ||
|
||
.. code:: bash | ||
# Install virtual environment | ||
$ pip3 install virtualenv | ||
$ virtualenv -p python3 venv | ||
$ source venv/bin/activate | ||
# Install dependencies | ||
$ pip install -r requirements.txt | ||
# if you want to exit from development environment, use deactivate command | ||
$ deactivate |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import click | ||
|
||
@click.command() | ||
@click.option('--table', help='Name of table to export.') | ||
def main(table): | ||
print('Dynamodb: {}'.format(table)) | ||
|
||
if __name__ == '__main__': | ||
main() |
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