|
Showing 1 - 15 of
15 matches in All Departments
Explore the best tools and techniques to create lightweight,
maintainable, and scalable Python web services Key Features Combine
Python with different data sources to build complex RESTful APIs
from scratch Configure and fine-tune your APIs using the best tools
and techniques available Use command-line and GUI tools to test
CRUD operations performed by RESTful Web Services or APIs Book
DescriptionPython is the language of choice for millions of
developers worldwide that builds great web services in RESTful
architecture. This second edition of Hands-On RESTful Python Web
Services will cover the best tools you can use to build engaging
web services. This book shows you how to develop RESTful APIs using
the most popular Python frameworks and all the necessary stacks
with Python, combined with related libraries and tools. You'll
learn to incorporate all new features of Python 3.7, Flask 1.0.2,
Django 2.1, Tornado 5.1, and also a new framework, Pyramid. As you
advance through the chapters, you will get to grips with each of
these frameworks to build various web services, and be shown use
cases and best practices covering when to use a particular
framework. You'll then successfully develop RESTful APIs with all
frameworks and understand how each framework processes HTTP
requests and routes URLs. You'll also discover best practices for
validation, serialization, and deserialization. In the concluding
chapters, you will take advantage of specific features available in
certain frameworks such as integrated ORMs, built-in authorization
and authentication, and work with asynchronous code. At the end of
each framework, you will write tests for RESTful APIs and improve
code coverage. By the end of the book, you will have gained a deep
understanding of the stacks needed to build RESTful web services.
What you will learn Select the most appropriate framework based on
requirements Develop complex RESTful APIs from scratch using Python
Use requests handlers, URL patterns, serialization, and validations
Add authentication, authorization, and interaction with ORMs and
databases Debug, test, and improve RESTful APIs with four
frameworks Design RESTful APIs with frameworks and create automated
tests Who this book is forThis book is for web developers who have
a 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.
A comprehensive guide to Python programming for web development
using the most popular Python web framework - Django Key Features
Learn the fundamentals of programming with Python and building web
apps Build web applications from scratch with Django Create
real-world RESTful web services with the latest Django framework
Book DescriptionIf you want to develop complete Python web apps
with Django, this Learning Path is for you. It will walk you
through Python programming techniques and guide you in implementing
them when creating 4 professional Django projects, teaching you how
to solve common problems and develop RESTful web services with
Django and Python. You will learn how to build a blog application,
a social image bookmarking website, an online shop, and an
e-learning platform. Learn Web Development with Python will get you
started with Python programming techniques, show you how to enhance
your applications with AJAX, create RESTful APIs, and set up a
production environment for your Django projects. Last but not
least, you'll learn the best practices for creating real-world
applications. By the end of this Learning Path, you will have a
full understanding of how Django works and how to use it to build
web applications from scratch. This Learning Path includes content
from the following Packt products: Learn Python Programming by
Fabrizio Romano Django RESTful Web Services by Gaston C. Hillar
Django Design Patterns and Best Practices by Arun Ravindran What
you will learn Explore the fundamentals of Python programming with
interactive projects Grasp essential coding concepts along with the
basics of data structures and control flow Develop RESTful APIs
from scratch with Django and the Django REST Framework Create
automated tests for RESTful web services Debug, test, and profile
RESTful web services with Django and the Django REST Framework Use
Django with other technologies such as Redis and Celery Who this
book is forIf you have little experience in coding or Python and
want to learn how to build full-fledged web apps, this Learning
Path is for you. No prior experience with RESTful web services,
Python, or Django is required, but basic Python programming
experience is needed to understand the concepts covered.
Explore the features included in the latest versions of MQTT for
IoT and M2M communications and use them with modern Python 3. Key
Features Make your connected devices less prone to attackers by
understanding security mechanisms Take advantage of MQTT features
for IoT and Machine-to-Machine communications The only book that
covers MQTT with a single language, Python Book DescriptionMQTT is
a lightweight messaging protocol for small sensors and mobile
devices. This book explores the features of the latest versions of
MQTT for IoT and M2M communications, how to use them with Python 3,
and allow you to interact with sensors and actuators using Python.
The book begins with the specific vocabulary of MQTT and its
working modes, followed by installing a Mosquitto MQTT broker. You
will use different utilities and diagrams to understand the most
important concepts related to MQTT. You will learn to make all the
necessary configuration to work with digital certificates for
encrypting all data sent between the MQTT clients and the server.
You will also work with the different Quality of Service levels and
later analyze and compare their overheads. You will write Python
3.x code to control a vehicle with MQTT messages delivered through
encrypted connections (TLS 1.2), and learn how leverage your
knowledge of the MQTT protocol to build a solution based on
requirements. Towards the end, you will write Python code to use
the PubNub cloud-based real-time MQTT provider to monitor a surfing
competition. In the end, you will have a solution that was built
from scratch by analyzing the requirements and then write Python
code that will run on water-proof IoT boards connected to multiple
sensors in surfboards. What you will learn Learn how MQTT and its
lightweight messaging system work Understand the MQTT puzzle:
clients, servers (formerly known as brokers), and connections
Explore the features included in the latest versions of MQTT for
IoT and M2M communications Publish and receive MQTT messages with
Python Learn the difference between blocking and threaded network
loops Take advantage of the last will and testament feature Work
with cloud-based MQTT interfaces in Python Who this book is forThis
book is for developers who want to learn about the MQTT protocol
for their IoT projects. Prior knowledge of working with IoT and
Python will be helpful.
Create scalable applications by taking advantage of NoSQL document
databases on the cloud with .NET Core Key Features Work with the
latest available tools related to Cosmos DB Learn to work with the
latest version of the .NET Core SDK, C# and the SQL API Work with a
database service that doesn't require you to use an ORM and
provides flexibility Book DescriptionCosmos DB is a NoSQL database
service included in Azure that is continuously adding new features
and has quickly become one of the most innovative services found in
Azure, targeting mission-critical applications at a global scale.
This book starts off by showing you the main features of Cosmos DB,
their supported NoSQL data models and the foundations of its
scalable and distributed architecture. You will learn to work with
the latest available tools that simplify your tasks with Cosmos DB
and reduce development costs, such as the Data Explorer in the
Azure portal, Microsoft Azure Storage Explorer, and the Cosmos DB
Emulator. Next, move on to working with databases and document
collections. We will use the tools to run schema agnostic queries
against collections with the Cosmos DB SQL dialect and understand
their results. Then, we will create a first version of an
application that uses the latest .NET Core SDK to interact with
Cosmos DB. Next, we will create a second version of the application
that will take advantage of important features that the combination
of C# and the .NET Core SDK provides, such as POCOs and LINQ
queries. By the end of the book, you will be able to build an
application that works with a Cosmos DB NoSQL document database
with C#, the .NET Core SDK, LINQ, and JSON. What you will learn
Understand the supported NoSQL data models and the resource
hierarchy Learn the latest tools to work with Cosmos DB accounts
and collections Reduce your development costs by working with the
Cosmos DB Emulator Understand request units, automatic indexing,
partitioning, and billing Build an application with C#, Cosmos DB,
.NET Core SDK, and the SQL API Perform asynchronous operations with
databases, and documents in C# Work with models, and customize
serialization of LINQ queries Who this book is forThis book is for
C# developers. You do not require any knowledge of Azure Cosmos DB,
but familiarity with the Azure platform is expected.
Explore Java 9 with JShell and UML About This Book * A full account
of Java 9's new features * This tutorial emphasises fluency using
JShell exercises * Get a thorough introduction to contract
programming code reuse via Java generics * Learn how to use the new
module system * How to use proper functional programming style
inside Java 9 Who This Book Is For This book can be understood by
anyone who is a graduate of computer science or someone who has
just begun working as a software engineer. Basically, an
understanding of an object-oriented programming language like
Python, C++ or indeed, an earlier Java version is sufficient. It
would be helpful to have participated in the full product cycle of
a software engineering project. What You Will Learn * Engage with
object-oriented programming in Java 9, starting with code snippets
in JShell * Optimize your code, applying functional programming
features * Discover the advantages of modularity * Become very
proficient at using JShell itself * Learn the new approach to Java
programming, which uses the REPL as a prototyping tool In Detail
The release of Java 9 has brought many subtle and not-so-subtle
changes to the way in which Java programmers approach their code.
The most important ones are definitely the availability of a REPL,
known as JShell, which will make experiments and prototyping much
more straightforward than the old IDE-based project-led approach.
Another, more subtle change can be seen in the module system, which
will lead to more modularized, maintainable code. The techniques to
take full advantage of object-oriented code, functional programming
and the new modularity features in Java 9 form the main subjects of
this book. Each chapter will add to the full picture of Java 9
programming starting out with classes and instances and ending with
generics and modularity in Java. Style and approach You will learn
by doing: : using JShell as their prototyping environment, you will
take full advantage of the new features of Java 9, in particular
the full module system and the functional features of Java 9..
There won't be any theory, only small and medium-sized exampled
enabling the reader to use the new Java features in professional
software engineering projects.
Design, build and test RESTful web services with the Django
framework and Python Key Features Create efficient real-world
RESTful web services with the latest Django framework Authenticate,
secure, and integrate third-party packages efficiently in your Web
Services Leverage the power of Python for faster Web Service
development Book DescriptionDjango is a Python web framework that
makes the web development process very easy. It reduces the amount
of trivial code, which simplifies the creation of web applications
and results in faster development. It is very powerful and a great
choice for creating RESTful web services. If you are a Python
developer and want to efficiently create RESTful web services with
Django for your apps, then this is the right book for you. The book
starts off by showing you how to install and configure the
environment, required software, and tools to create RESTful web
services with Django and the Django REST framework. We then move on
to working with advanced serialization and migrations to interact
with SQLite and non-SQL data sources. We will use the features
included in the Django REST framework to improve our simple web
service. Further, we will create API views to process diverse HTTP
requests on objects, go through relationships and hyperlinked API
management, and then discover the necessary steps to include
security and permissions related to data models and APIs. We will
also apply throttling rules and run tests to check that versioning
works as expected. Next we will run automated tests to improve code
coverage. By the end of the book, you will be able to build RESTful
web services with Django. What you will learn The best way to build
a RESTful Web Service or API with Django and the Django REST
Framework Develop complex RESTful APIs from scratch with Django and
the Django REST Framework Work with either SQL or NoSQL data
sources Design RESTful Web Services based on application
requirements Use third-party packages and extensions to perform
common tasks Create automated tests for RESTful web services Debug,
test, and profile RESTful web services with Django and the Django
REST Framework Who this book is forThis book is for Python
developers who want to create RESTful web services with Django; you
need to have a basic working knowledge of Django but no previous
experience with RESTful web services is required.
Implement object-oriented programming paradigms with Swift 3.0 and
mix them with modern functional programming techniques to build
powerful real-world applications About This Book * Leverage the
most efficient object-oriented design patterns in your Swift
applications * Write robust, safer, and better code using the
blueprints that generate objects * Build a platform with
object-oriented code using real-world elements and represent them
in your apps Who This Book Is For This book is for iOS and macOS
developers who want to get a detailed practical understanding of
object-oriented programming with the latest version of Swift: 3.0.
What You Will Learn * Write high-quality and easy-to-maintain
reusable object-oriented code to build applications for iOS, macOS,
and Linux * Work with encapsulation, abstraction, and polymorphism
using Swift 3.0 * Work with classes, instances, properties, and
methods in Swift 3.0 * Take advantage of inheritance,
specialization, and the possibility to overload or override members
* Implement encapsulation, abstraction, and polymorphism * Explore
functional programming techniques mixed with object-oriented code
in Swift 3.0 * Understand the differences between Swift 3.0,
previous Swift versions, and Objective-C code In Detail Swift has
quickly become one of the most-liked languages and developers'
de-facto choice when building applications that target iOS and
macOS. In the new version, the Swift team wants to take its
adoption to the next level by making it available for new platforms
and audiences. This book introduces the object-oriented paradigm
and its implementation in the Swift 3 programming language to help
you understand how real-world objects can become part of
fundamental reusable elements in the code. This book is developed
with XCode 8.x and covers all the enhancements included in Swift
3.0. In addition, we teach you to run most of the examples with the
Swift REPL available on macOS and Linux, and with a Web-based Swift
sandbox developed by IBM capable of running on any web browser,
including Windows and mobile devices. You will organize data in
blueprints that generate instances. You'll work with examples so
you understand how to encapsulate and hide data by working with
properties and access control. Then, you'll get to grips with
complex scenarios where you use instances that belong to more than
one blueprint. You'll discover the power of contract programming
and parametric polymorphism. You'll combine generic code with
inheritance and multiple inheritance. Later, you'll see how to
combine functional programming with object-oriented programming and
find out how to refactor your existing code for easy maintenance.
Style and approach This simple guide is packed with practical
examples of solutions to common problems. Each chapter includes
exercises and the possibility for you to test your progress by
answering a quiz
Create web services that are lightweight, maintainable, scalable,
and secure using the best tools and techniques designed for Python
About This Book * 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 Who This Book Is 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 In Detail 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. Style and approach The book takes a
straightforward approach, not spending time getting you started
with RESTful APIs and web services. It will give you the best use
cases for each framework to build great web services in Python.
Send and receive messages with the MQTT protocol for your IoT
solutions. About This Book * Make your connected devices less prone
to attackers by understanding practical security mechanisms * Dive
deep into one of IoT's extremely lightweight machines to enable
connectivity protocol with some real-world examples * Learn to take
advantage of the features included in MQTT for IoT and
Machine-to-Machine communications with complete real-life examples
Who This Book Is For This book is a great resource for developers
who want to learn more about the MQTT protocol to apply it to their
individual IoT projects. Prior knowledge of working with IoT
devices is essential. What You Will Learn * Understand how MQTTv3.1
and v3.1.1 works in detail * Install and secure a Mosquitto MQTT
broker by following best practices * Design and develop IoT
solutions combined with mobile and web apps that use MQTT messages
to communicate * Explore the features included in MQTT for IoT and
Machine-to-Machine communications * Publish and receive MQTT
messages with Python, Java, Swift, JavaScript, and Node.js *
Implement the security best practices while setting up the MQTT
Mosquitto broker In Detail This step-by-step guide will help you
gain a deep understanding of the lightweight MQTT protocol. We'll
begin with the specific vocabulary of MQTT and its working modes,
followed by installing a Mosquitto MQTT broker. Then, you will use
best practices to secure the MQTT Mosquitto broker to ensure that
only authorized clients are able to publish and receive messages.
Once you have secured the broker with the appropriate
configuration, you will develop a solution that controls a drone
with Python. Further on, you will use Python on a Raspberry Pi 3
board to process commands and Python on Intel Boards (Joule, Edison
and Galileo). You will then connect to the MQTT broker, subscribe
to topics, send messages, and receive messages in Python. You will
also develop a solution that interacts with sensors in Java by
working with MQTT messages. Moving forward, you will work with an
asynchronous API with callbacks to make the sensors interact with
MQTT messages. Following the same process, you will develop an iOS
app with Swift 3, build a website that uses WebSockets to connect
to the MQTT broker, and control home automation devices with HTML5,
JavaScript code, Node.js and MQTT messages Style and approach This
step-by-step guide describes the MQTT protocol for your IoT
projects
Interact with the world and rapidly prototype IoT applications
using Python About This Book * Rapidly prototype even complex IoT
applications with Python and put them to practical use * Enhance
your IoT skills with the most up-to-date applicability in the field
of wearable tech, smart environments, and home automation *
Interact with hardware, sensors, and actuators and control your DIY
IoT projects through Python Who This Book Is For The book is ideal
for Python developers who want to explore the tools in the Python
ecosystem in order to build their own IoT applications and work on
IoT-related projects. It is also a very useful resource for
developers with experience in other programming languages that want
to easily prototype IoT applications with the Intel Galileo Gen 2
board. What You Will Learn * Prototype and develop IoT solutions
from scratch with Python as the programming language * Develop IoT
projects with Intel Galileo Gen 2 board along with Python * Work
with the different components included in the boards using Python
and the MRAA library * Interact with sensors, actuators, and
shields * Work with UART and local storage * Interact with any
electronic device that supports the I2C bus * Allow mobile devices
to interact with the board * Work with real-time IoT and cloud
services * Understand Big Data and IoT analytics In Detail Internet
of Things (IoT) is revolutionizing the way devices/things interact
with each other. And when you have IoT with Python on your side,
you'll be able to build interactive objects and design them. This
book lets you stay at the forefront of cutting-edge research on
IoT. We'll open up the possibilities using tools that enable you to
interact with the world, such as Intel Galileo Gen 2, sensors, and
other hardware. You will learn how to read, write, and convert
digital values to generate analog output by programming Pulse Width
Modulation (PWM) in Python. You will get familiar with the complex
communication system included in the board, so you can interact
with any shield, actuator, or sensor. Later on, you will not only
see how to work with data received from the sensors, but also
perform actions by sending them to a specific shield. You'll be
able to connect your IoT device to the entire world, by integrating
WiFi, Bluetooth, and Internet settings. With everything ready, you
will see how to work in real time on your IoT device using the MQTT
protocol in python. By the end of the book, you will be able to
develop IoT prototypes with Python, libraries, and tools. Style and
approach This book takes a tutorial-like approach with mission
critical chapters. The initial chapters are introductions that set
the premise for useful examples covered in later chapters.
Get to grips with object-oriented programming in Swift to
efficiently build powerful real-world applications About This Book
* Leverage the most efficient object-oriented design patterns in
your Swift applications * Write robust, safer, and better code
using the blueprints that generate objects * Build a platform with
object-oriented code by using real-world elements and represent
them in your app Who This Book Is For If you are an iOS developer
who has a basic idea of object-oriented programming and want to
incorporate its concepts with Swift to optimize your application's
code and create reusable and easily to understand building blocks,
then this book is for you. This is a very useful resource for
developers who want to shift from Objective C, C#, Java, Python,
JavaScript, or other object-oriented languages to Swift What You
Will Learn * Build solid, stable, and reliable applications using
Swift * Work with encapsulation, abstraction, and polymorphism
using Swift 2.0 * Customize constructors and destructors based on
your needs * Develop Swift 2.0 with classes, instances, properties,
and methods * Take advantage of generic code to maximize code reuse
and generalize behaviors * Use state of inheritance,
specialization, and the possibility to overload members * Write
high quality object-oriented code to build apps for iOS or Mac OS X
In Detail Object-Oriented Programming (OOP) is a programming
paradigm based on the concept of objects; these are data structures
that contain data in the form of fields, often known as attributes
and code. Objects are everywhere, and so it is very important to
recognize elements, known as objects, from real-world situations
and know how they can easily be translated into object-oriented
code. Object-Oriented Programming with Swift is an easy-to-follow
guide packed full of hands-on examples of solutions to common
problems encountered with object-oriented code in Swift. It starts
by helping you to recognize objects using real-life scenarios and
demonstrates how working with them makes it simpler to write code
that is easy to understand and reuse. You will learn to protect and
hide data with the data encapsulation features of Swift. Then, you
will explore how to maximize code reuse by writing code capable of
working with objects of different types. After that, you'll
discover the power of parametric polymorphism and will combine
generic code with inheritance and multiple inheritance. Later, you
move on to refactoring your existing code and organizing your
source for easy maintenance and extensions. By the end of the book,
you will be able to create better, stronger, and more reusable
code, which will help you build better applications. Style and
approach This simple guide is packed with practical examples of
solutions to common problems. Each chapter includes exercises and
the possibility for you to test your progress by answering
questions.
Build sophisticated web applications by mastering the art of
Object-Oriented Javascript About This Book * Learn popular
Object-Oriented programming (OOP) principles and design patterns to
build robust apps * Implement Object-Oriented concepts in a wide
range of frontend architectures * Capture objects from real-world
elements and create object-oriented code that represents them *
Learn the latest ES6 features and how to test and debug issues with
JavaScript code using various modern mechanisms Who This Book Is
For JavaScript developers looking to enhance their web developments
skills by learning object-oriented programming. What You Will Learn
* Get acquainted with the basics of JavaScript language constructs
along with object-oriented programming and its application. * Learn
to build scalable server application in JavaScript using Node.js *
Generate instances in three programming languages: Python,
JavaScript, and C# * Work with a combination of access modifiers,
prefixes, properties, fields, attributes, and local variables to
encapsulate and hide data * Master DOM manipulation, cross-browser
strategies, and ES6 * Identify and apply the most common design
patterns such as Singleton, Factory, Observer,
Model-View-Controller, and Mediator Patterns * Design applications
using a modular architecture based on SOLID principles In Detail
JavaScript is the behavior, the third pillar in today's paradigm
that looks at web pages as something that consists of : content
(HTML), presentation (CSS), and behavior (JavaScript). Using
JavaScript, you can create interactive web pages along with desktop
widgets, browser, and application extensions, and other pieces of
software. Object-oriented programming, which is popularly known as
OOP, is basically based on the concept of objects rather than
actions. The first module will help you master JavaScript and build
futuristic web applications. You will start by getting acquainted
with the language constructs and how to organize code easily. You
develop concrete understanding of variable scoping, loops, and best
practices on using types and data structures, as well as the coding
style and recommended code organization patterns in JavaScript. The
book will also teach you how to use arrays and objects as data
structures. By the end of the book, you will understand how
reactive JavaScript is going to be the new paradigm. The second
module is an easy-to-follow course, which includes hands-on
examples of solutions to common problems with object-oriented code.
It will help to identify objects from real-life scenarios, to
protect and hide data with the data encapsulation features of
Python, JavaScript, and C#. You will discover the advantage of duck
typing in both Python and JavaScript, while you work with
interfaces and generics in C#. With a fair understanding of
interfaces, multiple inheritance, and composition, you will move on
to refactor existing code and to organize your source for easy
maintenance and extension. The third module takes you through all
the in-depth and exciting futures hidden behind the facade. You
should read through this course if you want to be able to take your
JavaScript skills to a new level of sophistication. Style and
approach This course is a comprehensive guide where each chapter
consists of best practices, constructive advice, and few
easy-to-follow examples that will build up your skills as you
advance through the book. Get object oriented with this course,
which takes you on a journey to get acquainted with few useful
hands-on tools, features, and ways to enhance your productivity
using OOP techniques. It will also act as a reference guide with
useful examples on resolving problems with object-oriented code in
Python, JavaScript, and C#.
This book takes a step-by-step approach to building a complete
interactive 3D game using Silverlight and enhancing it through its
related technologies. The book focuses on practical examples and
has a friendly approach, with the opportunity to learn by
experiment and play. It uses illustrations, screenshots, and
interactive experiences to understand the most complex topics
related to the 3D scenes. This book is designed primarily for C#
developers with basic knowledge of the Visual Studio IDE who want
to develop online 3D games using Silverlight or create interactive
3D scenes for a web site with animated models. No prior experience
in 3D programming, 3D animation, or Silverlight is required. The
book is also aimed at 3D developers who want to improve their
online content, offering innovative 3D models in action.
|
You may like...
Loot
Nadine Gordimer
Paperback
(2)
R205
R164
Discovery Miles 1 640
|