Speed Up Your Python with Rust
eBook - ePub

Speed Up Your Python with Rust

Maxwell Flitton

  1. 384 páginas
  2. English
  3. ePUB (apto para móviles)
  4. Disponible en iOS y Android
eBook - ePub

Speed Up Your Python with Rust

Maxwell Flitton

Detalles del libro
Índice
Citas

Información del libro

Discover how to inject your code with highly performant Rust features to develop fast and memory-safe applicationsKey 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 codeBook DescriptionPython 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 RustWho this book is forThis 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.

Preguntas frecuentes

¿Cómo cancelo mi suscripción?
Simplemente, dirígete a la sección ajustes de la cuenta y haz clic en «Cancelar suscripción». Así de sencillo. Después de cancelar tu suscripción, esta permanecerá activa el tiempo restante que hayas pagado. Obtén más información aquí.
¿Cómo descargo los libros?
Por el momento, todos nuestros libros ePub adaptables a dispositivos móviles se pueden descargar a través de la aplicación. La mayor parte de nuestros PDF también se puede descargar y ya estamos trabajando para que el resto también sea descargable. Obtén más información aquí.
¿En qué se diferencian los planes de precios?
Ambos planes te permiten acceder por completo a la biblioteca y a todas las funciones de Perlego. Las únicas diferencias son el precio y el período de suscripción: con el plan anual ahorrarás en torno a un 30 % en comparación con 12 meses de un plan mensual.
¿Qué es Perlego?
Somos un servicio de suscripción de libros de texto en línea que te permite acceder a toda una biblioteca en línea por menos de lo que cuesta un libro al mes. Con más de un millón de libros sobre más de 1000 categorías, ¡tenemos todo lo que necesitas! Obtén más información aquí.
¿Perlego ofrece la función de texto a voz?
Busca el símbolo de lectura en voz alta en tu próximo libro para ver si puedes escucharlo. La herramienta de lectura en voz alta lee el texto en voz alta por ti, resaltando el texto a medida que se lee. Puedes pausarla, acelerarla y ralentizarla. Obtén más información aquí.
¿Es Speed Up Your Python with Rust un PDF/ePUB en línea?
Sí, puedes acceder a Speed Up Your Python with Rust de Maxwell Flitton en formato PDF o ePUB, así como a otros libros populares de Informatik y Programmiersprachen. Tenemos más de un millón de libros disponibles en nuestro catálogo para que explores.

Información

Año
2022
ISBN
9781801812320
Edición
1
Categoría
Informatik

Índice

Estilos de citas para Speed Up Your Python with Rust

APA 6 Citation

Flitton, M. (2022). Speed Up Your Python with Rust (1st ed.). Packt Publishing. Retrieved from https://www.perlego.com/book/3240332/speed-up-your-python-with-rust-pdf (Original work published 2022)

Chicago Citation

Flitton, Maxwell. (2022) 2022. Speed Up Your Python with Rust. 1st ed. Packt Publishing. https://www.perlego.com/book/3240332/speed-up-your-python-with-rust-pdf.

Harvard Citation

Flitton, M. (2022) Speed Up Your Python with Rust. 1st edn. Packt Publishing. Available at: https://www.perlego.com/book/3240332/speed-up-your-python-with-rust-pdf (Accessed: 15 October 2022).

MLA 7 Citation

Flitton, Maxwell. Speed Up Your Python with Rust. 1st ed. Packt Publishing, 2022. Web. 15 Oct. 2022.