Python Tools for Visual Studio
eBook - ePub

Python Tools for Visual Studio

  1. 122 pages
  2. English
  3. ePUB (mobile friendly)
  4. Available on iOS & Android
eBook - ePub

Python Tools for Visual Studio

About this book

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.

Approach

This is a hands-on guide that provides exemplary coverage of all the features and concepts related to PTVS.

Who this book is for

The book is intended for developers who are aiming to enhance their productivity in Python projects with automation tools that Visual Studio provides for the .Net community. Some basic knowledge of Python programming is essential.

Trusted by 375,005 students

Access to over 1 million titles for a fair monthly price.

Study more efficiently using our study tools.

Information

Year
2014
Edition
1
eBook ISBN
9781783288687

Python Tools for Visual Studio


Table of Contents

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

Python Tools for Visual Studio

Copyright © 2014 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
First published: April 2014
Production Reference: 1140414
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham B3 2PB, UK.
ISBN 978-1-78328-868-7
www.packtpub.com
Cover Image by Cathy Wang ()

Credits

Authors
Martino Sabia
Cathy Wang
Reviewers
Steve Dower
Fabio Lonegro
Chris Marinic
Commissioning Editor
Anthony Albuquerque
Acquisition Editor
Harsha Bharwani
Content Development Editor
Sriram Neelakantan
Technical Editor
Shashank Desai
Copy Editors
Roshni Banerjee
Gladson Monteiro
Project Coordinator
Melita Lobo
Proofreader
Paul Hindle
Indexers
Monica Ajmera Mehta
Priya Subramani
Production Coordinator
Conidon Miranda
Cover Work
Conidon Miranda

About the Authors

Martino Sabia is a curious-minded developer with close to 30 years of coding experience. Throughout his years of working with different platforms and languages, he has always kept his mind fresh while finding creative ways of using different technologies. Based in Italy, Martino has spent his career in various start-up companies, working in numerous roles from junior developer to software architect. Now he is the Project Lead for Deltatre; he works on consumer-facing, heavy-traffic websites and media-streaming platforms in the sports industry.
Cathy Wang is an experienced designer who specializes in service design and experience strategy. She has worked on many cross-channel projects and served as a design lead for enterprise services around the globe in fields ranging from Telecom to public sectors. Cathy has worked for world-class design agencies to help bring visions to life. In her free time, she builds web projects and apps. She is infinitely curious about new technologies and the experiences they can bring.

About the Reviewers

Steve Dower works at Microsoft and is a developer of Python Tools for the Visual Studio team.
Fabio Lonegro has spent many years doing research in theoretical physics (String and Gauge theory) and collaborating with many divulgating projects, including the translation of Peter Woit's book Not Even Wrong. He was always passionate about web development and has spent the last 15 ...

Table of contents

  1. Python Tools for Visual Studio

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn how to download books offline
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 990+ topics, we’ve got you covered! Learn about our mission
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more about Read Aloud
Yes! You can use the Perlego app on both iOS and Android devices to read anytime, anywhere — even offline. Perfect for commutes or when you’re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app
Yes, you can access Python Tools for Visual Studio by Martino Sabia, Cathy Wang in PDF and/or ePUB format, as well as other popular books in Computer Science & Application Development. We have over one million books available in our catalogue for you to explore.