• Complain

Maxwell Flitton - Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3

Here you can read online Maxwell Flitton - Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3 full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2022, publisher: Packt Publishing, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Maxwell Flitton Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3
  • Book:
    Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3
  • Author:
  • Publisher:
    Packt Publishing
  • Genre:
  • Year:
    2022
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

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 youll 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. Youll 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, youll get to grips with advanced Rust binding topics such as inspecting Python objects and modules in Rust.

By the end of this Rust book, youll 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. Youll 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.

Table of Contents
  1. An Introduction to Rust
  2. Structuring Code in Rust
  3. Concurrency in Rust
  4. Building Private pip Modules in Python
  5. Creating a Rust Interface for Your pip Module
  6. Working with Python Objects in Rust
  7. Using Python Modules in Rust
  8. Structuring an End-to-End Python Module in Rust
  9. Structuring a Python Flask App for Rust
  10. Injecting Rust into a Python Flask App
  11. Best Practices

Maxwell Flitton: author's other books


Who wrote Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3? Find out the surname, the name of the author of the book and a list of all author's works by series.

Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3 — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Speed Up Your Python with Rust Optimize Python performance by creating Python - photo 1
Speed Up Your Python with Rust

Optimize Python performance by creating Python pip modules in Rust with PyO3

Maxwell Flitton

BIRMINGHAMMUMBAI Speed Up Your Python with Rust Copyright 2021 Packt Publishing - photo 2

BIRMINGHAMMUMBAI

Speed Up Your Python with Rust

Copyright 2021 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 or its dealers and distributors, will be held liable for any damages caused or alleged to have been 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.

Group Product Manager: Richa Tripathi

Publishing Product Manager: Richa Tripathi

Senior Editor: Nisha Cleetus

Content Development Editor: Vaishali Ramkumar

Technical Editor: Pradeep Sahu

Copy Editor: Safis Editing

Project Coordinator: Deeksha Thakkar

Proofreader: Safis Editing

Indexer: Manju Arasan

Production Designer: Shankar Kalbhor

First published: December 2021

Production reference: 1151221

Published by Packt Publishing Ltd.

Livery Place

35 Livery Street

Birmingham

B3 2PB, UK.

ISBN 978-1-80181-144-6

www.packt.com

To my wife, Melanie Zhang, who stuck with me and supported me through a busy work schedule and deadlines. Not only are you smart and caring, you have been an amazing team player.

Maxwell Flitton

Contributors
About the author

Maxwell Flitton is a software engineer who works for the open source financial loss modeling foundation OasisLMF. In 2011, Maxwell achieved his Bachelor of Science degree in nursing from the University of Lincoln, UK. While working 12-hour shifts in the A&E departments of hospitals, Maxwell obtained another degree in physics from the Open University in the UK and then moved on to another milestone, with a postgraduate diploma in physics and engineering in medicine from UCL in London. He's worked on numerous projects such as medical simulation software for the German government and supervising computational medicine students at Imperial College London. He also has experience in financial tech and Monolith AI.

Many thanks to the Rust community for developing an amazing language with a friendly community that's willing to push boundaries. I'm also grateful to the team at Monolith AI, where Saravanan Sathyanandha and Richard Ahlfeld empowered me to grow as an engineer. This has been carried further by the OasisLMF team where Ben Hayes, Stephane Struzik, Sam Gamble, and Hassan Chagani have been supportive and enabled me to grow.

About the reviewers

Mrio Idival is a Brazilian and a lover of technologies aimed at software development, mainly focused on programming languages. He acts as a technical manager and software engineer in his spare time. He started his journey as a software developer in 2011 learning only with instructional material from the internet, starting with learning C, and soon after switched to Python, which allowed him to achieve his first job after 6 months of studies.

Today, with 10 years of experience, he has delivered software in several areas including loans, tourism and travel, artificial intelligence, electronic data interchange, process automation, and cryptocurrency. He is currently focused on learning and spreading knowledge of the Rust language. He also supports the Rust community in the Rust By Example project.

Boyd Johnson has been working in software since 2015. As part of a team at Bitwise IO, along with partners at Intel, he worked to develop Hyperledger Sawtooth, an open source blockchain, in Python and Rust. Boyd worked, in particular, on the FFI layer between Python and Rust, as well as transaction processing components. You can read more of Boyd's writing at boydjohnson.dev.

Table of Contents
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3»

Look at similar books to Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3»

Discussion, reviews of the book Speed Up Your Python with Rust: Optimize Python performance by creating Python pip modules in Rust with PyO3 and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.