Skip to main content

Project scaffolding for cwapi3d Python projects

Project description

cwapi3d-starter

Project scaffolding CLI for cwapi3d users.

Prerequisites

  • uv installed.
  • Python 3.12+

Installation

Global Installation (User)

You can install the tool globally to use it anywhere on your system.

Using uv (Recommended):

# Run from the project root
uv tool install .

Using pip:

# Run from the project root
pip install .

From Source (Development)

  1. Clone the repository:

    git clone https://github.com/Brunner246/cwapi3d-starter.git
    cd cwapi3d-starter
    
  2. Install dependencies:

    uv sync
    

Usage

If installed globally

Once installed, you can run the cwapi3d-starter command directly from anywhere:

cwapi3d-starter <project_name> --directory <target_directory>

If running from source

To generate a new project using the CLI from the source:

uv run cwapi3d-starter <project_name> --directory <target_directory>

Or simply:

uv run cwapi3d-starter <project_name> # Directory defaults to <project_name> in current folder

Example

# Generate a project named "my_script" in the specified directory
# Note: name and directory name need to be the same name for the generated project to work correctly.
uv run cwapi3d-starter my_script --directory "D:\cadwork\userprofil_2026\3d\API.x64\my_script"

This will generate a ready-to-use project structure for developing Python scripts using the cwapi3d Python stubs for cadwork 3d, including:

  • Virtual environment setup (uv)
  • VS Code configuration (settings.json)
  • Sample code (main.py, example_geometry.py)
  • Python package structure

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

cwapi3d_starter-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cwapi3d_starter-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file cwapi3d_starter-0.1.0.tar.gz.

File metadata

  • Download URL: cwapi3d_starter-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for cwapi3d_starter-0.1.0.tar.gz
Algorithm Hash digest
SHA256 7b042becd6c1fc02e9c0ffee6f1625d8adb534cd461a329d27e17af5e5dda431
MD5 d6e20e2a9b6e5bac33d358599106538f
BLAKE2b-256 5fcfae3423c3b0430539047cbfb693a4cc6a28693b38bd1d06079237e8808024

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwapi3d_starter-0.1.0.tar.gz:

Publisher: publish.yml on Brunner246/cwapi3d-starter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cwapi3d_starter-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cwapi3d_starter-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 187a7b47a3ef0872585c4998bb2eeceff62477ffd94777d13d64e0c972d9c575
MD5 2f23b45d7fab6bf01d43570fb7dd5c70
BLAKE2b-256 d8bfb1279f384f4d301c9f601aca2e641dd1563dd808f52c1f21ec8d3c60098b

See more details on using hashes here.

Provenance

The following attestation bundles were made for cwapi3d_starter-0.1.0-py3-none-any.whl:

Publisher: publish.yml on Brunner246/cwapi3d-starter

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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