Skip to content

Commit 36ff37e

Browse files
authored
Merge pull request #3 from gridsmartercities/build_badge
Updating README in preparation for latest release
2 parents 40b2e9c + 9eb0e62 commit 36ff37e

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
[<img align="right" alt="Grid Smarter Cities" src="https://s3.eu-west-2.amazonaws.com/open-source-resources/grid_smarter_cities_small.png">](https://www.gridsmartercities.com/)
22

3+
![Build Status](https://codebuild.eu-west-2.amazonaws.com/badges?uuid=eyJlbmNyeXB0ZWREYXRhIjoiZGdTRFhHdng1Mks0THRaT2VkR3JYaWpOWGlwNjYvVGVYWUNoZGp6VW9MZDRMZ1I0WDFVNFJ0cHBORkJJVSswMWQ1VkxISGNFR1dWTElrWThDTVBldjUwPSIsIml2UGFyYW1ldGVyU3BlYyI6IlFMS1V1K0F5a1BHRTZlN0IiLCJtYXRlcmlhbFNldFNlcmlhbCI6MX0%3D&branch=master)
34
[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT)
4-
[![PyPI](https://img.shields.io/pypi/v/pywsitest.svg?color=brightgreen)](https://pypi.org/project/aws-dynamodb-parser/)
5+
[![PyPI](https://img.shields.io/pypi/v/aws-dynamodb-parser.svg?color=brightgreen)](https://pypi.org/project/aws-dynamodb-parser/)
56

67
# AWS DynamoDB Parser
78

@@ -76,7 +77,7 @@ items = response.get("Items", [])
7677
print(items)
7778
# [{'id': {'S': 'a77b5fc0-75cb-408c-bebf-863873506cce'}, 'timestamp': {'S': '2020-10-01 13:13:47.388492'}, 'name': {'S': 'First test entry'}}, {'id': {'S': 'a77b5fc0-75cb-408c-bebf-863873506cce'}, 'timestamp': {'S': '2020-10-01 13:15:25.376589'}, 'name': {'S': 'Second test entry'}}]
7879

79-
entries = [parse(item) for item in items]
80+
entries = parse(items)
8081
print(entries)
8182
# [{'id': 'a77b5fc0-75cb-408c-bebf-863873506cce', 'timestamp': '2020-10-01 13:13:47.388492, 'name': 'First test entry'}, {'id': 'a77b5fc0-75cb-408c-bebf-863873506cce', 'timestamp': '2020-10-01 13:15:25.376589', 'name': 'Second test entry'}]
8283
```

buildspec.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@ version: 0.2
33
phases:
44
install:
55
runtime-versions:
6-
python: 3.7
6+
python: 3.8
77
commands:
88
- pip install -r requirements.txt
99
pre_build:
1010
commands:
11-
- bandit -r .
12-
- prospector
1311
- coverage run --source="." -m unittest
14-
- coverage report -m --fail-under=100 --omit=*/__init__.py,tests/*,setup.py
12+
- coverage report -m --fail-under=100 --omit=*/__init__.py,tests/*,setup.py
13+
- mypy aws_dynamodb_parser
14+
- prospector
15+
- bandit -r .

0 commit comments

Comments
 (0)