Speed up your Python with Rust

Speed up your Python with Rust: optimize Python performance by creating Python pip modules in Rust with Py03

by Flitton, Maxwell

Type Book
Rate 0.0 /5

Python has made software development easier, but it falls short in several areas including memory management, which leads to poor performance and security. Tust, 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. Thi…

Read More ↓

Title Statements

  • Full title :Speed up your Python with Rust : optimize Python performance by creating Python pip modules in Rust with Py03 / Maxwell Flitton.

Summary

Python has made software development easier, but it falls short in several areas including memory management, which leads to poor performance and security. Tust, 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 developers, 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 leeps, this book covers the quirks of Rust such as memory management in order to code Rust in a productive and structured manner. You'll explore the Py03 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.

Read More ↓

Edition Statements

  • Publication Date:©2021

Publication Statements

  • Publisher(s):Packt Publishing
  • Place of Publication:Birmingham, UK
  • Language:eng
  • Publication Date:©2021

Notes

Includes index.

The Physical Object

  • Description:xvii, 364 pages : : illustrations ; : 24 cm

Edition Identifiers

  • ISBN:180181144X, 9781801811446
  • oclc:on1285569217
  • Dewey Decimal:005.133

Table of Contents

An introduction to Rust from a Python perspective -- Structuring code in Rust -- Understanding concurrency -- Building pip modules in Python -- Creating a Rust interface for our pip module -- Working with Python objects in Rust -- Using Python modules with Rust -- Structuring an end-to-end Python package in Rust -- Structuring a Python flask app for Rust -- Injecting Rust into a Python flask app -- Best practices for integrating Rust.

Read More ↓

Subjects

Writers

Rate & Review

0.0/5
(0 people Voted)

No reviews yet. Be the first to rate this work.

Files & Downloads

  • Speed Up Your Python with Rust: Optimize Python p…

    EPUB · 4.9 MB · updated
  • Speed Up Your Python with Rust: Optimize Python p…

    PDF · 7.0 MB · updated