舉報

會員
Python Programming Blueprints
ThisbookisforsoftwaredeveloperswhoarefamiliarwithPythonandwanttogainhands-onexperiencewithwebandsoftwaredevelopmentprojects.AbasicknowledgeofPythonprogrammingisrequired.
最新章節
- Leave a review - let other readers know what you think
- Other Books You May Enjoy
- Summary
- Testing all the pieces together
- Modifying the order service
- Restricting access to the API's endpoints
品牌:中圖公司
上架時間:2021-06-24 17:57:58
出版社:Packt Publishing
本書數字版權由中圖公司提供,并由其授權上海閱文信息技術有限公司制作發行
- Leave a review - let other readers know what you think 更新時間:2021-06-24 18:54:18
- Other Books You May Enjoy
- Summary
- Testing all the pieces together
- Modifying the order service
- Restricting access to the API's endpoints
- Deploying the application with Zappa
- Email templates
- Implementing the notification service
- Creating an S3 bucket
- Registering the emails
- Configuring a Simple Email Service
- Setting up the Amazon Web Services CLI
- Setting up the environment
- Notification Serverless Application
- Summary
- Deploying the order service
- Modifying the settings.py file
- Deploying to AWS
- Testing the integration
- Integration with the game online store
- Setting up the service URLs
- Adding views
- Creating the views
- Creating the order model serializer
- Setting the order's status
- Setting the order's next status
- Getting orders by period
- Getting orders by status
- Getting customer's completed orders
- Getting customer's incomplete orders
- Testing the get all orders function
- Testing the cancel order function
- Creating the test files
- Learning to test
- Creating the model's managers
- Creating the service models
- Setting up the environment
- Order Microservice
- Summary
- Adding items to the cart
- Creating the shopping cart view
- Creating the shopping cart form
- Creating the shopping cart model
- Adding list games views
- Creating the game list and details page
- Creating the price list data model
- Creating the game data model
- Creating the views of the user creation
- Creating new users
- Testing the login/logout forms
- Adding login and logout views
- Installing client-side dependencies
- Creating the project's main app
- Looking at the project's package directory
- Diving into the SQLite
- Exploring the Django project's structure
- Creating a new Django project
- Installing Node.js
- Setting up the development environment
- Online Video Game Store with Django
- Summary
- Prepending the email to our messages
- Logging users in
- Logging users out
- Creating a sign-up page
- Web sessions
- Creating a Flask server
- Splitting out the services
- Authenticating a user's password
- Retrieving users from the database
- Authenticating users
- Handling duplicate users
- Hashing our user passwords
- Using Bcrypt
- Securely storing passwords in the database
- Creating the User Service
- Creating users
- Creating the user dependency
- Creating the user model
- Starting a Postgres Docker container
- Creating a Postgres dependency
- Requirements
- TempMessenger goals
- Extending TempMessenger with a User Authentication Microservice
- Summary
- Polling with JavaScript
- Browser polling for messages
- Sorting messages
- Expiring messages in Redis
- Adding an AJAX POST request in jQuery
- Adding a send messages POST request
- Sending messages via POST requests
- Putting it all together
- Making a HTML response
- Creating the Dependency Provider
- Creating our homepage template
- Creating the template renderer
- Adding a Jinja2 Dependency Provider
- Displaying messages in the web browser
- Putting it all together
- Adding a get all messages RPC
- Adding a get all messages method to our Redis client
- Retrieving all messages
- Adding a save message RPC
- Adding a save message method to our Redis client
- Saving messages
- Putting it all together
- Creating our Message Service
- Creating the Dependency Provider
- Designing the Client
- Adding a Redis Dependency Provider
- Nameko Dependency Providers
- Using Redis
- Installing the Python Redis client
- Starting a Redis container
- An introduction to Redis
- Storing messages
- Integration testing Nameko microservices
- Exposing HTTP entrypoints
- Unit-testing a Nameko microservice
- Making a call to our service
- Creating your first Nameko microservice
- Installing Python requirements
- Starting a RabbitMQ container
- RabbitMQ
- How Nameko uses AMQP
- RPCs
- What is Nameko?
- Requirements
- TempMessenger Goals
- Building a Web Messenger with Microservices
- Summary
- Testing our application
- Adding the application's entry point
- Basic validation
- Creating the command line parser
- Creating the currency enumeration
- Creating the command line parser
- Adding the database helper class
- Creating the API wrapper
- Setting up the environment
- Exchange Rates and the Currency Conversion Tool
- Summary
- Enhancing our code
- Building the Twitter voting application
- Creating the application routes
- Creating the Flask application
- Performing authentication
- Adding the configuration file
- Creating a Twitter application
- Setting up the environment
- Casting Votes on Twitter
- Summary
- Time to listen to music!
- Creating the DataManager class
- Implementing the menu panel
- Adding menus for albums and track selection
- Creating the player
- Querying Spotify's web API
- Authorizing our application with authorization code flow
- Implementing the authorization code flow
- Implementing the client credentials flow
- Authenticating with Spotify's web API
- Implementing a configuration file reader
- Creating a configuration file
- The application's configuration
- Creating a Spotify app
- Setting up the environment
- Creating a Remote-Control Application with Spotify
- Summary
- Getting the weekend weather forecast
- Getting five- and ten-day weather forecasts
- Implementing today's weather forecast
- Adding helper methods
- Getting today's weather forecast
- Creating the parser
- Getting the user's input with ArgumentParser
- Fetching data from the weather website
- Creating the application's model
- Loading parsers dynamically
- Core functionality
- Setting up the environment
- Implementing the Weather Application
- Reviews
- Get in touch
- Conventions used
- Download the example code files
- To get the most out of this book
- What this book covers
- Who this book is for
- Preface
- Packt is searching for authors like you
- About the reviewers
- About the authors
- Contributors
- PacktPub.com
- Why subscribe?
- Packt Upsell
- Dedication
- Title Page
- coverpage
- 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
- Setting up the environment
- 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!
- Summary
- Casting Votes on Twitter
- Setting up the environment
- 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
- Summary
- Exchange Rates and the Currency Conversion Tool
- Setting up the environment
- Creating the API wrapper
- Adding the database helper class
- Creating the command line parser
- Creating the currency enumeration
- Creating the command line parser
- Basic validation
- Adding the application's entry point
- Testing our application
- Summary
- 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
- Adding a get all messages RPC
- Putting it all together
- Displaying messages in the web browser
- Adding a Jinja2 Dependency Provider
- Creating the template renderer
- Creating our homepage template
- Creating the Dependency Provider
- Making a HTML response
- Putting it all together
- Sending messages via POST requests
- Adding a send messages POST request
- Adding an AJAX POST request in jQuery
- Expiring messages in Redis
- Sorting messages
- Browser polling for messages
- Polling with JavaScript
- Summary
- Extending TempMessenger with a User Authentication Microservice
- TempMessenger goals
- Requirements
- Creating a Postgres dependency
- Starting a Postgres Docker container
- Creating the user model
- Creating the user dependency
- Creating users
- Creating the User Service
- Securely storing passwords in the database
- Using Bcrypt
- Hashing our user passwords
- Handling duplicate users
- Authenticating users
- Retrieving users from the database
- Authenticating a user's password
- Splitting out the services
- Creating a Flask server
- Web sessions
- Creating a sign-up page
- Logging users out
- Logging users in
- Prepending the email to our messages
- Summary
- Online Video Game Store with Django
- Setting up the development environment
- Installing Node.js
- Creating a new Django project
- Exploring the Django project's structure
- Diving into the SQLite
- Looking at the project's package directory
- Creating the project's main app
- Installing client-side dependencies
- Adding login and logout views
- Testing the login/logout forms
- Creating new users
- Creating the views of the user creation
- Creating the game data model
- Creating the price list data model
- Creating the game list and details page
- Adding list games views
- Creating the shopping cart model
- Creating the shopping cart form
- Creating the shopping cart view
- Adding items to the cart
- Summary
- Order Microservice
- Setting up the environment
- Creating the service models
- Creating the model's managers
- Learning to test
- Creating the test files
- Testing the cancel order function
- Testing the get all orders function
- Getting customer's incomplete orders
- Getting customer's completed orders
- Getting orders by status
- Getting orders by period
- Setting the order's next status
- Setting the order's status
- Creating the order model serializer
- Creating the views
- Adding views
- Setting up the service URLs
- Integration with the game online store
- Testing the integration
- Deploying to AWS
- Modifying the settings.py file
- Deploying the order service
- Summary
- Notification Serverless Application
- Setting up the environment
- Setting up the Amazon Web Services CLI
- Configuring a Simple Email Service
- Registering the emails
- Creating an S3 bucket
- Implementing the notification service
- Email templates
- Deploying the application with Zappa
- Restricting access to the API's endpoints
- Modifying the order service
- Testing all the pieces together
- Summary
- Other Books You May Enjoy
- Leave a review - let other readers know what you think 更新時間:2021-06-24 18:54:18