Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Events
Videos
Audiobooks
Packt Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Building RESTful Python Web Services
Building RESTful Python Web Services

Building RESTful Python Web Services: Create web services that are lightweight, maintainable, scalable, and secure using the best tools and techniques designed for Python

Arrow left icon
Profile Icon Gastón C. Hillar
Arrow right icon
zł34.99 zł187.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (5 Ratings)
eBook Oct 2016 418 pages 1st Edition
eBook
zł34.99 zł187.99
Paperback
zł233.99
eBook + Subscription
Free Trial
Arrow left icon
Profile Icon Gastón C. Hillar
Arrow right icon
zł34.99 zł187.99
Full star icon Full star icon Full star icon Full star icon Empty star icon 4 (5 Ratings)
eBook Oct 2016 418 pages 1st Edition
eBook
zł34.99 zł187.99
Paperback
zł233.99
eBook + Subscription
Free Trial
eBook
zł34.99 zł187.99
Paperback
zł233.99
eBook + Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Building RESTful Python Web Services

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Develop RESTful Web Services using the most popular frameworks in Python
  • Configure and fine-tune your APIs using the best tools and techniques available
  • This practical guide will help you to implement complete REST-based APIs from scratch

Description

Python is the language of choice for millions of developers worldwide, due to its gentle learning curve as well as its vast applications in day-to-day programming. It serves the purpose of building great web services in the RESTful architecture. This book will show you the best tools you can use to build your own web services. Learn how to develop RESTful APIs using the popular Python frameworks and all the necessary stacks with Python, Django, Flask, and Tornado, combined with related libraries and tools. We will dive deep into each of these frameworks to build various web services, and will provide use cases and best practices on when to use a particular framework to get the best results. We will show you everything required to successfully develop RESTful APIs with the four frameworks such as request handling, URL mapping, serialization, validation, authentication, authorization, versioning, ORMs, databases, custom code for models and views, and asynchronous callbacks. At the end of each framework, we will add authentication and security to the RESTful APIs and prepare tests for it. By the end of the book, you will have a deep understanding of the stacks needed to build RESTful web services.

Who is this book for?

This book is for web developers who have working knowledge of Python and would like to build amazing web services by taking advantage of the various frameworks of Python. You should have some knowledge of RESTful APIs.

What you will learn

  • * Develop complex RESTful APIs from scratch with Python combined with and without data sources
  • * Choose the most appropriate (micro) framework based on the specific requirements of a RESTful API / web service
  • * Debug, test, and profile RESTful APIs with each of the frameworks
  • * Develop a complex RESTful API that interacts with a PostgreSQL database
  • * Add authentication and permissions to a RESTful API built in each of the frameworks
  • * Map URL patterns to request handlers and check how the API works
  • * Profile an existing API and refactor it to take advantage of asynchronous code

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 27, 2016
Length: 418 pages
Edition : 1st
Language : English
ISBN-13 : 9781786464255
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Oct 27, 2016
Length: 418 pages
Edition : 1st
Language : English
ISBN-13 : 9781786464255
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just zł20 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 661.97
Modern Python Cookbook
zł221.99
Building RESTful Python Web Services
zł233.99
Expert Python Programming
zł205.99
Total 661.97 Stars icon

Table of Contents

11 Chapters
1. Developing RESTful APIs with Django Chevron down icon Chevron up icon
2. Working with Class-Based Views and Hyperlinked APIs in Django Chevron down icon Chevron up icon
3. Improving and Adding Authentication to an API With Django Chevron down icon Chevron up icon
4. Throttling, Filtering, Testing, and Deploying an API with Django Chevron down icon Chevron up icon
5. Developing RESTful APIs with Flask Chevron down icon Chevron up icon
6. Working with Models, SQLAlchemy, and Hyperlinked APIs in Flask Chevron down icon Chevron up icon
7. Improving and Adding Authentication to an API with Flask Chevron down icon Chevron up icon
8. Testing and Deploying an API with Flask Chevron down icon Chevron up icon
9. Developing RESTful APIs with Tornado Chevron down icon Chevron up icon
10. Working with Asynchronous Code, Testing, and Deploying an API with Tornado Chevron down icon Chevron up icon
11. Exercise Answers Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
(5 Ratings)
5 star 60%
4 star 0%
3 star 20%
2 star 20%
1 star 0%
Seacord84 Mar 26, 2017
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Very well done book. It had some mistakes here and there, but the material was very well done in my opinion.
Amazon Verified review Amazon
Judi Drew Jan 19, 2018
Full star icon Full star icon Full star icon Full star icon Full star icon 5
good book as ordered
Amazon Verified review Amazon
thinkingserious Nov 11, 2016
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I am the reviewer for this book and you can view my bio in the front matter. I have gone through every page in detail and executed all of the sample code in a Mac OS X environment.If your goal is to learn how to create a practical RESTful API in either Django, Flask or Tornado (and how to choose between these three frameworks) quickly and effectively, this is your book. You will learn with real-world examples that you can easily modify to fit within your own project.
Amazon Verified review Amazon
K Oct 12, 2018
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
It's a shame that I got stuck on a piece of code midway through 2nd chapter b/c I'd liked the book up until that point.The book is clearly written. The examples and explanations are pretty straightforward, it's obvious the author knows APIs and DRF well, and the book is easy to follow. I liked that it was organized into framework sections (first few chapters for DJango, next few chapters for Flask, etc).When I got stuck on pg 68 I did my best to try to solve the issue so I could continue but I couldn't. There was no way the explanation matched what was going on w/ working code. I got on GitHub and posted an issue in the book's code repo but, 13 days later, still haven't gotten a response. I found a workaround but there'd been enough quirks up to this point to make me want to ditch the book in favor of another ("REST APIs with Django" by William S. Vincent - I've just written a 5-star review for it).Maybe I had problems b/c I was using different (more current) software versions than the book:Book: DJango 1.10; DRF 3.3.3Current: DJango 2.1.2; DRF 3.8.2The book also uses (and recommends) the virtual environment included w/ Python. They say that if you prefer to use virtualenv, you can. I use Pipenv.Due to how well the explanations are, I want to think that it's simply due to age (book being now 2 yrs old). That said, I cannot recommend that anyone (now in late 2018) purchase this book for learning to build REST python web services.
Amazon Verified review Amazon
Pascal Wamugunda Sep 13, 2017
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
More than half the time you'll be frustrated fixing errors....all manner of them! I have been stuck on page 20 for a week now because one line of code won't run: python manage.py makemigrations games {i can't get django to run inside python 3.6 and i cannot get a solution anywhere!}.I suggest the author takes more time to explain installation and setup for the various OS readers could be using. I have shelved this and now I am looking for another book that will help me get data from web APIs for a data collection exercise that is ahead of me.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.

Modal Close icon
Modal Close icon