O'Reilly logo

Python Recipes Handbook: A Problem-Solution Approach by Joey Bernard

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

© Joey Bernard 2016

Joey Bernard, Python Recipes Handbook, 10.1007/978-1-4842-0241-8_10

10. Modules and Packages

Joey Bernard

(1)Fredericton, New Brunswick, Canada

One of the biggest advantages when using Python is the large environment of available modules. There is almost literally a module for every conceivable use. In fact, this was even the topic of an XKCD web comic. In this chapter, you will look at how to tap into all of the work that has been done by installing and using the available modules. You will also look at how to package your own work into modules that you can share with others.

10-1. Importing Modules

Problem

You want to import the functionality from a given module into your current Python program.

Solution

Python includes the import ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required