Language - Python: Difference between revisions

From Phidgets Support
(Created page with 'Preamble about the language and its general strengths and weaknesses. ==Assessment for use with Phidgets== Our honest opinion on how well this language is suited to controlling …')
 
No edit summary
(203 intermediate revisions by 9 users not shown)
Line 1: Line 1:
Preamble about the language and its general strengths and weaknesses.
[[Category:Language]]
__NOTOC__


==Assessment for use with Phidgets==
We provide support for Python in all major operating systems. We also provide instructions on how to get your project started in a number of common development environments. Select your operating system and preferred development environment below, and follow the instructions to get your project running with Phidgets.
Our honest opinion on how well this language is suited to controlling Phidgets. If it is a poor choice, suggest and link similar (better) languages.


==Support==
If you do not know which development environment you want to use, or your development environment of choice is not listed, we recommend starting with command line or terminal as the simplest path to getting your code running.
We provide [[Levels of Support|full support]] for Python.


==Restrictions==
Once you have set up your development environment to run with Phidgets, we recommend you follow our guide on [[Phidget Programming Basics]]. The guide will showcase the fundamentals of programming with Phidgets, with examples in Python.
In this section, list any restrictions or limitations that this particular language may impose. For example, incompatibility with certain operating systems.


==Development Environments and Compilers==
==Choose Your Development Environment:==


Describe each major compiler and notable differences or important information. (eg. framework versions) If there are known issues/workarounds mention them and link to the corresponding issue at the bottom of the page.
{{Language_-_Python_Dev_Environment_Table}}


==Drivers, Libraries and Resources==
== Quick Downloads ==
Before you can run your program, you need to set up the proper environment and get the necessary files off the Phidgets website.
Visit the drivers section at www.phidgets.com and get the latest:
* [http://www.phidgets.com/drivers.php Phidget Framework]
* [http://www.phidgets.com/downloads/libraries/PhidgetsPython_2.1.8.20110804.zip Phidgets Python Module]
You will need the Phidget Framework to use and to program with Phidgets. We also recommend that you download the following reference materials:
* [http://www.phidgets.com/documentation/PythonDoc.zip API Manual]
* [http://www.phidgets.com/documentation/web/PythonDoc/Phidgets.html API Reference]
* [http://www.phidgets.com/downloads/examples/Python_2.1.8.20110804.zip Python Sample Code]
* You can find a high level discussion about programming with Phidgets in general on the [[General API]] page.
* The [[Device Functionality]] page explains the general operational information for your device.


You may want to have these pages open while working through these instructions.
If you already know what you're doing and just need the files, you can find them all below.


==Getting Started==
=== Python Module ===
Here we provide a basic setup guide and code samples to start a project from scratch.
* [{{SERVER}}/downloads/phidget22/libraries/any/Phidget22Python.zip Phidget Python module]


==Building your Project==
=== Documentation ===
Describe the different ways a project could be built using this language.


==Common Problems and Solutions/Workarounds==
*{{Phidget22API}}  (select Python from the drop-down menu)
Here you can put various frequent problems and our recommended solutions.
 
=== Example Code ===
 
*{{SampleCode|Python|Python Examples}}
 
===Libraries===
{{AllQuickDownloads}}

Revision as of 22:14, 28 February 2019


We provide support for Python in all major operating systems. We also provide instructions on how to get your project started in a number of common development environments. Select your operating system and preferred development environment below, and follow the instructions to get your project running with Phidgets.

If you do not know which development environment you want to use, or your development environment of choice is not listed, we recommend starting with command line or terminal as the simplest path to getting your code running.

Once you have set up your development environment to run with Phidgets, we recommend you follow our guide on Phidget Programming Basics. The guide will showcase the fundamentals of programming with Phidgets, with examples in Python.

Choose Your Development Environment:

Python Development Environments
OS - Windows Windows

PY PCH WIN.png PY PCH WIN on.png

PY CL WIN.png PY CL WIN on.png

PY LI WIN.png PY LI WIN on.png

PY VS WIN.png PY VS WIN on.png

PY IDLE WIN.png PY IDLE WIN on.png

OS - macOS macOS

PY CL MAC.png PY CL MAC on.png

OS - Linux Linux

PY CL LNX.png PY CL LNX on.png

OS - Linux Phidget SBC Linux

PY CL SBC.png PY CL SBC on.png

Quick Downloads

If you already know what you're doing and just need the files, you can find them all below.

Python Module

Documentation

Example Code

Libraries