Difference between revisions of "Nicescad"

From BITPlan Wiki
Jump to navigation Jump to search
Line 20: Line 20:
 
== command line ==
 
== command line ==
 
<source lang='bash'>
 
<source lang='bash'>
nicescad -h
+
nicescad -h  
usage: nicescad [-h] [-a] [-c] [-d] [-i INPUT] [--host HOST] [--port PORT]
+
usage: nicescad [-h] [-a] [-c] [-d] [-l] [-i INPUT] [-rp ROOT_PATH] [--host HOST]
                [-s] [-V]
+
                [--port PORT] [-s] [-V]
  
 
Copyright 2023 contributors. All rights reserved.
 
Copyright 2023 contributors. All rights reserved.
Line 37: Line 37:
 
   -c, --client          start client [default: False]
 
   -c, --client          start client [default: False]
 
   -d, --debug          show debug info [default: False]
 
   -d, --debug          show debug info [default: False]
 +
  -l, --local          run with local file system access [default: False]
 
   -i INPUT, --input INPUT
 
   -i INPUT, --input INPUT
 
                         input file
 
                         input file
 +
  -rp ROOT_PATH, --root_path ROOT_PATH
 +
                        path to scad files [default:
 +
                        /Users/wf/Library/Python/3.10/lib/python/site-
 +
                        packages/nicescad/../scad_examples]
 
   --host HOST          the host to serve / listen from [default: localhost]
 
   --host HOST          the host to serve / listen from [default: localhost]
 
   --port PORT          the port to serve from [default: 9858]
 
   --port PORT          the port to serve from [default: 9858]

Revision as of 11:27, 23 July 2023

OsProject

OsProject
edit
id  nicescad
state  active
owner  WolfgangFahl
title  nicescad
url  https://github.com/WolfgangFahl/nicescad
version  0.0.1
description  
date  2023-07-21
since  2023-07-19
until  


Installation

pip install nicescad
# alternatively if your pip is not a python3 pip
pip3 install nicescad 
# local install from source directory of nicescad 
pip install .

upgrade

pip install nicescad  -U
# alternatively if your pip is not a python3 pip
pip3 install nicescad -U


Prerequisites

  • OpenScad needs to be installed
  • Pygments needs to be installed for syntax highlighting

Usage

command line

nicescad -h 
usage: nicescad [-h] [-a] [-c] [-d] [-l] [-i INPUT] [-rp ROOT_PATH] [--host HOST]
                [--port PORT] [-s] [-V]

Copyright 2023 contributors. All rights reserved.

  Licensed under the Apache License 2.0
  http://www.apache.org/licenses/LICENSE-2.0

  Distributed on an "AS IS" basis without warranties
  or conditions of any kind, either express or implied.

options:
  -h, --help            show this help message and exit
  -a, --about           show about info [default: False]
  -c, --client          start client [default: False]
  -d, --debug           show debug info [default: False]
  -l, --local           run with local file system access [default: False]
  -i INPUT, --input INPUT
                        input file
  -rp ROOT_PATH, --root_path ROOT_PATH
                        path to scad files [default:
                        /Users/wf/Library/Python/3.10/lib/python/site-
                        packages/nicescad/../scad_examples]
  --host HOST           the host to serve / listen from [default: localhost]
  --port PORT           the port to serve from [default: 9858]
  -s, --serve           start webserver [default: False]
  -V, --version         show program's version number and exit