0%

Book Description

Leverage the power of the Visual Studio IDE to develop better and more efficient Python projects

In Detail

Python Tools for Visual Studio is a free and open source plugin for Visual Studio from Microsoft. It enables developers to use all the major productivity features of Visual Studio in their projects. The powerful integrated code navigation and code completion tools (IntelliSense) in PTVS empower developers to significantly speed up the coding process.

PTVS provides a unique IDE for either Python or IronPython languages, taking advantage of the .NET framework in plain Python projects.

This book provides a detailed insight into Python tools in Visual studio to help Python developers implement a more productive and efficient workflow.

Starting with the installation and configuration of PTVS, you will be familiarized with the various tools and panels available. Throughout the book, you will learn about how to speed up coding sessions with handy tips on refactoring and debugging. Moving on towards IntelliSense and the project setup, you will also learn about how PTVS does project handling, and how you can use Python environments for your project.

You then round off things by delving into Django development and library management in Visual Studio to gain advanced knowledge on Django web development for web applications.

What You Will Learn

  • Gain valuable insights on how to use IntelliSense with Python
  • Discover how to navigate code and objects with relative ease in REPL and code panel tools
  • Configure a set up for Django development and library management
  • Familiarize yourself with hosting a Django app on Azure
  • Learn all about project handling and the debugging process with PTVS
  • Understand about various project types in PTVS with basic examples

Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Table of Contents

  1. Python Tools for Visual Studio
    1. Table of Contents
    2. Python Tools for Visual Studio
    3. Credits
    4. About the Authors
    5. About the Reviewers
    6. www.PacktPub.com
      1. Support files, eBooks, discount offers, and more
        1. Why subscribe?
        2. Free access for Packt account holders
    7. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
      7. Downloading the color images of this book
        1. Errata
        2. Piracy
        3. Questions
      8. Special thanks from the authors
    8. 1. Introduction to PTVS
      1. Step-by-step installation and configuration
      2. PTVS tools overview
        1. The Python Environments window
        2. Python Interactive
      3. Visual Studio panels with PTVS
      4. Summary
    9. 2. Python Tools in Visual Studio
      1. Mastering IntelliSense with Python
      2. Using REPL in Visual Studio
      3. Navigating code with ease
      4. Object Browser
      5. Summary
    10. 3. Day-to-day Coding Tools
      1. Project handling
        1. Solution
        2. Project
        3. Specifying Python environments
        4. Defining Search Paths
      2. Refactoring
      3. Debugging
        1. Using breakpoints
        2. Utilizing watch entries
      4. Summary
    11. 4. Django in PTVS
      1. Django project template and tools
        1. Installing a Python package
        2. Running the application
        3. IntelliSense in Django templates
      2. Setting up and managing a database for a Django project
      3. Setting up the admin interface
      4. Creating a new Django application
      5. Deploying a Django project on Microsoft Azure
      6. Summary
    12. 5. Advanced Django in PTVS
      1. Library management
      2. The Fabric library – the deployment and development task manager
      3. South – the database deployment library
        1. Why use South with Django
        2. Installing South
        3. Schema migration with South
      4. Summary
    13. 6. IPython and IronPython in PTVS
      1. IPython in PTVS
      2. IronPython
        1. Using .NET classes in Python code with IronPython
        2. Using the Python code in .NET with IronPython
      3. Summary
    14. Index
18.117.229.44