diff --git a/README.md b/README.md deleted file mode 100644 index 63a9e6c..0000000 --- a/README.md +++ /dev/null @@ -1,28 +0,0 @@ -# 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 - -```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 -``` \ No newline at end of file diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..dd11a47 --- /dev/null +++ b/README.rst @@ -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 \ No newline at end of file diff --git a/export-dynamodb/main.py b/export-dynamodb/main.py new file mode 100644 index 0000000..d8cdcf0 --- /dev/null +++ b/export-dynamodb/main.py @@ -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() \ No newline at end of file diff --git a/setup.py b/setup.py index 4f6c90a..b5af99c 100644 --- a/setup.py +++ b/setup.py @@ -1,14 +1,15 @@ from distutils.core import setup + setup( name = 'export-dynamodb', packages = ['export-dynamodb'], - version = '1.0.0', + version = '1.0.1', description = 'A cli to export Amazon DynamoDb', author = 'Truong Le', author_email = 'travistrle@gmail.com', url = 'https://github.com/travistrle/export-dynamodb.git', license = 'GPLv3', - download_url = 'https://github.com/travistrle/export-dynamodb/archive/1.0.0.tar.gz', + download_url = 'https://github.com/travistrle/export-dynamodb/archive/1.0.1.tar.gz', keywords = ['aws', 'dynamodb', 'export'], classifiers = [ 'Development Status :: 3 - Alpha', @@ -17,4 +18,8 @@ 'Programming Language :: Python :: 3.6', ], python_requires='>=3.6', + install_requires=[ + 'click==6.7', + 'boto3==1.7.19' + ], ) \ No newline at end of file