Skip to main content

A wrapper for the build123d library, designed for AI agents.

Project description

[!TIP]
This project is one of the THOUGHT OF THE DAY projects.
该项目是“每日灵感记录”系列项目之一。
The development of these project may not be active.
这些项目的开发可能不会活跃。

IgnisCAD

PyPI version Python versions License Downloads

使用 Python 封装 build123d 进行 CAD 开发,让 AI 智能体可以使用纯文本建模。
A wrapper for the build123d library, designed for AI agents.

使用 Usage

使用 PyPI 下载该包:
Download the package via PyPI:

python -m pip install igniscad

由于项目正在快速更新,因此不建议您使用镜像源。
Using mirror sources is not recommended due to the early developing of the project.

API

整个项目围绕 Entity 类构造,您可以使用 Model 类来创造一个模型,并在其中添加和改造 Entity
The whole project is based on the class Entity, you can create a model via calling the class Model, and try adding or modifying some Entity inside it.

每个 Entity 都是一个 build123d 类库的封装,有些是类,有些则是工厂函数。
Every Entity is a wrapper for build123d classes, which can be primitive functions or subclasses.

每个 Entity 在定义时都有一个 name 属性,您可以通过 name 属性来在模型中快速查找一个特定的 Entity
*Each Entity has a name property while defining, you can use the name property to find a specified Entity in the model immediately.
这样可以保证上下文的统一性,也有助于进行原子性修改:
This ensures the consistency of context and facilitates atomic modifications:

from igniscad import *
with Model("Example") as model:
    model << Cylinder(5, 38, "pole")
    model.find("pole") # Returns the original Cylinder.

图表 Charts

Alt

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

igniscad-0.3.0.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

igniscad-0.3.0-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

Details for the file igniscad-0.3.0.tar.gz.

File metadata

  • Download URL: igniscad-0.3.0.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for igniscad-0.3.0.tar.gz
Algorithm Hash digest
SHA256 006a7a9f693be3f76bb2a5ef73e3847c7868500f1a59b70bb89a4b7f396e4439
MD5 17710f56a66dc2e68ef4cdfc55bdc804
BLAKE2b-256 fd9a834a3440c41d4a216d72ebbd8774b7da993088431fc256dcd0af3db9237b

See more details on using hashes here.

File details

Details for the file igniscad-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: igniscad-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for igniscad-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f737ee149e5fbf4301585fa1b8af29bd8cae71f1d6fee2adad2e80e7a5f8175f
MD5 9fd3e6c2b3630b6c544eba93bfae05e8
BLAKE2b-256 a300fad7b7db8f92c16f37eee4ecd8c89b9cf08b69b695d2dfe64d2f637cfe58

See more details on using hashes here.

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