ducpy

Python library for the DUC 2D CAD file format.

Usage:

import ducpy as duc

Builders API (High-level):

The easy way to build, manage .duc files. Construct elements, apply styles, manage layers, build blocks, and handle document state with the duc.builders module.

SQL Builder (Low-level):

A .duc file is a zlib-compressed SQLite database. Use duc.builders.sql_builder for direct schema access, bulk queries, and low-level manipulation.

Search:

Query/search elements and files programmatically via the duc.search API.

File I/O:

Read and write .duc files using the duc.parse and duc.serialize modules.

Submodules