rss Home » Tag Archive For ‘Python’

NumPy 1.5: Beginner’s Guide

NumPy 1.5: Beginners Guide

Book Description

In today’s world of science and technology, the hype is all about speed and flexibility. When it comes to scientific computing, is on the top of the list. is the fundamental package needed for scientific computing with . will give you both speed and high productivity. Save thousands of dollars on expensive software, while keeping all the flexibility and power of your favourite language.

1.5 Beginner’s Guide will teach you about NumPy from scratch. It includes everything from installation, functions, matrices, and modules to testing, all explained with appropriate examples.

Numpy 1.5 Beginner’s Guide will teach you about installing and using NumPy and related concepts.

This book will give you a solid foundation in NumPy arrays and universal functions. At the end of the book, we will explore related scientific computing projects such as Matplotlib for plotting and the SciPy project through examples.

NumPy 1.5 Beginner’s Guide will help you be productive with NumPy and write clean and fast code.

What you will learn from this book:

  • Installing NumPy
  • Learn to load arrays from files and write arrays to files
  • Work with universal functions Download Now »

Python and AWS Cookbook

Python and AWS Cookbook

Book Description

If you intend to use Web Services () for remote computing and storage, is an ideal language for developing applications and controlling your -based infrastructure. This cookbook gets you started with more than two dozen recipes for using with , based on the author’s boto library.

You’ll find detailed recipes for working with the S3 storage service as well as EC2, the service that lets you design and build applications. Each recipes includes a code solution you can use immediately, along with a discussion of why and how the recipes works. You also get detailed advice for using boto with AWS and other services.

This book’s recipes include methods to help you:

  • Launch instances on EC2, and keep track of them with tags
  • Associate and Elastic IP address with and instance
  • Restore an failed Elastic Block Store volume from a snapshot
  • Store and monitor your own custom metrics in CloudWatch
  • Create a bucket in S3 to contain your data objects
  • Reduce the cost of storing noncritical data
  • Prevent accidental deletion of data in S3

About the Author
Mitch Garnaat is a software developer at Eucalyptus Systems Download Now »

MongoDB and Python

MongoDB and Python

Book Description

Learn how to leverage with your applications, using the hands-on recipes in this book. You get complete code samples for tasks such as making fast geo queries for location-based apps, efficiently indexing your user documents for social-graph lookups, and many other scenarios.

This guide explains the basics of the document-oriented database and shows you how to set up a environment with it. Learn how to read and write to , apply idiomatic and Python patterns, and use the database with several popular Python web frameworks. You’ll discover how to model your data, write effective queries, and avoid concurrency problems such as race conditions and deadlocks.

The recipes will help you:

  • Read, write, count, and sort documents in a MongoDB collection
  • Learn how to use the rich MongoDB query language
  • Maintain data integrity in replicated/distributed MongoDB environments
  • Use embedding to efficiently model your data without joins
  • Code defensively to avoid keyerrors and other bugs
  • Apply atomic operations to update game scores, billing systems, and more with the fast accounting pattern
  • Use MongoDB with the Pylons 1.x, , and Pyramid web frameworks

Download Now »

Core PYTHON Programming, 2nd Edition

Core PYTHON Programming, 2nd Edition

Book Description

is an agile, robust, expressive, fully object-oriented, extensible, and scalable language. It combines the power of compiled languages with the simplicity and rapid of scripting languages. In Core , Second Edition, leading Python developer and trainer Wesley Chun helps you learn Python quickly and comprehensively so that you can immediately succeed with any Python project.

Using practical code examples, Chun introduces all the fundamentals of Python programming: syntax, objects and memory management, data types, operators, files and I/O, functions, generators, error handling and exceptions, loops, iterators, functional programming, object-oriented programming and more. After you learn the core fundamentals of Python, he shows you what you can do with your new skills, delving into advanced topics, such as regular expressions, networking programming with sockets, multithreading, GUI , Web/CGI programming and extending Python in C.

This edition reflects major enhancements in the Python 2.x series, including 2.5 as well as capabilities set for future versions. It contains new chapters on database and Internet client programming, plus coverage of many new topics, including new-style classes, Java and Jython, Microsoft Office (Win32 COM Client) programming, and much more.

  • Learn professional Python style, best practices, and good programming habits
  • Gain a deep understanding of Python’s objects Download Now »

Python Web Development with Django

Python Web Development with Django

Book Description

Using the simple, robust, -based framework, you can build powerful Web solutions with remarkably few lines of code. In Web with ®, three experienced Django and Python developers cover all the techniques, tools, and concepts you need to make the most of Django 1.0, including all the major features of the new release.

The authors teach Django through in-depth explanations, plus provide extensive sample code supported with images and line-by-line explanations. You’ll discover how Django leverages Python’s speed and flexibility to help you solve a wide spectrum of Web problems and learn Django best practices covered nowhere else. You’ll build your first Django application in just minutes and deepen your real-world skills through start-to-finish application projects including

  • Simple Web log (blog)
  • Online photo gallery
  • Simple content management system
  • Ajax-powered live blogger
  • Online source code sharing/syntax highlighting tool
  • How to run your Django applications on the App Engine

This complete guide starts by introducing Python, Django, and Web development concepts, then dives into the Django framework, providing a deep understanding of its major components (models, views, templates), and how they come together to form complete Web applications.

Download Now »

Pro Android Python with SL4A

Pro Android Python with SL4A

Book Description

Pro with is for programmers and hobbyists who want to write apps for devices without having to learn Java first. Paul Ferrill leads you from installing the Scripting Layer for Android () to writing small scripts, to more complicated and interesting projects, and finally to uploading and packaging your programs to an Android device.

Android runs scripts in many scripting languages, but , Lua, and Beanshell are particularly popular. Most programmers know more than one language, so that they have the best tool for whatever task they want to accomplish. Pro Android Python with SL4A explores the world of Android scripting by introducing you to the most important open-source languages that are available on Android-based hardware.

Pro Android Python with SL4A starts by exploring the Android software kit and then shows you how to set up an Eclipse-based Android environment. You then approach the world of Android programming by using Beanshell, which runs on the Dalvik, and learning how to write small programs to administer an Android device.

Next, discover how Lua, a lightweight language perfectly suited for scripting on smaller devices, can work with Android. Lua can be used for small but important tasks, like SMS encryption and synchronizing photos with flickr.

Last, but certainly not least, you will discover the world of Python scripting for SL4A, and the power contained within the full range of Python modules that can combine with the Android SDK. Download Now »