Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/techjacker/dynamodbtocsv
Downloads an AWS DynamoDB table and exports to CSV
https://github.com/techjacker/dynamodbtocsv
aws csv dynamodb
Last synced: 3 months ago
JSON representation
Downloads an AWS DynamoDB table and exports to CSV
- Host: GitHub
- URL: https://github.com/techjacker/dynamodbtocsv
- Owner: techjacker
- License: mit
- Created: 2016-04-25T18:15:22.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-04T18:39:29.000Z (almost 8 years ago)
- Last Synced: 2024-08-14T07:09:18.062Z (6 months ago)
- Topics: aws, csv, dynamodb
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 15
- Watchers: 4
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - techjacker/dynamodbtocsv - Downloads an AWS DynamoDB table and exports to CSV (Python)
README
[![Build Status](https://travis-ci.org/techjacker/dynamodbtocsv.svg?branch=master)](https://travis-ci.org/techjacker/dynamodbtocsv)
# dynamodbtocsv
- Downloads a AWS DynamoDB table and exports to CSV
- Optionally pass a JSON config that specifies column order in CSV
- JSON config also allows column headings to be renamed in CSV
- requires python 3## Usage
```Shell
$ ./dynamodbtocsv.py -husage: dynamodbtocsv.py [-h] [-l LIMIT] [-e EXPORT] [-o ORDER] [-p PROFILE]
table_nameDynamoDB to CSV
positional arguments:
table_name the DynamoDB table nameoptional arguments:
-h, --help show this help message and exit
-l LIMIT, --limit LIMIT
row limit (default=10000)
-e EXPORT, --export EXPORT
name of CSV to write to (default=table.csv)
-o ORDER, --order ORDER
order config filename
-p PROFILE, --profile PROFILE
AWS profile to use
```### Example Order JSON config
```JSON
[
{"name": "dnyamoDB_col_3", "nicename": "New heading name of column 3 which is now the first column of our CSV"},
{"name": "col_one"},
{"name": "col_four", "remove_content": true, "nicename": "the content of these rows will be removed (they will be blank cells)"},
{"name": "col_two", "nicename": "We will change the name of this column too and it will be placed as the 3rd column"}
]
```## Development
```Shell
pyenv virtualenv 3.5.1 dynamodbtocsv
pyenv local dynamodbtocsv
pip install -r requirements.txt
pip install -r requirements-dev.txt
```### Tests
```Shell
nostests
```