notpeter / AxiDraw_API

AxiDraw CLI & Python API (Unofficial Mirror)

Home Page:https://axidraw.com/doc/py_api/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stand-alone command line interface and python API
for the AxiDraw writing and drawing machine.

Supported on python 3.7+, Mac, Windows, and Linux.


Copyright 2023 Evil Mad Scientist Laboratories

The AxiDraw writing and drawing machine is a product of Evil Mad Scientist
Laboratories. https://axidraw.com   https://shop.evilmadscientist.com


----------


Please see Installation.txt for requirements.


----------

This directory contains the following items:

axicli.py                         - One way to invoke the command line interface (CLI) program

axicli/                           - The CLI module directory

documentation/                    - API documentation in HTML format

pyaxidraw/                        - The AxiDraw python module directory

Installation.txt                  - Installation documentation

examples_python/                  - Example python scripts

examples_config/                  - Example configuration file

test/assets/AxiDraw_trivial.svg   - Sample SVG file that can be plotted
----------

COMMAND LINE INTERFACE: USAGE

For detailed documentation, please refer to:
    
    https://axidraw.com/doc/cli_api/


Quick start (CLI): 

(1) To plot an SVG document called "AxiDraw_trivial.svg" from the command line,
    use the AxiDraw CLI:

        axicli test/assets/AxiDraw_trivial.svg


(2) The CLI features an extensive set of control options. For quick help, use: 

        axicli --help

Some alternative commands (functionally identical):

        python axicli.py <input>
        python -m axicli <input>

----------
    
PYTHON API: USAGE

For detailed documentation, please refer to:
    
    https://axidraw.com/doc/py_api/
    
Quick Start:

(1) The file "examples_python/plot.py" is an example python script, showing how
one can use a the axidraw python module in "plot" mode to open and plot an SVG
file. 

    To run the example, call:

        python examples_python/plot.py

    This is a minimal demonstration script for opening and plotting an SVG file
    (in this case, "AxiDraw_trivial.svg") from within a python script. 


(2) The file "examples_python/interactive_xy.py" is an example python script, showing how one
can use a the axidraw python module in "interactive" mode, to execute absolute
and relative XY motion control commands like move(x,y), lineto(x,y), penup()
and pendown(). 

    To run the example, call:

        python examples_python/interactive_xy.py




----------
    

Licensing:

The AxiDraw CLI and top level example scripts are licensed under the MIT license. 
Some of the underlying libraries that are included with this distribution
are licensed as GPL. Please see the individual files and directories included with
this distribution for additional license information. 

API Documentation: Copyright 2023, Windell H. Oskay, Evil Mad Scientist Laboratories.



About

AxiDraw CLI & Python API (Unofficial Mirror)

https://axidraw.com/doc/py_api/


Languages

Language:Python 100.0%