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

GitHub license PyPI 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.2.2.tar.gz (11.2 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.2.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for igniscad-0.2.2.tar.gz
Algorithm Hash digest
SHA256 746b9a9138fd9227a4679b01a5cc363d7e51e58aabbaa06746a116cacab78403
MD5 93034293cde124353d8db0f0205d8859
BLAKE2b-256 cb93546432d33f09b382ae2cbc9216b73d12b70f35a29630dd3007117b7b469c

See more details on using hashes here.

Provenance

The following attestation bundles were made for igniscad-0.2.2.tar.gz:

Publisher: publish.yml on Ignis-Studio/IgnisCAD

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

File details

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

File metadata

  • Download URL: igniscad-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 13.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for igniscad-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d64a52e157cc22eb8d8c8ad0ea687fe7c90010072baa99afe4e2873f6282159e
MD5 93682c90824ca1c167194ba7556cc636
BLAKE2b-256 d342155f0ffd7e4054331f75b6196323a010c9ae0cb00af40a8fa834332376c4

See more details on using hashes here.

Provenance

The following attestation bundles were made for igniscad-0.2.2-py3-none-any.whl:

Publisher: publish.yml on Ignis-Studio/IgnisCAD

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