
Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3, (Paperback)
Key item features
- Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3, (Paperback)
- Author: Packt Publishing
- ISBN: 9781801811446
- Format: Paperback
- Publication Date: 2022-01-21
- Page Count: 384
Specs
- Book formatPaperback
- Fiction/nonfictionNon-Fiction
- GenreComputing & Internet
- Publication dateJanuary, 2022
- Pages384
- SubgenreLanguages
- Free shipping
Free 90-day returns
How do you want your item?
More seller options (3)
Get 50% off a year of Walmart+
About this item
Product details
Discover how to inject your code with highly performant Rust features to develop fast and memory-safe applications
Key Features:
- Learn to implement Rust in a Python system without altering the entire system
- Write safe and efficient Rust code as a Python developer by understanding the essential features of Rust
- Build Python extensions in Rust by using Python NumPy modules in your Rust code
Book Description:
Python has made software development easier, but it falls short in several areas including memory management that lead to poor performance and security. Rust, on the other hand, provides memory safety without using a garbage collector, which means that with its low memory footprint, you can build high-performant and secure apps relatively easily. However, rewriting everything in Rust can be expensive and risky as there might not be package support in Rust for the problem being solved. This is where Python bindings and pip come in.
This book will help you, as a Python developer, to start using Rust in your Python projects without having to manage a separate Rust server or application. Seeing as you'll already understand concepts like functions and loops, this book covers the quirks of Rust such as memory management to code Rust in a productive and structured manner. You'll explore the PyO3 crate to fuse Rust code with Python, learn how to package your fused Rust code in a pip package, and then deploy a Python Flask application in Docker that uses a private Rust pip module. Finally, you'll get to grips with advanced Rust binding topics such as inspecting Python objects and modules in Rust.
By the end of this Rust book, you'll be able to develop safe and high-performant applications with better concurrency support.
What You Will Learn:
- Explore the quirks of the Rust programming language that a Python developer needs to understand to code in Rust
- Understand the trade-offs for multiprocessing and thread safety to write concurrent code
- Build and manage a software project with cargo and crates
- Fuse Rust code with Python so that Python can import and run Rust code
- Deploy a Python Flask application in Docker that utilizes a private Rust pip module
- Inspect and create your own Python objects in Rust
Who this book is for:
This book is for Python developers who want to speed up their Python code with Rust and implement Rust in a Python system without altering the entire system. You'll be able to learn about all topics relating to Rust programming. Basic knowledge of Python is required to get the most out of this book.
- Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3, (Paperback)
- Author: Packt Publishing
- ISBN: 9781801811446
- Format: Paperback
- Publication Date: 2022-01-21
- Page Count: 384
Specifications
Book format
Fiction/nonfiction
Genre
Publication date
Warranty
Warranty information
Similar items you might like
Python 3.6 C API (Paperback) $28.63
$2863current price $28.63Python 3.6 C API (Paperback)
Learn Model Context Protocol with Python: Build agentic systems in Python with the new standard for AI capabilities, (Paperback) $44.99
$4499current price $44.99Learn Model Context Protocol with Python: Build agentic systems in Python with the new standard for AI capabilities, (Paperback)
Mastering Python Networking - Third Edition: Your one-stop solution to using Python for network automation, programmabil, (Paperback) $89.51
$8951current price $89.51Mastering Python Networking - Third Edition: Your one-stop solution to using Python for network automation, programmabil, (Paperback)
15 out of 5 Stars. 1 reviewsFull Stack Web Development with Python, Flask, and Django: Build Real-World Web Apps with Python Frameworks, REST APIs, , (Paperback) $31.00
$3100current price $31.00Full Stack Web Development with Python, Flask, and Django: Build Real-World Web Apps with Python Frameworks, REST APIs, , (Paperback)
Optimizing Visual Studio Code for Python Development: Developing More Efficient and Effective Programs in Python, (Paperback) $46.84
$4684current price $46.84Optimizing Visual Studio Code for Python Development: Developing More Efficient and Effective Programs in Python, (Paperback)
Hypermodern Python Tooling: Building Reliable Workflows for an Evolving Python Ecosystem $37.53
$3753current price $37.53Hypermodern Python Tooling: Building Reliable Workflows for an Evolving Python Ecosystem
50 App Features with Python: Implement feature-focused, code-driven Python capabilities with UX at the core, (Paperback) $34.99
$3499current price $34.9950 App Features with Python: Implement feature-focused, code-driven Python capabilities with UX at the core, (Paperback)
Clean Architecture with Python: Implement scalable and maintainable applications using proven architectural principles, (Paperback) $32.39
$3239current price $32.39Clean Architecture with Python: Implement scalable and maintainable applications using proven architectural principles, (Paperback)
Python in Practice Python in Practice - Volume II: Beyond the Basics: Advanced Language Features in Python, Book 2, (Paperback) $23.61
$2361current price $23.61Python in Practice Python in Practice - Volume II: Beyond the Basics: Advanced Language Features in Python, Book 2, (Paperback)
Learning Python Python: A Beginners Complete Reference Guide to Learn The Python Programming Language., Book 5, (Paperback) $22.00 Was $25.12
$2200current price $22.00, Was $25.12$25.12Learning Python Python: A Beginners Complete Reference Guide to Learn The Python Programming Language., Book 5, (Paperback)
Modern Data Architectures with Python: A practical guide to building and deploying data pipelines, data warehouses, and , (Paperback) $49.14
$4914current price $49.14Modern Data Architectures with Python: A practical guide to building and deploying data pipelines, data warehouses, and , (Paperback)
Python for Geeks: Build production-ready applications using advanced Python concepts and industry best practices, (Paperback) $43.99
$4399current price $43.99Python for Geeks: Build production-ready applications using advanced Python concepts and industry best practices, (Paperback)
Generative AI on Google Cloud with LangChain: Design scalable generative AI solutions with Python, LangChain, and Vertex, (Paperback) $43.13
$4313current price $43.13Generative AI on Google Cloud with LangChain: Design scalable generative AI solutions with Python, LangChain, and Vertex, (Paperback)
Python Simplified with Generative AI: Hands-on Python development with GenAI tools integrating data science and web inte, (Paperback) $49.51
$4951current price $49.51Python Simplified with Generative AI: Hands-on Python development with GenAI tools integrating data science and web inte, (Paperback)
Ultimate Python Programming: Learn Python with 650 Programs, 900 Practice Questions, and 5 Projects, (Paperback) $34.50
$3450current price $34.50Ultimate Python Programming: Learn Python with 650 Programs, 900 Practice Questions, and 5 Projects, (Paperback)
Learning Geospatial Analysis with Python - Fourth Edition: Unleash the power of Python 3 with practical techniques for l, (Paperback) $39.99
$3999current price $39.99Learning Geospatial Analysis with Python - Fourth Edition: Unleash the power of Python 3 with practical techniques for l, (Paperback)
Python Data Structures and Algorithms: Improve application performance with graphs, stacks, and queues, (Paperback) $47.59
$4759current price $47.59Python Data Structures and Algorithms: Improve application performance with graphs, stacks, and queues, (Paperback)
Foundation DB2 and Python: Access DB2 with Module-Based API Examples Using Python, (Paperback) $45.33
$4533current price $45.33Foundation DB2 and Python: Access DB2 with Module-Based API Examples Using Python, (Paperback)
Python Basics: A Practical Introduction to Python 3, (Paperback) $28.85 Was $39.99
$2885current price $28.85, Was $39.99$39.99Python Basics: A Practical Introduction to Python 3, (Paperback)
Dancing with Python: Learn to code with Python and Quantum Computing, (Paperback) $48.29
$4829current price $48.29Dancing with Python: Learn to code with Python and Quantum Computing, (Paperback)
