Browse Results

Showing 48,101 through 48,125 of 60,740 results

Python Fundamentals: A practical guide for learning Python, complete with real-world projects for you to explore

by Ryan Marvin Mark Ng’ang’a Amos Omondi

With an interesting mix of theory and practicals, explore Python and its features, and progress from beginner to being skilled in this popular scripting languageKey FeaturesA comprehensive introduction to the world of Python programmingPaves an easy-to-follow path for you to navigate through conceptsFilled with over 90 practical exercises and activities to reinforce your learningBook DescriptionAfter a brief history of Python and key differences between Python 2 and Python 3, you'll understand how Python has been used in applications such as YouTube and Google App Engine. As you work with the language, you'll learn about control statements, delve into controlling program flow and gradually work on more structured programs via functions.As you settle into the Python ecosystem, you'll learn about data structures and study ways to correctly store and represent information. By working through specific examples, you'll learn how Python implements object-oriented programming (OOP) concepts of abstraction, encapsulation of data, inheritance, and polymorphism. You'll be given an overview of how imports, modules, and packages work in Python, how you can handle errors to prevent apps from crashing, as well as file manipulation.By the end of this book, you'll have built up an impressive portfolio of projects and armed yourself with the skills you need to tackle Python projects in the real world.What you will learnUse control statementsManipulate primitive and non-primitive data structuresUse loops to iterate over objects or data for accurate resultsWrite encapsulated and succinct Python functionsBuild Python classes using object-oriented programmingManipulate files on the file system (open, read, write, and delete)Who this book is forPython Fundamentals is great for anyone who wants to start using Python to build anything from simple command-line programs to web applications. Prior knowledge of Python isn't required.

Python für Dummies (Für Dummies)

by Johannes C. Hofmeister Horst Schneider

Python ist eine der beliebtesten und vielseitigsten Programmiersprachen überhaupt. Für viele Entwickler führt deshalb kein Weg an Python vorbei. Schöpfen Sie mit diesem Buch aus dem reichen Erfahrungsschatz zweier langjähriger Softwareentwickler. Sie lernen zunächst die Syntax der Sprache und vertiefen dann das Erlernte anhand von konkreten Aufgabenstellungen. Für den Blick über den Tellerrand sorgen Kapitel zu Programmierparadigmen, Code-Qualität, Test-Ansätzen und Dokumentation. Jede Menge Tipps und Tricks und ein breites Spektrum an Beispielen lassen Sie zu einem wahren Python-Profi werden.

Python Game Programming By Example

by Alejandro Rodas Paz Joseph Howse

A pragmatic guide for developing your own games with Python About This Book * Strengthen your fundamentals of game programming with Python language * Seven hands-on games to create 2D and 3D games rapidly from scratch * Illustrative guide to explore the different GUI libraries for building your games Who This Book Is For If you have ever wanted to create casual games in Python and you would like to explore various GUI technologies that this language offers, this is the book for you. This title is intended for beginners to Python with little or no knowledge of game development, and it covers step by step how to build seven different games, from the well-known Space Invaders to a classical 3D platformer. What You Will Learn * Take advantage of Python's clean syntax to build games quickly * Discover distinct frameworks for developing graphical applications * Implement non-player characters (NPCs) with autonomous and seemingly intelligent behaviors * Design and code some popular games like Pong and tower defense * Compose maps and levels for your sprite-based games in an easy manner * Modularize and apply object-oriented principles during the design of your games * Exploit libraries like Chimpunk2D, cocos2d, and Tkinter * Create natural user interfaces (NUIs), using a camera and computer vision algorithms to interpret the player's real-world actions In Detail With a growing interest in learning to program, game development is an appealing topic for getting started with coding. From geometry to basic Artificial Intelligence algorithms, there are plenty of concepts that can be applied in almost every game. Python is a widely used general-purpose, high-level programming language. It provides constructs intended to enable clear programs on both a small and large scale. It is the third most popular language whose grammatical syntax is not predominantly based on C. Python is also very easy to code and is also highly flexible, which is exactly what is required for game development. The user-friendliness of this language allows beginners to code games without too much effort or training. Python also works with very little code and in most cases uses the "use cases" approach, reserving lengthy explicit coding for outliers and exceptions, making game development an achievable feat. Python Game Programming by Example enables readers to develop cool and popular games in Python without having in-depth programming knowledge of Python. The book includes seven hands-on projects developed with several well-known Python packages, as well as a comprehensive explanation about the theory and design of each game. It will teach readers about the techniques of game design and coding of some popular games like Pong and tower defense. Thereafter, it will allow readers to add levels of complexities to make the games more fun and realistic using 3D. At the end of the book, you will have added several GUI libraries like Chimpunk2D, cocos2d, and Tkinter in your tool belt, as well as a handful of recipes and algorithms for developing games with Python. Style and approach This book is an example-based guide that will teach you to build games using Python. This book follows a step-by-step approach as it is aimed at beginners who would like to get started with basic game development. By the end of this book you will be competent game developers with good knowledge of programming in Python.

Python Geospatial Analysis Cookbook

by Michael Diener

Over 60 recipes to work with topology, overlays, indoor routing, and web application analysis with Python About This Book * Explore the practical process of using geospatial analysis to solve simple to complex problems with reusable recipes * Concise step-by-step instructions to teach you about projections, vector, raster, overlay, indoor routing and topology analysis * Create a basic indoor routing application with geodjango Who This Book Is For If you are a student, teacher, programmer, geospatial or IT administrator, GIS analyst, researcher, or scientist looking to do spatial analysis, then this book is for you. Anyone trying to answer simple to complex spatial analysis questions will get a working demonstration of the power of Python with real-world data. Some of you may be beginners with GIS, but most of you will probably have a basic understanding of geospatial analysis and programming. What You Will Learn * Discover the projection and coordinate system information of your data and learn how to transform that data into different projections * Import or export your data into different data formats to prepare it for your application or spatial analysis * Use the power of PostGIS with Python to take advantage of the powerful analysis functions * Execute spatial analysis functions on vector data including clipping, spatial joins, measuring distances, areas, and combining data to new results * Create your own set of topology rules to perform and ensure quality assurance rules in Python * Find the shortest indoor path with network analysis functions in easy, extensible recipes revolving around all kinds of network analysis problems * Visualize your data on a map using the visualization tools and methods available to create visually stunning results * Build an indoor routing web application with GeoDjango to include your spatial analysis tools built from the previous recipes In Detail Geospatial development links your data to places on the Earth's surface. Its analysis is used in almost every industry to answer location type questions. Combined with the power of the Python programming language, which is becoming the de facto spatial scripting choice for developers and analysts worldwide, this technology will help you to solve real-world spatial problems. This book begins by tackling the installation of the necessary software dependencies and libraries needed to perform spatial analysis with Python. From there, the next logical step is to prepare our data for analysis; we will do this by building up our tool box to deal with data preparation, transformations, and projections. Now that our data is ready for analysis, we will tackle the most common analysis methods for vector and raster data. To check or validate our results, we will explore how to use topology checks to ensure top-quality results. This is followed with network routing analysis focused on constructing indoor routes within buildings, over different levels. Finally, we put several recipes together in a GeoDjango web application that demonstrates a working indoor routing spatial analysis application. The round trip will provide you all the pieces you need to accomplish your own spatial analysis application to suit your requirements. Style and approach Easy-to-follow, step-by-step recipes, explaining from start to finish how to accomplish real-world tasks.

Python Geospatial Analysis Essentials

by Erik Westra

If you are an experienced Python developer and wish to get up-to-speed with geospatial programming, then this book is for you. While familiarity with installing third-party Python libraries would be an advantage, no prior knowledge of geospatial programming is required.

Python Geospatial Development

by Erik Westra

This is a tutorial style book that will teach usage of Python tools for GIS using simple practical examples and then show you how to build a complete mapping application from scratch. The book assumes basic knowledge of Python. No knowledge of Open Source GIS is required. This book is useful for Python developers who want to get up to speed with Open Source GIS in order to build GIS applications or integrate Geo-Spatial features into their applications.

Python Geospatial Development Essentials

by Karim Bahgat

This book provides you with the resources to successfully develop your own GIS application in Python. The book begins by walking you through the loading and saving of data structures before you start to build the look and feel of your application and create its interactive map window. You'll then move on to managing, editing, and analyzing spatial data from within the application and finish with instructions for packaging the application for distribution. By the end of the book, you should be able to use your GIS application as a template for further development, with the potential to expand and customize it to suit your needs.

Python Geospatial Development, Second Edition

by Erik Westra

This is a tutorial style book that will teach usage of Python tools for GIS using simple practical examples and then show you how to build a complete mapping application from scratch. The book assumes basic knowledge of Python. No knowledge of Open Source GIS is required.Experienced Python developers who want to learn about geospatial concepts, work with geospatial data, solve spatial problems, and build map-based applications.This book will be useful those who want to get up to speed with Open Source GIS in order to build GIS applications or integrate Geo-Spatial features into their existing applications.

Python Geospatial Development - Third Edition

by Erik Westra

Develop sophisticated mapping applications from scratch using Python 3 tools for geospatial development About This Book * Build web applications based around maps and geospatial data using Python 3.x * Install and use various toolkits and obtain geospatial data for use in your programs * This practical, hands-on book will teach you all about geospatial development in Python Who This Book Is For This book is for experienced Python developers who want to learn about geospatial concepts, obtain and work with geospatial data, solve spatial problems, and build sophisticated map-based applications using Python. What You Will Learn * Access, manipulate, and display geospatial data from within your Python programs * Master the core geospatial concepts of location, distance, units, projections, and datums * Read and write geospatial data in both vector and raster format * Perform complex, real-world geospatial calculations using Python * Store and access geospatial information in a database * Use points, lines, and polygons within your Python programs * Convert geospatial data into attractive maps using Python-based tools * Build complete web-based mapping applications using Python In Detail Geospatial development links your data to locations on the surface of the Earth. Writing geospatial programs involves tasks such as grouping data by location, storing and analyzing large amounts of spatial information, performing complex geospatial calculations, and drawing colorful interactive maps. In order to do this well, you'll need appropriate tools and techniques, as well as a thorough understanding of geospatial concepts such as map projections, datums, and coordinate systems. This book provides an overview of the major geospatial concepts, data sources, and toolkits. It starts by showing you how to store and access spatial data using Python, how to perform a range of spatial calculations, and how to store spatial data in a database. Further on, the book teaches you how to build your own slippy map interface within a web application, and finishes with the detailed construction of a geospatial data editor using the GeoDjango framework. By the end of this book, you will be able to confidently use Python to write your own geospatial applications ranging from quick, one-off utilities to sophisticated web-based applications using maps and other geospatial data. Style and approach This book is a comprehensive course in geospatial development. The concepts you need to know are presented in a hands-on fashion with example code to help you to solve real-world problems right away. Larger programs are built up step by step while guiding you through the process of building your own sophisticated mapping applications.

Python Graphics: A Reference for Creating 2D and 3D Images

by B. J. Korites

Use Python's built-in features to create innovative graphics for data visualization and technical illustrations. This book goes beyond simple commands and libraries to explain how to not only display but also rotate, shade, and edit graphics for any purpose. Starting with the essential Python functions to set up a plotting space and produce 2 and 3-dimensional objects, you'll learn how to construct more complex objects, translate and rotate them, remove hidden lines, introduce shading to add realism, and project images to visualize any dataset. The final chapter includes several worked applications in science and engineering including planetary models, which you can adapt for your own use.Written for developers who want to harness Python's capabilities to fine-tune their images, Python Graphics covers the different commands for plotting dots, lines, arrows, or arcs, creating custom plotting grids, correcting distortions, adding text and labels to illustrations, manipulating arcs and circles, specify and use colors, and more. Armed with these techniques and core math skills, you'll be ready to create and customize detailed technical illustrations or data visualizations. What You'll LearnUse Python′s built-in commands for plotting, removing distortions, and rotating objectsCreate and edit 2D and 3D objectsDevelop illustrations for scientific and engineering applicationsWho This Book Is ForPython developers looking for tips on how to create illustrations and visualizations, as well as scientists, engineers, or students using Python. It assumes familiarity with vectors, matrices, geometry and trigonometry.

Python Graphics: A Reference for Creating 2D and 3D Images

by Bernard Korites

This book shows how to use Python’s built-in graphics primitives - points, lines, and arrows – to create complex graphics for the visualization of two- and three-dimensional objects, data sets, and technical illustrations. This updated edition provides more detailed explanations where required, especially regarding Python code, and explores scientific applications to topics of contemporary importance. You’ll learn how to create any 2D or 3D object or illustration, as well as how to display images, use color, translate, rotate, shade, add shadows that are cast on other objects, remove hidden lines, plot 2D and 3D data, fit lines and curves to data sets, display points of intersection between 2D and 3D objects, and create digital art. Demonstrations are included which illustrate graphics programming techniques by example, the best way to learn a language. Also brand new to this edition are demonstrations on how to visualize electron probability clouds around a nucleus, climate change, ecological diversity, population dynamics, and resource management. Python source code, including detailed explanations, is included for all applications, making the book more accessible to novice Python programmers. After completing this book, you will be able to create compelling graphic images without being limited to functions available in existing Python libraries. What You Will Learn Create 2D and 3D graphic imagesAdd text and symbols to imagesShade 3D objectsDisplay cast shadowsUse color for maximum effectView 2D and 3D data setsFit lines and curves to data sets Who This Book Is For Python developers, scientists, engineers, and students who use Python to produce technical illustrations and display and analyze data sets. Assumes familiarity with vectors, matrices, geometry and trigonometry.

Python GUI Programming - A Complete Reference Guide: Develop responsive and powerful GUI applications with PyQt and Tkinter

by Alan D. Moore B. M. Harwani

Explore Python's GUI frameworks and create visually stunning and feature-rich applications Key Features Integrate stunning data visualizations using Tkinter Canvas and Matplotlib Understand the basics of 2D and 3D animation in GUI applications Explore PyQt's powerful features to easily design and customize your GUI applications Book Description A responsive graphical user interface (GUI) helps you interact with your application, improves user experience, and enhances the efficiency of your applications. With Python, you'll have access to elaborate GUI frameworks that you can use to build interactive GUIs that stand apart from the rest. This Learning Path begins by introducing you to Tkinter and PyQt, before guiding you through the application development process. As you expand your GUI by adding more widgets, you'll work with networks, databases, and graphical libraries that enhance its functionality. You'll also learn how to connect to external databases and network resources, test your code, and maximize performance using asynchronous programming. In later chapters, you'll understand how to use the cross-platform features of Tkinter and Qt5 to maintain compatibility across platforms. You'll be able to mimic the platform-native look and feel, and build executables for deployment across popular computing platforms. By the end of this Learning Path, you'll have the skills and confidence to design and build high-end GUI applications that can solve real-world problems. This Learning Path includes content from the following Packt products: Python GUI Programming with Tkinter by Alan D. Moore Qt5 Python GUI Programming Cookbook by B. M. Harwani What you will learn Visualize graphs in real time with Tkinter's animation capabilities Use PostgreSQL authentication to ensure data security for your application Write unit tests to avoid regression when updating code Handle different signals generated on mouse clicks using QSpinBox and sliders Employ network concepts, internet browsing, and Google Maps in UI Use graphics rendering to implement animations in your GUI Who this book is for If you're an intermediate Python programmer looking to enhance your coding skills by writing powerful GUIs in Python using PyQT and Tkinter, this is an ideal Learning Path for you. A strong understanding of the Python language is a must to grasp the concepts explained in this book.

Python GUI Programming Cookbook: Develop functional and responsive user interfaces with tkinter and PyQt5, 3rd Edition

by Burkhard Meier

Over 90 recipes to help you develop widgets, forms, layouts, charts, and much more using the latest features of Python 3 Key Features Use object-oriented programming to develop impressive GUIs in Python Create interesting charts to visually represent data using Matplotlib Develop GUIs with the latest versions of tkinter, PyQt5, and wxPython frameworks Book Description Python is a multi-domain, interpreted programming language that is easy to learn and implement. With its wide support for frameworks to develop GUIs, you can build interactive and beautiful GUI-based applications easily using Python. This third edition of Python GUI Programming Cookbook follows a task-based approach to help you create effective GUIs with the smallest amount of code. Every recipe in this book builds upon the last to create an entire, real-life GUI application. These recipes also help you solve problems that you might encounter while developing GUIs. This book mainly focuses on using Python's built-in tkinter GUI framework. You'll learn how to create GUIs in Python using simple programming styles and object-oriented programming (OOP). As you add more widgets and expand your GUI, you will learn how to connect to networks, databases, and graphical libraries that greatly enhance the functionality of your GUI. You'll also learn how to use threading to ensure that your GUI doesn't become unresponsive. Toward the end, you'll learn about the versatile PyQt GUI framework, which comes along with its own visual editor that allows you to design GUIs using drag and drop features. By the end of the book, you'll be an expert in designing Python GUIs and be able to develop a variety of GUI applications with ease. What you will learn Create amazing GUIs with Python's built-in tkinter module Customize GUIs using layout managers to arrange GUI widgets Advance from the typical waterfall coding style to an OOP style using Python Develop beautiful charts using the free Matplotlib Python module Use threading in a networked environment to make GUIs responsive Discover ways to connect GUIs to a MySQL database Understand how unit tests can be created and internationalize GUI Delve into the world of GUI creation using PyQt5 Who this book is for If you're a programmer or developer looking to enhance your Python skills by writing powerful GUI applications, this book is for you. Familiarity with the Python programming language is necessary to get the most out of the book.

Python GUI Programming Cookbook

by Burkhard A. Meier

Over 80 object-oriented recipes to help you create mind-blowing GUIs in Python About This Book * Use object-oriented programming to develop amazing GUIs in Python * Create a working GUI project as a central resource for developing your Python GUIs * Packed with easy-to-follow recipes to help you develop code using the latest released version of Python Who This Book Is For If you are a Python programmer with intermediate level knowledge of GUI programming and want to learn how to create beautiful, effective, and responsive GUIs using the freely available Python GUI frameworks, this book is for you. What You Will Learn * Create amazing GUIs with Python's built-in Tkinter module * Customize the GUIs by using layout managers to arrange the GUI widgets * Advance to an object-oriented programming style using Python * Develop beautiful charts using the free Matplotlib Python module * Use threading in a networked environment to make the GUIs responsive * Discover ways to connect the GUIs to a database * Understand how unit tests can be created and internationalize the GUI * Extend the GUIs with free Python frameworks using best practices In Detail Python is a multi-domain, interpreted programming language. It is a widely used general-purpose, high-level programming language. It is often used as a scripting language because of its forgiving syntax and compatibility with a wide variety of different eco-systems. Its flexible syntax enables developers to write short scripts while at the same time, they can use object-oriented concepts to develop very large projects. Python GUI Programming Cookbook follows a task-based approach to help you create beautiful and very effective GUIs with the least amount of code necessary. This book uses the simplest programming style, using the fewest lines of code to create a GUI in Python, and then advances to using object-oriented programming in later chapters. If you are new to object-oriented programming (OOP), this book will teach you how to take advantage of the OOP coding style in the context of creating GUIs written in Python. Throughout the book, you will develop an entire GUI application, building recipe upon recipe, connecting the GUI to a database. In the later chapters, you will explore additional Python GUI frameworks, using best practices. You will also learn how to use threading to ensure your GUI doesn't go unresponsive. By the end of the book, you will be an expert in Python GUI programming to develop a common set of GUI applications. Style and approach Every recipe in this programming cookbook solves a problem you might encounter in your programming career. At the same time, most of the recipes build on each other to create an entire, real-life GUI application.

Python GUI Programming Cookbook - Second Edition

by Burkhard A. Meier

Master over 80 object-oriented recipes to create amazing GUIs in Python and revolutionize your applications today About This Book • Use object-oriented programming to develop amazing GUIs in Python • Create a working GUI project as a central resource for developing your Python GUIs • Easy-to-follow recipes to help you develop code using the latest released version of Python Who This Book Is For This book is for intermediate Python programmers who wish to enhance their Python skills by writing powerful GUIs in Python. As Python is such a great and easy to learn language, this book is also ideal for any developer with experience of other languages and enthusiasm to expand their horizon. What You Will Learn • Create the GUI Form and add widgets • Arrange the widgets using layout managers • Use object-oriented programming to create GUIs • Create Matplotlib charts • Use threads and talking to networks • Talk to a MySQL database via the GUI • Perform unit-testing and internationalizing the GUI • Extend the GUI with third-party graphical libraries • Get to know the best practices to create GUIs In Detail Python is a multi-domain, interpreted programming language. It is a widely used general-purpose, high-level programming language. It is often used as a scripting language because of its forgiving syntax and compatibility with a wide variety of different eco-systems. Python GUI Programming Cookbook follows a task-based approach to help you create beautiful and very effective GUIs with the least amount of code necessary. This book will guide you through the very basics of creating a fully functional GUI in Python with only a few lines of code. Each and every recipe adds more widgets to the GUIs we are creating. While the cookbook recipes all stand on their own, there is a common theme running through all of them. As our GUIs keep expanding, using more and more widgets, we start to talk to networks, databases, and graphical libraries that greatly enhance our GUI's functionality. This book is what you need to expand your knowledge on the subject of GUIs, and make sure you're not missing out in the long run. Style and approach This programming cookbook consists of standalone recipes, and this approach makes it unique.. While each recipe explains a certain concept, throughout the book you'll build a more and more advanced GUI, recipe after recipe. In some of the advanced topics, we simply create a new GUI in order to explore these topics in depth.

Python GUI Programming with Tkinter: Develop responsive and powerful GUI applications with Tkinter

by Alan D Moore

Find out how to create visually stunning and feature-rich applications by empowering Python's built-in Tkinter GUI toolkitKey Features Explore Tkinter's powerful features to easily design and customize your GUI application Learn the basics of 2D and 3D animation in GUI applications. Learn to integrate stunning Data Visualizations using Tkinter Canvas and Matplotlib.Book DescriptionTkinter is a lightweight, portable, and easy-to-use graphical toolkit available in the Python Standard Library, widely used to build Python GUIs due to its simplicity and availability. This book teaches you to design and build graphical user interfaces that are functional, appealing, and user-friendly using the powerful combination of Python and Tkinter.After being introduced to Tkinter, you will be guided step-by-step through the application development process. Over the course of the book, your application will evolve from a simple data-entry form to a complex data management and visualization tool while maintaining a clean and robust design. In addition to building the GUI, you'll learn how to connect to external databases and network resources, test your code to avoid errors, and maximize performance using asynchronous programming. You'll make the most of Tkinter's cross-platform availability by learning how to maintain compatibility, mimic platform-native look and feel, and build executables for deployment across popular computing platforms.By the end of this book, you will have the skills and confidence to design and build powerful high-end GUI applications to solve real-world problems.What you will learn Implement the tools provided by Tkinter to design beautiful GUIs Discover cross-platform development through minor customizations in your existing application Visualize graphs in real time as data comes in using Tkinter's animation capabilities Use PostgreSQL authentication to ensure data security for your application Write unit tests to avoid regressions when updating codeWho this book is forThis book will appeal to developers and programmers who would like to build GUI-based applications. Knowledge of Python is a prerequisite.

Python GUI Programming with Tkinter: Design and build functional and user-friendly GUI applications, 2nd Edition

by Alan D. Moore

Transform your evolving user requirements into feature-rich Tkinter applicationsKey FeaturesExtensively revised with new content on RESTful networking, classes in Tkinter, and the Notebook widgetTake advantage of Tkinter's lightweight, portable, and easy-to-use featuresBuild better-organized code and learn to manage an evolving codebaseBook DescriptionTkinter is widely used to build GUIs in Python due to its simplicity. In this book, you'll discover Tkinter's strengths and overcome its challenges as you learn to develop fully featured GUI applications.Python GUI Programming with Tkinter, Second Edition, will not only provide you with a working knowledge of the Tkinter GUI library, but also a valuable set of skills that will enable you to plan, implement, and maintain larger applications. You'll build a full-blown data entry application from scratch, learning how to grow and improve your code in response to continually changing user and business needs.You'll develop a practical understanding of tools and techniques used to manage this evolving codebase and go beyond the default Tkinter widget capabilities. You'll implement version control and unit testing, separation of concerns through the MVC design pattern, and object-oriented programming to organize your code more cleanly.You'll also gain experience with technologies often used in workplace applications, such as SQL databases, network services, and data visualization libraries. Finally, you'll package your application for wider distribution and tackle the challenge of maintaining cross-platform compatibility.What you will learnProduce well-organized, functional, and responsive GUI applicationsExtend the functionality of existing widgets using classes and OOPPlan wisely for the expansion of your app using MVC and version controlMake sure your app works as intended through widget validation and unit testingUse tools and processes to analyze and respond to user requestsBecome familiar with technologies used in workplace applications, including SQL, HTTP, Matplotlib, threading, and CSVUse PostgreSQL authentication to ensure data security for your applicationWho this book is forThis book is for programmers who understand the syntax of Python, but do not yet have the skills, techniques, and knowledge to design and implement a complete software application. A fair grasp of basic Python syntax is required.

Python High Performance Programming

by Gabriele Lanaro

An exciting, easy-to-follow guide illustrating the techniques to boost the performance of Python code, and their applications with plenty of hands-on examples.If you are a programmer who likes the power and simplicity of Python and would like to use this language for performance-critical applications, this book is ideal for you. All that is required is a basic knowledge of the Python programming language. The book will cover basic and advanced topics so will be great for you whether you are a new or a seasoned Python developer.

Python High Performance - Second Edition

by Gabriele Lanaro

Learn how to use Python to create efficient applications About This Book • Identify the bottlenecks in your applications and solve them using the best profiling techniques • Write efficient numerical code in NumPy, Cython, and Pandas • Adapt your programs to run on multiple processors and machines with parallel programming Who This Book Is For The book is aimed at Python developers who want to improve the performance of their application. Basic knowledge of Python is expected What You Will Learn • Write efficient numerical code with the NumPy and Pandas libraries • Use Cython and Numba to achieve native performance • Find bottlenecks in your Python code using profilers • Write asynchronous code using Asyncio and RxPy • Use Tensorflow and Theano for automatic parallelism in Python • Set up and run distributed algorithms on a cluster using Dask and PySpark In Detail Python is a versatile language that has found applications in many industries. The clean syntax, rich standard library, and vast selection of third-party libraries make Python a wildly popular language. Python High Performance is a practical guide that shows how to leverage the power of both native and third-party Python libraries to build robust applications. The book explains how to use various profilers to find performance bottlenecks and apply the correct algorithm to fix them. The reader will learn how to effectively use NumPy and Cython to speed up numerical code. The book explains concepts of concurrent programming and how to implement robust and responsive applications using Reactive programming. Readers will learn how to write code for parallel architectures using Tensorflow and Theano, and use a cluster of computers for large-scale computations using technologies such as Dask and PySpark. By the end of the book, readers will have learned to achieve performance and scale from their Python applications. Style and approach A step-by-step practical guide filled with real-world use cases and examples

Python How-To: 63 techniques to improve your Python code

by Yong Cui

Have you ever asked yourself, &“How do I do that in Python?&” If so, you&’ll love this practical collection of the most important Python techniques.Python How-To includes over 60 detailed answers to questions like: How do I join and split strings? How do I access dictionary keys, values, and items? How do I set and use the return value in function calls? How do I process JSON data? How do I create lazy attributes to improve performance? How do I change variables in a different namespace? …and much more Python How-To walks you through the most important coding techniques in Python. Whether you&’re doing data science, building web applications, or writing admin scripts, you&’ll find answers to your &“how-to&” questions in this book. Inside you&’ll find important insights into both Python basics and deep-dive topics to help you skill-up at any stage of your Python career. Author Yong Cui&’s clear and practical writing is instantly accessible and makes it easy to take advantage of Python&’s versatile tools and libraries. Perfect to be read both from cover to cover, and whenever you need help troubleshooting your code. About the Technology Python How-To uses a simple but powerful method to lock in 63 core Python skills. You&’ll start with a question, like &“How do I find items in a sequence?&” Next, you&’ll see an example showing the basic solution in crystal-clear code. You&’ll then explore interesting variations, such as finding substrings or identifying custom classes. Finally, you&’ll practice with a challenge exercise before moving on to the next How-To. About the Book This practical guide covers all the language features you&’ll need to get up and running with Python. As you go, you&’ll explore best practices for writing great Python code. Practical suggestions and engaging graphics make each important technique come to life. Author Yong Cui&’s careful cross-referencing reveals how you can reuse features and concepts in different contexts. What&’s Inside How to: Join and split strings Access dictionary keys, values, and items Set and use the return value in function calls Process JSON data Create lazy attributes to improve performance Change variables in a different namespace …and much more. About the Reader For beginning to intermediate Python programmers. About the Author Dr. Yong Cui has been working with Python in bioscience for data analysis, machine learning, and tool development for over 15 years. Table of Contents 1 Developing a pragmatic learning strategy PART 1 - USING BUILT-IN DATA MODELS 2 Processing and formatting strings 3 Using built-in data containers 4 Dealing with sequence data 5 Iterables and iterations PART 2 - DEFINING FUNCTIONS 6 Defining user-friendly functions 7 Using functions beyond the basics PART 3 - DEFINING CLASSES 8 Defining user-friendly classes 9 Using classes beyond the basics PART 4 - MANIPULATING OBJECTS AND FILES 10 Fundamentals of objects 11 Dealing with files PART 5 - SAFEGUARDING THE CODEBASE 12 Logging and exception handling 13 Debugging and testing PART 6 - BUILDING A WEB APP 14 Completing a real project

Python Image Processing Cookbook: Over 60 recipes to help you perform complex image processing and computer vision tasks with ease

by Sandipan Dey

Explore Keras, scikit-image, open source computer vision (OpenCV), Matplotlib, and a wide range of other Python tools and frameworks to solve real-world image processing problems Key Features Discover solutions to complex image processing tasks using Python tools such as scikit-image and Keras Learn popular concepts such as machine learning, deep learning, and neural networks for image processing Explore common and not-so-common challenges faced in image processing Book Description With the advancements in wireless devices and mobile technology, there's increasing demand for people with digital image processing skills in order to extract useful information from the ever-growing volume of images. This book provides comprehensive coverage of the relevant tools and algorithms, and guides you through analysis and visualization for image processing. With the help of over 60 cutting-edge recipes, you'll address common challenges in image processing and learn how to perform complex tasks such as object detection, image segmentation, and image reconstruction using large hybrid datasets. Dedicated sections will also take you through implementing various image enhancement and image restoration techniques, such as cartooning, gradient blending, and sparse dictionary learning. As you advance, you'll get to grips with face morphing and image segmentation techniques. With an emphasis on practical solutions, this book will help you apply deep learning techniques such as transfer learning and fine-tuning to solve real-world problems. By the end of this book, you'll be proficient in utilizing the capabilities of the Python ecosystem to implement various image processing techniques effectively. What you will learn Implement supervised and unsupervised machine learning algorithms for image processing Use deep neural network models for advanced image processing tasks Perform image classification, object detection, and face recognition Apply image segmentation and registration techniques on medical images to assist doctors Use classical image processing and deep learning methods for image restoration Implement text detection in images using Tesseract, the optical character recognition (OCR) engine Understand image enhancement techniques such as gradient blending Who this book is for This book is for image processing engineers, computer vision engineers, software developers, machine learning engineers, or anyone who wants to become well-versed with image processing techniques and methods using a recipe-based approach. Although no image processing knowledge is expected, prior Python coding experience is necessary to understand key concepts covered in the book.

Python in a Nutshell

by Alex Martelli

This book offers Python programmers one place to look when they need help remembering or deciphering the syntax of this open source language and its many powerful but scantily documented modules. This comprehensive reference guide makes it easy to look up the most frequently needed information--not just about the Python language itself, but also the most frequently used parts of the standard library and the most important third-party extensions. Ask any Python aficionado and you'll hear that Python programmers have it all: an elegant object-oriented language with readable and maintainable syntax, that allows for easy integration with components in C, C++, Java, or C#, and an enormous collection of precoded standard library and third-party extension modules. Moreover, Python is easy to learn, yet powerful enough to take on the most ambitious programming challenges. But what Python programmers used to lack is a concise and clear reference resource, with the appropriate measure of guidance in how best to use Python's great power. Python in a Nutshell fills this need. Python in a Nutshell, Second Edition covers more than the language itself; it also deals with the most frequently used parts of the standard library, and the most popular and important third party extensions. Revised and expanded for Python 2.5, this book now contains the gory details of Python's new subprocess module and breaking news about Microsoft's new IronPython project. Our "Nutshell" format fits Python perfectly by presenting the highlights of the most important modules and functions in its standard library, which cover over 90% of your practical programming needs. This book includes: A fast-paced tutorial on the syntax of the Python language An explanation of object-oriented programming in Python Coverage of iterators, generators, exceptions, modules, packages, strings, and regular expressions A quick reference for Python's built-in types and functions and key modules Reference material on important third-party extensions, such as Numeric and Tkinter Information about extending and embedding Python Python in a Nutshell provides a solid, no-nonsense quick reference to information that programmers rely on the most. This book will immediately earn its place in any Python programmer's library. Praise for the First Edition: "In a nutshell, Python in a Nutshell serves one primary goal: to act as an immediately accessible goal for the Python language. True, you can get most of the same core information that is presented within the covers of this volume online, but this will invariably be broken into multiple files, and in all likelihood lacking the examples or the exact syntax description necessary to truly understand a command." --Richard Cobbett, Linux Format "O'Reilly has several good books, of which Python in a Nutshell by Alex Martelli is probably the best for giving you some idea of what Python is about and how to do useful things with it." --Jerry Pournelle, Byte Magazine

Python in a Nutshell

by Alex Martelli

In the tradition of O'Reilly's "In a Nutshell" series, Python in a Nutshelloffers Python programmers one place to look when they need help remembering or deciphering the syntax of this open source language and its many modules. This comprehensive reference guide makes it easy to look up all the most frequently needed information--not just about the Python language itself, but also the most frequently used parts of the standard library and the most important third-party extensions.

Python in a Nutshell: A Desktop Quick Reference

by Alex Martelli Anna Ravenscroft Steve Holden

Useful in many roles, from design and prototyping to testing, deployment, and maintenance, Python is consistently ranked among today’s most popular programming languages. The third edition of this practical book provides a quick reference to the language—including Python 3.5, 2.7, and highlights of 3.6—commonly used areas of its vast standard library, and some of the most useful third-party modules and packages.Ideal for programmers with some Python experience, and those coming to Python from other programming languages, this book covers a wide range of application areas, including web and network programming, XML handling, database interactions, and high-speed numeric computing. Discover how Python provides a unique mix of elegance, simplicity, practicality, and sheer power.This edition covers:Python syntax, Object-Oriented Python, standard library modules, and third-party Python packagesPython’s support for file and text operations, persistence and databases, concurrent execution, and numeric computationsNetworking basics, event-driven programming, and client-side network protocol modulesPython extension modules, and tools for packaging and distributing extensions, modules, and applications

Python in a Nutshell: A Desktop Quick Reference

by Alex Martelli Anna Martelli Ravenscroft Steve Holden Paul McGuire

Python was recently ranked as today's most popular programming language on the TIOBE index, thanks to its broad applicability to design and prototyping to testing, deployment, and maintenance. With this updated fourth edition, you'll learn how to get the most out of Python, whether you're a professional programmer or someone who needs this language to solve problems in a particular field.Carefully curated by recognized experts in Python, this new edition focuses on version 3.10, bringing this seminal work on the Python language fully up to date on five version releases, including preview coverage of upcoming 3.11 features.This handy guide will help you:Learn how Python represents data and program as objectsUnderstand the value and uses of type annotationsExamine which language features appeared in which recent versionsDiscover how to use modern Python idiomaticallyLearn ways to structure Python projects appropriatelyUnderstand how to debug Python code

Refine Search

Showing 48,101 through 48,125 of 60,740 results