{ "info": { "author": "Henrique Menezes", "author_email": "hamsalmeida@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "Intended Audience :: System Administrators", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Operating System :: Unix", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Database", "Topic :: Terminals", "Topic :: Utilities" ], "description": "# dyn-cli\n\nCommand Line Interface for Dynamo DB\n\nContent:\n\n* [Installation](#installation)\n* [Usage](#usage)\n* [Commands](#commands)\n + [List tables](#list-tables)\n + [Create table](#create-table)\n + [Update table](#update-table)\n + [Delete table](#delete-table)\n* [Examples](#examples)\n\n## Installation\n\nThe easiest way to install dyn-cli is to use [pip](https://pip.pypa.io//en/latest/):\n\n```bash\n$ pip install dyncli\n```\n\n## Usage\n\nSynopsis:\n\n```bash\n$ dyn [OPTIONS] COMMAND [ARGS]...\n```\n\nList of commands:\n\n* [List tables](#list-tables)\n* [Create table](#create-table)\n* [Update table](#update-table)\n* [Delete table](#delete-table)\n\n### Options\n\nYou can configure your AWS credentials via options. The following table shows these options.\n\n| Option | Description |\n|-------------------------------------|------------------------------------------------------------------------------|\n| `-a`, `--access-key AWS_ACCESS_KEY` | AWS Access Key ID. (default: local) |\n| `-s`, `--secret-key AWS_SECRET_KEY` | AWS Secret Key. (default: local) |\n| `-r`, `--region AWS_REGION` | AWS Region. (default: us-east-1) |\n| `-n`, `--no-local` | Disable local endpoint_url set up to http://localhost:8000. (default: false) |\n| `-h`, `--help` | Show help message. |\n\n## Commands\n\n### List tables\n\nList all tables of DynamoDB.\n\n```bash\n$ dyn list_tables\n```\n\n### Create table\n\nCreates a DynamoDB table with `TABLE` name and attributes defined in `ATTRIBUTE`.\n\n```bash\n$ dyn create_table [OPTIONS] TABLE ATTRIBUTE [ATTRIBUTE]...\n```\n\n#### Options\n\n| Option | Description |\n|-------------------------------------|------------------------------------------------------------------------------|\n| `-r`, `--read-units INTEGER` | Read capacity units. (default: 1) |\n| `-w`, `--write-units INTEGER` | Write capacity units. (default: 1) |\n\n#### Atrributes\n\nThe `ATTRIBUTE` argument can be defined like: `name:type[:pk][:sk]`\n\n* _name_ - name of attribute.\n* _type_ - type of attribute that can be:\n + `s` - string\n + `n` - number\n + `b` - binary\n* `pk` - first attribute of primary key (partition key - HASH)\n* `sk` - second attribute of primary key (sort key - RANGE)\n\n### Update table\n\nModifies a DynamoDB table with TABLE name.\n\n```bash\n$ dyn update_table [OPTIONS] TABLE\n```\n\n#### Options\n\n| Option | Description |\n|-------------------------------------|------------------------------------------------------------------------------|\n| `-r`, `--read-units INTEGER` | Read capacity units. (default: 1) |\n| `-w`, `--write-units INTEGER` | Write capacity units. (default: 1) |\n\n### Delete table\n\nDeletes a table of DynamoDB.\n\n```bash\n$ dyn delete_table TABLE\n```\n\n## Examples\n\nListing all tables:\n\n```bash\n$ dyn list_tables\n```\n\n```json\n{\n \"TableNames\": [\n \"Movies\",\n \"Music\"\n ]\n}\n```\n\nCreating Music table:\n\n```bash\n$ dyn create_table Music Artist:s:pk SongTitle:s:sk\n```\n\n```json\n{\n \"TableDescription\": {\n \"AttributeDefinitions\": [\n {\n \"AttributeName\": \"Artist\",\n \"AttributeType\": \"S\"\n },\n {\n \"AttributeName\": \"SongTitle\",\n \"AttributeType\": \"S\"\n }\n ],\n \"CreationDateTime\": \"2017-07-02T23:19:52.932000-03:00\",\n \"ItemCount\": 0,\n \"KeySchema\": [\n {\n \"AttributeName\": \"Artist\",\n \"KeyType\": \"HASH\"\n },\n {\n \"AttributeName\": \"SongTitle\",\n \"KeyType\": \"RANGE\"\n }\n ],\n \"ProvisionedThroughput\": {\n \"LastDecreaseDateTime\": \"1969-12-31T21:00:00-03:00\",\n \"LastIncreaseDateTime\": \"1969-12-31T21:00:00-03:00\",\n \"NumberOfDecreasesToday\": 0,\n \"ReadCapacityUnits\": 1,\n \"WriteCapacityUnits\": 1\n },\n \"TableArn\": \"arn:aws:dynamodb:ddblocal:000000000000:table/Music\",\n \"TableName\": \"Music\",\n \"TableSizeBytes\": 0,\n \"TableStatus\": \"ACTIVE\"\n }\n}\n```\n\nUpdating Music table:\n\n```bash\n$ dyn update_table Music -r 10 -w 10\n```\n\n```javascript\n{\n \"TableDescription\": {\n \"AttributeDefinitions\": [\n {\n \"AttributeName\": \"Artist\",\n \"AttributeType\": \"S\"\n },\n {\n \"AttributeName\": \"SongTitle\",\n \"AttributeType\": \"S\"\n }\n ],\n \"CreationDateTime\": \"2017-07-02T23:19:52.932000-03:00\",\n \"ItemCount\": 0,\n \"KeySchema\": [\n {\n \"AttributeName\": \"Artist\",\n \"KeyType\": \"HASH\"\n },\n {\n \"AttributeName\": \"SongTitle\",\n \"KeyType\": \"RANGE\"\n }\n ],\n \"ProvisionedThroughput\": {\n \"LastDecreaseDateTime\": \"1969-12-31T21:00:00-03:00\",\n \"LastIncreaseDateTime\": \"1969-12-31T21:00:00-03:00\",\n \"NumberOfDecreasesToday\": 0,\n \"ReadCapacityUnits\": 10,\n \"WriteCapacityUnits\": 10\n },\n \"TableArn\": \"arn:aws:dynamodb:ddblocal:000000000000:table/Music\",\n \"TableName\": \"Music\",\n \"TableSizeBytes\": 0,\n \"TableStatus\": \"ACTIVE\"\n }\n}\n```\n\nDeleting Music table:\n\n```bash\n$ dyn delete_table Music\n```\n\n```json\n{\n \"TableDescription\": {\n \"ItemCount\": 0,\n \"ProvisionedThroughput\": {\n \"LastDecreaseDateTime\": \"1969-12-31T21:00:00-03:00\",\n \"LastIncreaseDateTime\": \"1969-12-31T21:00:00-03:00\",\n \"NumberOfDecreasesToday\": 0,\n \"ReadCapacityUnits\": 10,\n \"WriteCapacityUnits\": 10\n },\n \"TableArn\": \"arn:aws:dynamodb:ddblocal:000000000000:table/Music\",\n \"TableName\": \"Music\",\n \"TableSizeBytes\": 0,\n \"TableStatus\": \"DELETING\"\n }\n}\n```\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/henriquemenezes/dyn-cli", "keywords": "", "license": "Apache License 2.0", "maintainer": "", "maintainer_email": "", "name": "dyn-cli", "package_url": "https://pypi.org/project/dyn-cli/", "platform": "", "project_url": "https://pypi.org/project/dyn-cli/", "project_urls": { "Homepage": "https://github.com/henriquemenezes/dyn-cli" }, "release_url": "https://pypi.org/project/dyn-cli/0.1.0/", "requires_dist": [ "boto3 (==1.4.4)", "botocore (==1.5.65)", "click (==6.7)", "colorama (==0.3.9)", "docutils (==0.13.1)", "futures (==3.1.1)", "jmespath (==0.9.3)", "python-dateutil (==2.6.0)", "s3transfer (==0.1.10)", "six (==1.10.0)" ], "requires_python": "", "summary": "Dyn CLI - DynamoDB Command Line Interface", "version": "0.1.0" }, "last_serial": 4286696, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "1f0057d0a0a8b34ee97024769add621c", "sha256": "c2e6f8d591fbb9ac489d5ba12bdc9fd6fcc1e96a79cb33f31ddd22e3e1314d8d" }, "downloads": -1, "filename": "dyn_cli-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1f0057d0a0a8b34ee97024769add621c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8543, "upload_time": "2018-09-19T01:44:26", "url": "https://files.pythonhosted.org/packages/59/8b/b0fcd6aaccc96448c3fcd47bc28113f8f15a17cd2db500d7ff3fd657b44e/dyn_cli-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb76fe14e0228397f3a9c5ebf0a5fa9d", "sha256": "68b32cde048611229f708cc2db9f6c4d2c8369fcc8c8d0bb559967c1edbba0bf" }, "downloads": -1, "filename": "dyn-cli-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fb76fe14e0228397f3a9c5ebf0a5fa9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5595, "upload_time": "2018-09-19T01:44:27", "url": "https://files.pythonhosted.org/packages/e0/3b/c0c9de6f5614b7ee95549b154f9e763133be66616cd5898cedca7afea065/dyn-cli-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "1f0057d0a0a8b34ee97024769add621c", "sha256": "c2e6f8d591fbb9ac489d5ba12bdc9fd6fcc1e96a79cb33f31ddd22e3e1314d8d" }, "downloads": -1, "filename": "dyn_cli-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "1f0057d0a0a8b34ee97024769add621c", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8543, "upload_time": "2018-09-19T01:44:26", "url": "https://files.pythonhosted.org/packages/59/8b/b0fcd6aaccc96448c3fcd47bc28113f8f15a17cd2db500d7ff3fd657b44e/dyn_cli-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fb76fe14e0228397f3a9c5ebf0a5fa9d", "sha256": "68b32cde048611229f708cc2db9f6c4d2c8369fcc8c8d0bb559967c1edbba0bf" }, "downloads": -1, "filename": "dyn-cli-0.1.0.tar.gz", "has_sig": false, "md5_digest": "fb76fe14e0228397f3a9c5ebf0a5fa9d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5595, "upload_time": "2018-09-19T01:44:27", "url": "https://files.pythonhosted.org/packages/e0/3b/c0c9de6f5614b7ee95549b154f9e763133be66616cd5898cedca7afea065/dyn-cli-0.1.0.tar.gz" } ] }