文件名称:
Building-RESTful-Python-Web-Services.pdf.pdf
开发工具:
文件大小: 10mb
下载次数: 0
上传时间: 2019-09-14
详细说明:Building-RESTful-Python-Web-Services.pdfBuilding RESTful Python Web Services
Copyright o 2016 Packt Publishing
All rights reserved no part of this book may be reproduced stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented However, the information contained in this book is sold without
warranty, either express or implied. Neither the author nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be caused
directly or indirectly by this book
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals
However, Packt Publishing cannot guarantee the accuracy of this information
First published: October 2016
Production reference: 1201016
Published by packt Publishing ltd
ry place
35 Livery Street
Bi
birmingham
B3 2PB. UK
ISBN978-1-78646-225-1
www.pAcktpub.com
Credits
Author
Copy Editor
Gaston c. hillar
Sneha singh
Reviewer
Project Coordinator
Elmer thomas
Sheejal shah
Commissioning editor
P
proofreader
Aaron lazar
Safis editing
Acquisition editor
indexer
Reshma raman
Rekha nair
Content Development Editor Graphics
Divij Kotian
Jason monteiro
Technical editor
Production coordinator
Gebin george
Melwyn dsa
About the author
Gaston C. hillar is italian and has been working with computers since he was eight. He
began programming with the legendary Texas TI-99/4A and Commodore 64 home
computers in the early 80s he has a bachelor s degree in Computer science from which he
graduated with honors, and an MBa from which he graduated with an outstanding thesis
At present, gaston is an independent it consultant and freelance author who is always
looking for new adventures around the world
He has been a senior contributing editor at Dr. Dobb's and has written more than a hundred
articles on software development topics gaston was also a former microsoft mvp in
technical computing. He has received the prestigious Intel Black Belt Software Developer
award eight times
HeisaguestbloggeratIntelSoftwareNetwork(http://software.intel.com).youcan
reachhimatgastonhillarhotmail.comandfollowhimontwitterathttp://twitter.co
m/gastonhillar.Gaston'sblogishttp://csharpmulticore.blogspot.com
He lives with his wife, vanesa, and his two sons Kevin and brandon
Acknowledgments
At the time of writing this book, I was fortunate to work with an excellent team at Packt
Raman and Aaron Lazar allowed me to provide them ideas to develop this book and/
Publishing, whose contributions vastly improved the presentation of this book. reshm
umped into the exciting project of teaching how to use many popular web frameworks to
develop restful Web services with Python 3.5. Divij Kotian helped me realize my vision
for this book and provided many sensible suggestions regarding the text, the format and the
flow. The reader will notice his great work. It was great working with Divij in another book
In fact, it is the third book in which i was able to work with reshma and Divij It's been
great working with them in another project and I cant wait to work with them again. I
would like to thank my technical reviewers and proofreaders, for their thorough reviews
and insightful comments. i was able to incorporate some of the knowledge and wisdom
they have gained in their many years in the software development industry. This book was
possible because they gave valuable feedback
Gebin george did a wonderful job when the book moved into the production stage. He has
made all the necessary adjustments to generate the final version of the book with an
outstanding layout gebin made the book easy to read in its different versions and made
sure I was happy with the results. a book like this one with so many tables, figures, pieces
of code, commands and sample outputs requires skilled people with eye for detail during
all the stages. I was fortunate to have Gebin onboard. I would like to thank my technical
reviewers and proofreaders, for their thorough reviews and insightful comments. I was able
to incorporate some of the knowledge and wisdom they have gained in their many years in
the software development industry. This book was possible because they gave valuable
edpac
k
I usually start writing notes about ideas for a book when I spend time at software
development conferences and events. I wrote the initial idea for this book in San francisco
California, at Intel Developer Forum 2015. One year later, at Intel Developer Forum 2016, I
had the chance to discuss with many software engineers the book I was finishing and
incorporate their suggestions in the final drafts
The entire process of writing a book requires a huge amount of lonely hours. i wouldnt be
able to write an entire book without dedicating some time to play soccer against my sons
Kevin and Brandon, and my nephew, Nicolas. Of course, I never won a match. However, I
did score a few goals
about the reviewer
Elmer Thomas completed a B.S. in Computer Engineering and a M.S. in Electrical
Engineering at the University of California, Riverside. His focus was on Control Systems,
specifically GPS navigation systems, spending several years serving as a research assistant,
building software and hardware for self driving cars at u c. riverside and berkele
resulting in 2 co-publications: Aided Integer Ambiguity resolution Algorithm and Data Fusion via
Kalman Filter: GPS INS During the final years of his Masters program, he added a few
mentors, partners and some business skills through the Tuck Executive Program at
Dartmouth to his repertoire and co-founded several companies with varying degrees of
achieving over 50 awards from local and state government for service in the community ile
success over the next 7 years. During this time he helped hundreds of business profit while
While building businesses, Elmer served on various boards to help foster growth in local
business communities in Riverside and Orange County, including the riverside Technology
CEO Forum, the TechBiz Connection, OCTANe and TriTech. Next, he began serving at
Send Grid, an email aPI and Service Company, as one of the first 5 employees in a now 300+
employee company on the verge of going public. Service began as the web development
manager and then he moved into a product development role while helping build out a
quality assurance program. After spending 2 years traveling to over 50 events, speaking,
teaching and mentoring as a Developer Evangelist within the Send Grid marketing
department, elmer then served as the hacker in residence on the community team at
Send grid. In that role he mentored over 50 startups, many belonging to accelerators such as
Techstars and 500 Startups, and hundreds of developers through live consulting and
development of productivity content and software
He currently serves as the Developer Experience Engineer at SendGrid, leading, developing
and managing Send Grid's open source community, which includes over 24 active projects
across 7 programming languages. These open source projects process hundreds of millions
of emails per day for our customers. He also serves as Vice President of the Council for the
Advancement of Black Engineers, drawing from experience as chapter president of the
National Society of black Engineers while a student at U C Riverside, supporting our
mission to increase the number of culturally responsible black engineers with phds post-
doctoral training and professional engineering registrations
As member of the board of directors for Operation Code, he helps equip military veterans
and their families with programming knowledge through mentorship to help veterans
create new career paths in software development. Through his volunteer work with the
Girls Scouts of San Gorgonio Council, Elmer focuses on helping bring STEm experiences to
girls, specifically within the age groups between 9 and 14 years old, including his own 11
year old daughter who is now a girl Scout cadette To help serve his local community he is
a member of the board of directors of his local hoa. he is considered a social media
influencer, driving 100s of millions of visits to various web pages. he is known as
Thinking Serious on various social networks
Elmer's passions include family time with his wife, and 2 daughters, reading writing
watching videos, especially in virtual reality, developing software and creating in general
especially in the area of personal development and productivity through quantification
techniques i would like to thank my wife linda and daughter audrey for their patience
and quiet time for me to complete this review
MoredetailcanbefoundathisblogThinkingserious.com
www.paCktpub.com
Forsupportfilesanddownloadsrelatedtoyourbookpleasevisitwww.packtpub.Com
Did you know that packt offers e book versions of every book published, with pdf and
epubfilesavailableyoUcanupgradetotheebookversionatwww.packtpub.comandasa
print book customer, you are entitled to a discount on the ebook copy. Get in touch with us
at servicepacktpub com for more details
Atwww.packtpub.comyoucanalsoreadacollectionoffreetechnicalarticlessignupfora
range of free newsletters and receive exclusive discounts and offers on Packt books and
eBooKs
Mapt
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt
books and video courses, as well as industry-leading tools to help you plan your personal
development and advance your career
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Table of contents
Preface
Chapter 1: Developing RESTful APIs with Django
Designing a RESTful API to interact with a simple sQLite database
8
Understanding the tasks performed by each Http method
9
Working with lightweight virtual environments
Setting up the virtual environment with Django REST framework
16
Creating the models
Managing serialization and deserialization
Writing API views
30
Making Http requests to the Apl
36
Workingwithcommand-linetools-curlandhttpie
36
Working with GUI tools- Postman and others
47
Test your knowledge
55
Summary
56
Chapter 2: Working with Class-Based views and Hyperlinked APls in
Django
57
Using model serializers to eliminate duplicate code
58
Working with wrappers to write API views
59
Using the default parsing and rendering options and move beyond
JSON
62
Browsing the APl
69
Designing a resTful API to interact with a complex PostgreSQL
database
Understanding the tasks performed by each Http method
75
Declaring relationships with the models
78
Managing serialization and deserialization with relationships and
hyperlinks
88
Creating class-based views and using generic classes
94
Taking advantage of generic class based views
95
Working with endpoints for the APl
97
Creating and retrieving related resources
102
Test your knowledge
110
Summary
112
(系统自动生成,下载前可以参看下载内容)
下载文件列表
相关说明
- 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
- 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度。
- 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
- 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
- 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
- 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.