Skip to content

Commit 0c29f74

Browse files
committed
fix links to fork posts. update script for proper mimetypes
1 parent 6c76f14 commit 0c29f74

32 files changed

+179
-103
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
title: AWS Lambda
2+
category: page
3+
slug: aws-lambda
4+
sortorder: 0731
5+
toc: False
6+
sidebartitle: AWS Lambda
7+
meta: AWS Lambda is a serverless compute service that can execute arbitrary Python 2.7 and 3.6 code.
8+
9+
10+
# AWS Lambda
11+
[Amazon Web Services (AWS) Lambda](https://aws.amazon.com/lambda/)
12+
is a compute service that executes arbitrary Python code in response
13+
to developer-defined AWS events, such as inbound API calls or file
14+
uploads to [AWS' Simple Storage Service (S3)](https://aws.amazon.com/s3/).
15+
16+
<a href="https://aws.amazon.com/lambda/" style="border:none"><img src="/img/logos/aws-lambda.jpg" width="100%" alt="AWS Lambda logo." class="technical-diagram" style="border-radius:6px"></a>
17+
18+
## Why is Lambda useful?
19+
Lambda is often used as a "serverless" compute architecture, which
20+
allows developers to upload their Python code instead of spinning and
21+
configuring servers, deploying their code and scaling based on traffic.
22+
23+
24+
### Python on AWS Lambda
25+
* [Building Scikit-Learn For AWS Lambda](https://serverlesscode.com/post/scikitlearn-with-amazon-linux-container/)
26+

content/pages/07-web-development/31-microservices.markdown renamed to content/pages/10-web-apis/03-microservices.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: Microservices
22
category: page
33
slug: microservices
4-
sortorder: 0731
4+
sortorder: 1003
55
toc: False
66
sidebartitle: Microservices
77
meta: Microservices are an architecture where independent, functionality-contained programs communicate via network calls.

content/pages/10-web-apis/06-bots.markdown renamed to content/pages/10-web-apis/07-bots.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: Bots
22
category: page
33
slug: bots
4-
sortorder: 1006
4+
sortorder: 1007
55
toc: False
66
sidebartitle: Bots
77
meta: Bots are applications that combine text input with contextual data to handle and respond to requests.

content/pages/10-web-apis/07-api-creation.markdown renamed to content/pages/10-web-apis/08-api-creation.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: API Creation
22
category: page
33
slug: api-creation
4-
sortorder: 1007
4+
sortorder: 1008
55
toc: False
66
sidebartitle: API Creation
77
meta: Web APIs enable machine-to-machine communication. Learn more about creating web APIs on Full Stack Python.

content/pages/10-web-apis/12-api-integration.markdown renamed to content/pages/10-web-apis/13-api-integration.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: API Integration
22
category: page
33
slug: api-integration
4-
sortorder: 1012
4+
sortorder: 1013
55
toc: False
66
sidebartitle: API Integration
77
meta: Integrating web APIs into an application is necessary for both mobile and web applications. Learn more about API integration on Full Stack Python.

content/pages/10-web-apis/13-twilio.markdown renamed to content/pages/10-web-apis/14-twilio.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
title: Twilio
22
category: page
33
slug: twilio
4-
sortorder: 1013
4+
sortorder: 1014
55
toc: False
66
sidebartitle: Twilio
77
meta: Twilio is an API for developers to add communications such as phone calling, messaging and video to Python applications.

content/posts/160509-django-gunicorn-ubuntu-1604.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ slug: python-3-django-gunicorn-ubuntu-1604-xenial-xerus
33
meta: Step-by-step instructions for developing on Ubuntu 16.04 with Python 3, Django and Green Unicorn (Gunicorn).
44
category: post
55
date: 2016-05-09
6-
modified: 2017-04-25
6+
modified: 2017-04-28
77
headerimage: /img/160509-ubuntu-django-gunicorn/header.jpg
88
headeralt: Django, Green Unicorn and Ubuntu Linux logos. Copyright their respective owners.
99

@@ -155,6 +155,5 @@ or [@mattmakai](https://twitter.com/mattmakai). I'm also on GitHub with
155155
the username [mattmakai](https://github.com/mattmakai).
156156

157157
See something wrong in this post? Fork
158-
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/gh-pages/source/content/posts/160509-django-gunicorn-ubuntu-1604.markdown)
158+
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/master/content/posts/160509-django-gunicorn-ubuntu-1604.markdown)
159159
and submit a pull request.
160-

content/posts/160510-flask-gunicorn-ubuntu-1604.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ slug: python-3-flask-green-unicorn-ubuntu-1604-xenial-xerus
33
meta: Instructions for setting up Ubuntu 16.04 with Python 3, Flask and Green Unicorn (Gunicorn).
44
category: post
55
date: 2016-05-10
6-
modified: 2017-04-25
6+
modified: 2017-04-28
77
headerimage: /img/160510-ubuntu-flask-gunicorn/header.jpg
88
headeralt: Flask, Green Unicorn and Ubuntu logos. Copyright their respective owners.
99

@@ -176,5 +176,5 @@ or [@mattmakai](https://twitter.com/mattmakai). I'm also on GitHub with
176176
the username [mattmakai](https://github.com/mattmakai).
177177

178178
Something wrong with this post? Fork
179-
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/gh-pages/source/content/posts/160510-flask-gunicorn-ubuntu-1604.markdown).
180-
179+
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/master/content/posts/160510-flask-gunicorn-ubuntu-1604.markdown)
180+
and submit a pull request.

content/posts/160511-send-sms-text-message-python.markdown

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ slug: send-sms-text-messages-python
33
meta: A how-to guide for sending SMS (text messages) using the Python programming language.
44
category: post
55
date: 2016-05-11
6-
modified: 2016-04-25
6+
modified: 2017-04-28
77
headerimage: /img/160511-send-sms-python/header.jpg
88
headeralt: Twilio and Python logos. Copyright their respective owners.
99

@@ -17,8 +17,8 @@ Python apps.
1717

1818

1919
## Tools We Need
20-
This guide works with both Python 2 and 3, so make sure you have one of those
21-
two versions installed.
20+
This guide works with both Python 2 and 3, so make sure you have one of
21+
those two versions installed.
2222

2323
* Either [Python 2 or 3](/python-2-or-3.html)
2424
* [pip](https://pip.pypa.io/en/stable/) and
@@ -28,7 +28,8 @@ two versions installed.
2828
[SMS web API](https://www.twilio.com/docs/api/rest/sending-messages)
2929
* Open source
3030
[Twilio Python helper library](https://pypi.python.org/pypi/twilio),
31-
[version 5.7.0 or earlier](https://github.com/twilio/twilio-python/tree/5.7.0)
31+
[version 6.0.0](https://github.com/twilio/twilio-python/tree/6.0.0)
32+
or later
3233

3334
If you need assistance getting pip and virtualenv installed, check out the
3435
first few steps of the
@@ -39,9 +40,9 @@ guide that'll show how to install system packages for those tools.
3940
## Using a Web API
4041
We're going to use a web API to make sending SMS easier and more reliable.
4142
Head to the
42-
[Twilio website and sign up for a free trial account](https://www.twilio.com/try-twilio). If you already have a Twilio account (and you should - it's awesome
43-
for more than just sending text messages!) then sign into your existing
44-
account.
43+
[Twilio website and sign up for a free trial account](https://www.twilio.com/try-twilio). If you already have a Twilio account (and you should - it's
44+
awesome for more than just sending text messages!) then sign into your
45+
existing account.
4546

4647
<img src="/img/160511-send-sms-python/try-twilio.png" width="100%" class="technical-diagram img-rounded">
4748

@@ -80,11 +81,12 @@ to something like this:
8081
<img src="/img/160511-send-sms-python/activate-virtualenv.png" width="100%" class="technical-diagram img-rounded">
8182

8283

83-
Now install the Twilio Python helper library. We are using the 5.7.0
84-
library version because 6.0.0 changed the code quite a bit compared to
85-
the older version.
84+
Now install the Twilio Python helper library. We are using the 6.0.0
85+
or above library version, which is important because the syntax in
86+
this post is backwards-incompatible with 5.x and previous Twilio helper
87+
library versions.
8688

87-
pip install twilio==5.7.0
89+
pip install twilio>=6.0.0
8890

8991

9092
The helper library is now installed and we can use it with the Python code
@@ -110,16 +112,17 @@ in the
110112

111113

112114
# we import the Twilio client from the dependency we just installed
113-
from twilio.rest import TwilioRestClient
115+
from twilio.rest import Client
114116

115117
# the following line needs your Twilio Account SID and Auth Token
116-
client = TwilioRestClient("ACxxxxxxxxxxxxxx", "zzzzzzzzzzzzz")
118+
client = Client("ACxxxxxxxxxxxxxx", "zzzzzzzzzzzzz")
117119

118120
# change the "from_" number to your Twilio number and the "to" number
119121
# to the phone number you signed up for Twilio with, or upgrade your
120122
# account to send SMS to any phone number
121-
client.messages.create(to="+19732644152", from_="+12023358536",
122-
body="Hello from Python!")
123+
client.api.account.messages.create(to="+19732644152",
124+
from_="+12023351278",
125+
body="Hello from Python!")
123126

124127

125128
All the lines above that start with `#` are comments. Once you enter that
@@ -141,6 +144,5 @@ or [@mattmakai](https://twitter.com/mattmakai). I'm also on GitHub with
141144
the username [mattmakai](https://github.com/mattmakai).
142145

143146
See something wrong in this post? Fork
144-
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/gh-pages/source/content/posts/160511-send-sms-text-message-python.markdown)
147+
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/master/content/posts/160511-send-sms-text-message-python.markdown)
145148
and submit a pull request.
146-

content/posts/160513-bottle-gunicorn-ubuntu-1604.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ slug: python-3-bottle-gunicorn-ubuntu-1604-xenial-xerus
33
meta: Learn to develop Bottle web apps on Ubuntu 16.04 with Python 3 and Green Unicorn (Gunicorn).
44
category: post
55
date: 2016-05-13
6-
modified: 2017-04-25
6+
modified: 2017-04-28
77
headerimage: /img/160513-ubuntu-bottle-gunicorn/header.jpg
88
headeralt: Bottle, Green Unicorn and Ubuntu logos. Copyright their respective owners.
99

@@ -174,6 +174,5 @@ To decide what to do next with your Python project, check out the
174174
[Full Stack Python table of contents](/table-of-contents.html) page.
175175

176176
See something wrong in this post? Fork
177-
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/gh-pages/source/content/posts/160513-bottle-gunicorn-ubuntu-1604.markdown)
177+
[this page's source on GitHub](https://github.com/mattmakai/fullstackpython.com/blob/master/content/posts/160513-bottle-gunicorn-ubuntu-1604.markdown)
178178
and submit a pull request.
179-

0 commit comments

Comments
 (0)