Code Monkey home page Code Monkey logo

expert-python-programming_second-edition's Introduction

Expert Python Programming, Second Edition

Become an ace Python programmer by learning best coding practices and advance-level concepts with Python 3.5

This is package with code examples for Python Expert Programming, Second Edition book.

Structure of this package

Content of this package is divided into directories that refer exactly to book chapters. Code may differ sligthly from snippets presented in book. Sometimes it contains additional utilities, functions, or comments, that are intended to improve readability. This should help you better understand topics discussed in the book.

Each chapter directory contains NOTES file that explains the order in which scripts should be executed or additional information about its structure.

How to use this package

In order to use code examples, it is recommended to use virtual environments as explained in Chapter 1, Current Status of Python, of the book.

In short, create new environment somwhere on you disk. Make sure you are using at least Python 3.5 version to create virtual environment

$ python3.5 -m venv book-env

Book also covers topic of compatibility issues between Python 2 and Python 3 in certain sections. If you want to run scripts in older versions of Python, use virtualenv tool to create additional environment on your disk. Make sure to name it differently, so it will be clear which environment you are using in given shell session:

$ virtualenv -p python2.7 book-py27-env

If your environment is already created, you are ready to activate it so all installed packages will be isolated from your base system Python environment. If you are using bash, execute the following line:

$ source book-env/bin/activate

If you are working in Windows command line or Power Shell, then type:

> book-env\Scripts\activate

Successful activation will change your shell prompt by adding environment name prefix:

(book-env)$

Now, you can finally use pip to install all packages that are mentioned in book and used in example scripts:

(book-env)$ pip install -r requirements.txt

Want to learn more on Python?

expert-python-programming_second-edition's People

Contributors

pankajkadam1991 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.