Skip to main content

Yet another python to openscad translator

Project description

yaost

Yet another openscad translator.

Yaost - is python to openscad translator.

Prerequisites

  • python >= 3.5
  • openscad >= 2015

Quickstart

Create file example.py:

#!/usr/bin/env python
from yaost import project
from yaost import scad

p = Project('example project')

@p.add_part
def simple_cube():
    return scad.cube(10, 10, 10)

if __name__ == '__main__':
    p.run()

Build scad file:

$ python3 example.py build-scad

Now you can see your scad model:

$ openscad scad/simple-cube.scad

To build stl, run:

$ python3 example.py build-stl

Your model will be at stl/simple-cube.stl

You can run yaost in watch mode, it regenerates scad each time when you save python file:

$ python example.py watch

The open file with

$ openscad scad/simple-cube.scad

Chane something in example.py (eg. cube(30, 10, 10)) you should see changes in openscad viewe immediately.

See more in examples section.

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

yaost-0.1.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

yaost-0.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file yaost-0.1.tar.gz.

File metadata

  • Download URL: yaost-0.1.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for yaost-0.1.tar.gz
Algorithm Hash digest
SHA256 b86193fb87414f50d5466afe84081cf7372071e476fdbe97eadedec54d8b1e8a
MD5 0eb22bcbf00c4f70f79fd78a7aa59fe7
BLAKE2b-256 77c7678538d8f75e5a8fce02076aee6c1236d9dd24d8596cdd345d17d8c5f9be

See more details on using hashes here.

File details

Details for the file yaost-0.1-py3-none-any.whl.

File metadata

  • Download URL: yaost-0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.18.4 setuptools/40.7.3 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.7

File hashes

Hashes for yaost-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1e20636d09fbda6850e1bb154df76bad604eb9b0964f75a72dbf7df05bd7ee65
MD5 fcbc336c0f1f83b5e92b17c655d106d7
BLAKE2b-256 a5f140d41311989fcfd2922c941931d084861e47edbc3e73fefc5c8af50eb190

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page