Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pyavrutils

How to install pyavrutils

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pyavrutils
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
0.1.0
0.1.2Never BuiltWhy not?
0.1.0 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.4 Available View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Available View build log
0.0.0 Available View build log
Windows (64-bit)
0.1.0
0.1.2Never BuiltWhy not?
0.1.0 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.4 Available View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Available View build log
0.0.0 Available View build log
Mac OS X (10.5+)
0.1.0
0.1.2Never BuiltWhy not?
0.1.0 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.4 Available View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Available View build log
0.0.0 Available View build log
Linux (32-bit)
0.1.0
0.1.2Never BuiltWhy not?
0.1.0 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.4 Available View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Available View build log
0.0.0 Available View build log
Linux (64-bit)
0.1.2 Available View build log
0.1.0 Available View build log
0.0.7 Available View build log
0.0.6 Available View build log
0.0.4 Available View build log
0.0.3 Failed View build log
0.0.2 Failed View build log
0.0.1 Available View build log
0.0.0 Available View build log
avr
 
Author
License
BSD
Depended by
Lastest release
version 0.1.2 on Jan 9th, 2014

pyavrutils is a Python library that can build AVR and arduino code at runtime.

Links:
Features:
  • python wrapper for avr-gcc, avr-size, arscons
  • build files or strings (strings are saved as temp files)
  • MCU list
  • get code size using avr-size
  • avr-gcc default is optimized for size
  • supported python versions: 2.6, 2.7
Known problems:
  • temp files are not removed
  • arscons does not perfectly matches the Arduino build process
Possible usage:
  • experimenting with flags
  • building from paver
  • unit tests
  • building arduino code without GUI

Basic usage

>>> from pyavrutils import AvrGcc
>>> cc = AvrGcc()
>>> cc.build('int main(){}')
>>> cc.size().program_bytes
66
>>> from pyavrutils import Arduino
>>> cc = Arduino()
>>> cc.mcu = 'atmega8'
>>> cc.build('void setup(){};void loop(){}')
>>> cc.size().program_bytes
1612

Installation

General

if you have setuptools installed:

# as root
pip install pyavrutils
Ubuntu
sudo apt-get install python-pip
sudo apt-get install binutils-avr
sudo apt-get install gcc-avr
sudo apt-get install scons
sudo apt-get install arduino
sudo pip install pyavrutils
# optional for examples:
sudo pip install entrypoint2
Uninstall

using pip:

# as root
pip uninstall pyavrutils

Subscribe to package updates

Last updated Jan 9th, 2014

Download Stats

Last month:1

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.