Scripts/Code that I wrote to develop 3d models
- Build123d
- Python
- OpenSCAD
- Domain specific language, ".scad", called OpenSCAD
Note: the requirements.txt, which contains all packages project depends on
I'm going to try out a new python manager, UV.
Install uv:
$ brew install uv
Install dependencies
$ uv pip install build123d
To install dependencies
$ uv install
Create a uv.lock file, locks exact versions of all dependencies and sub-dependencies
$ uv lock
In contrast, pyproject.toml is the current state of dependencies, not used in reinstallation
To list all dependencies
$ uv pip list
Create a virtual environment if one does not exit in folder:
$ uv venv my-name
Activate environment
$ source .venv/bin/activate
Run file with temprorary environment
$ uv run python3 example.py
NOTE: command uv add cannot add to custom environment name (defaults .venv)
$ uv pip install "package-name"
$ uv sync
uv sync is needed cause it adds to TOML file that is automatic if using uv add