Python Functional Programming: Leveraging Core Functional Primitives and Best Practices for High-Performance Python
Format:
Paperback
En stock
0.28 kg
Sí
Nuevo
Amazon
USA
- Kickstart your mastery of Python’s functional paradigm with this hands-on guide that shows you how to write clear, testable, and high-performance code. You’ll explore pure functions, immutable data structures, and the core primitives that let you build robust pipelines, safe error-handling flows, and scalable concurrent applications—all in idiomatic Python. What You’ll LearnDistinguish imperative and functional styles, and leverage immutability with tuples, frozenset, and frozen dataclassesWrite pure functions and isolate side effects so your routines are deterministic and easy to testTreat functions as values: assign, pass, return, and craft your own higher-order utilitiesBuild lazy, memory-efficient pipelines with iterators, generator functions, generator expressions, and itertoolsEncapsulate state with lexical closures, apply partial application and currying via functools.partial, and layer behavior with decoratorsModel errors as data using Either/Result patterns, and compose safe workflows without scattered try/except blocksChain small functions into clean workflows using compose and pipe, for both synchronous and asynchronous codeProfile hotspots with cProfile and timeit, then eliminate redundant work through memoization and functools.lru_cacheHarness asyncio to build non-blocking functional pipelines and integrate reactive streams with RxPySecure your code with property-based testing using Hypothesis and deterministic stream tests via RxPy’s TestSchedulerHands-On ProjectsImplement a pure-function ETL pipeline that lazily processes CSV files, applies filters and aggregations, and writes results without ever loading full datasets into memoryBuild a high-throughput log processor combining generator pipelines, LRU caching, and asynchronous collectors to handle millions of events per minuteCreate a decorator-driven plugin framework that loads, times, and retries user-defined routines with minimal boilerplateDesign an async functional workflow that fetches paginated API data, transforms each record reactively with RxPy, and backpressures to avoid overloadValidate complex algorithms and data transformations using Hypothesis to uncover edge cases and guarantee correctnessWho This Book Is ForPython developers ready to adopt a more declarative, testable coding styleBackend engineers building data pipelines, microservices, or event-driven systemsArchitects and DevOps professionals seeking patterns for immutability, error modeling, and observabilityStudents and self-learners who want production-ready examples of functional, concurrent, and reactive PythonTake your Python skills beyond scripts and classes—embrace functional primitives, composable pipelines, and cutting-edge best practices to write code that’s elegant, efficient, and rock-solid.
IMPORT EASILY
By purchasing this product you can deduct VAT with your RUT number