Skip to main content

Yet another opensac translator

Project description

yaost

Yet another openscad translator.

Yaost - is python to openscad translator.

Prerequisites

  • python >= 3.5
  • openscad >= 2019

Quickstart

Create file example.py:

#!/usr/bin/env python
from yaost import project, cube

p = Project('example project')

@p.add_part
def simple_cube():
    return 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

Change something in example.py (eg. cube(30, 10, 10)) you should see changes in openscad viewer 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-2.2.2.tar.gz (334.0 kB view details)

Uploaded Source

Built Distribution

yaost-2.2.2-py3-none-any.whl (30.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yaost-2.2.2.tar.gz
  • Upload date:
  • Size: 334.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for yaost-2.2.2.tar.gz
Algorithm Hash digest
SHA256 48cceb5cda2ee38fe94ebc4663f12942c793d3e2ccb857e5b96b18886613301e
MD5 1af949142bae1b42f7f438caa8c71825
BLAKE2b-256 e359ba55e90c0ce9468a15467238b4e095fee2c9def86e7e41c488f0a9b9211b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: yaost-2.2.2-py3-none-any.whl
  • Upload date:
  • Size: 30.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for yaost-2.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d2994730747f6f265c53823de2634ff161448e4bdcf7cf51becc9c9ab5edfb4a
MD5 2462e9b85948457b33a66532489b457d
BLAKE2b-256 326fadc691d906f053d33828b6e80dfb69e20c14c46ac8c93a17f32facfc293b

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