Skip to main content

Python module for locating Visual Studio

Project description

pyfindvs

Python client library for locating Visual Studio 2017.

Usage

The basic functions are findall, findwithall and findwithany.

Calling findall will return a (potentially cached) list of currently installed copies of Visual Studio 2017. Each list item is a VisualStudioInstance object with attributes for name, version, version_info (numeric parts of version as a tuple), path and packages (a set of the installed components).

Calling findwithall or findwithany will only return instances of Visual Studio where all/any of the specified package names are installed.

For example:

>>> pyfindvs.findall()
[<VisualStudioInstance at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>,
 <VisualStudioInstance at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools>]

>>> pyfindvs.findwithall('Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
                         'Microsoft.VisualStudio.Component.Windows10SDK.10586')
[<VisualStudioInstance at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools>]

>>> pyfindvs.findwithany('Microsoft.VisualStudio.Component.VC.Tools.x86.x64',
                         'Microsoft.VisualStudio.Component.Windows10SDK.10586')
[<VisualStudioInstance at C:\Program Files (x86)\Microsoft Visual Studio\2017\Community>,
 <VisualStudioInstance at C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools>]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyfindvs-0.6.291.tar.gz (16.5 kB view hashes)

Uploaded source

Built Distributions

pyfindvs-0.6.291-cp37-cp37m-win_amd64.whl (24.3 kB view hashes)

Uploaded cp37

pyfindvs-0.6.291-cp37-cp37m-win32.whl (23.0 kB view hashes)

Uploaded cp37

pyfindvs-0.6.291-cp36-cp36m-win_amd64.whl (24.3 kB view hashes)

Uploaded cp36

pyfindvs-0.6.291-cp36-cp36m-win32.whl (23.0 kB view hashes)

Uploaded cp36

pyfindvs-0.6.291-cp35-cp35m-win_amd64.whl (24.2 kB view hashes)

Uploaded cp35

pyfindvs-0.6.291-cp35-cp35m-win32.whl (23.2 kB view hashes)

Uploaded cp35

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page