Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Building Serverless Microservices in Python

You're reading from   Building Serverless Microservices in Python A complete guide to building, testing, and deploying microservices using serverless computing on AWS

Arrow left icon
Product type Paperback
Published in Mar 2019
Publisher Packt
ISBN-13 9781789535297
Length 168 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Richard Takashi Freeman Richard Takashi Freeman
Author Profile Icon Richard Takashi Freeman
Richard Takashi Freeman
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface 1. Serverless Microservices Architectures and Patterns 2. Creating Your First Serverless Data API FREE CHAPTER 3. Deploying Your Serverless Stack 4. Testing Your Serverless Microservice 5. Securing Your Microservice 6. Summary and Future Work 7. Other Books You May Enjoy

Creating and writing to a NoSQL database called DynamoDB using Python

Now that we understand how to create a table, add data, and query DynamoDB using the AWS Console, we will look at how we can do this using only Python code.

We recommend you use a Python Integrated development environment (IDE) such as Eclipse PyDev (http://www.pydev.org/download.html) or PyCharm (https://www.jetbrains.com/pycharm/). You do not need to use an IDE, but I would recommend that you do. If you really want to, you can use VI, for example, on Linux to actually edit your code. But using an IDE allows you, for example, to run debugging or set up unit testing locally and step through it, which makes it easier and more productive for development.

First create the table using Boto3 https://boto3.readthedocs.io/ in Python. Run the code in the following section in PyCharm or your favorite text editor...

You have been reading a chapter from
Building Serverless Microservices in Python
Published in: Mar 2019
Publisher: Packt
ISBN-13: 9781789535297
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image