更新时间:2021-06-24 18:54:18
coverpage
Title Page
Dedication
Packt Upsell
Why subscribe?
PacktPub.com
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Conventions used
Get in touch
Reviews
Implementing the Weather Application
Setting up the environment
Core functionality
Loading parsers dynamically
Creating the application's model
Fetching data from the weather website
Getting the user's input with ArgumentParser
Creating the parser
Getting today's weather forecast
Adding helper methods
Implementing today's weather forecast
Getting five- and ten-day weather forecasts
Getting the weekend weather forecast
Summary
Creating a Remote-Control Application with Spotify
Creating a Spotify app
The application's configuration
Creating a configuration file
Implementing a configuration file reader
Authenticating with Spotify's web API
Implementing the client credentials flow
Implementing the authorization code flow
Authorizing our application with authorization code flow
Querying Spotify's web API
Creating the player
Adding menus for albums and track selection
Implementing the menu panel
Creating the DataManager class
Time to listen to music!
Casting Votes on Twitter
Creating a Twitter application
Adding the configuration file
Performing authentication
Creating the Flask application
Creating the application routes
Building the Twitter voting application
Enhancing our code
Exchange Rates and the Currency Conversion Tool
Creating the API wrapper
Adding the database helper class
Creating the command line parser
Creating the currency enumeration
Basic validation
Adding the application's entry point
Testing our application
Building a Web Messenger with Microservices
TempMessenger Goals
Requirements
What is Nameko?
RPCs
How Nameko uses AMQP
RabbitMQ
Starting a RabbitMQ container
Installing Python requirements
Creating your first Nameko microservice
Making a call to our service
Unit-testing a Nameko microservice
Exposing HTTP entrypoints
Integration testing Nameko microservices
Storing messages
An introduction to Redis
Starting a Redis container
Installing the Python Redis client
Using Redis
Nameko Dependency Providers
Adding a Redis Dependency Provider
Designing the Client
Creating the Dependency Provider
Creating our Message Service
Putting it all together
Saving messages
Adding a save message method to our Redis client
Adding a save message RPC
Retrieving all messages
Adding a get all messages method to our Redis client