Metadata-Version: 2.5
Name: unicad-kit
Version: 0.1.0.576
Summary: Fully parametric CAD file interchange
Project-URL: Repository, https://github.com/TryUniCAD/Kit
Project-URL: Issues, https://github.com/TryUniCAD/Kit/issues
Author: Odin Glynn-Martin, Stephen Harcourt, James Harcourt
License-Expression: MIT
License-File: LICENSE
License-File: src/convert/adapters/solidworks/Container/OpenSwxLicense.md
Keywords: assembly,brep,cad,geometry,interchange,mesh,sdk,translation
Requires-Python: >=3.11
Provides-Extra: dev
Requires-Dist: black==26.10.1; extra == 'dev'
Requires-Dist: pytest-reportlog==1.0.0; extra == 'dev'
Requires-Dist: pytest-xdist==3.8.0; extra == 'dev'
Requires-Dist: pytest==9.1.1; extra == 'dev'
Requires-Dist: pywin32==312; (sys_platform == 'win32') and extra == 'dev'
Requires-Dist: typing-extensions>=4.12; extra == 'dev'
Description-Content-Type: text/markdown

# Kit

Kit is a Python SDK for CAD interchange.
Readers build a neutral `CadDocument` from source files.
Writers produce target files and report how they represented the source information.
Production conversion runs without requiring CAD software.

[Wiki](https://github.com/TryUniCAD/Kit/wiki)

## Start here

1. Read the [installation guide](Documentation/Tasks/Install.md).
2. Select a [registered format](Documentation/Tasks/SelectFormat.md).
3. Follow the [conversion procedure](Documentation/Tasks/ConvertDocument.md).
4. Evaluate the [result and acceptance evidence](Documentation/Tasks/InspectResult.md).

The [documentation index](Documentation/Index.md) includes API, model, adapter, research, and maintenance references.
The [standards scope](Documentation/Standards/Scope.md) identifies the writing rules and current conformance limits.
The [completion roadmap](Roadmap.md) describes the path to full conversion support.
Use the [conversion backlog](Documentation/Maintenance/ConversionBacklog.md) to find task ownership, dependencies and existing PRs.

## Formats and limits

| Format               | Suffixes                  | Registration      |
| -------------------- | ------------------------- | ----------------- |
| SOLIDWORKS part      | `.SLDPRT`                 | Reader and writer |
| SOLIDWORKS assembly  | `.SLDASM`                 | Reader            |
| FreeCAD              | `.FCStd`                  | Reader and writer |
| CATIA V5             | `.CATPart`, `.CATProduct` | Reader and writer |
| Kit interchange JSON | `.json`                   | Reader and writer |
| Autodesk Fusion      | `.f3d`                    | Reader and writer |

Registration does not establish complete feature coverage or lossless translation.
Native replay and carrier preservation have different meanings from editable cross-format output.
Check the format reference and result for each input.
The SOLIDWORKS part writer generates one editable Front-plane line-loop blind boss
from a qualified neutral document. [Writer scope](Documentation/Reference/Adapters/Solidworks.md#writing)
The [Fusion public adapter](Documentation/Changes/Fusion/Adapter/FusionPublicAdapter.md) reads and writes qualified parameter, circle, rectangle, cylinder, cuboid, and frustum documents. Arbitrary feature graphs remain unsupported; `strict=False` explicitly selects the earlier partial reader.

## Command line

Open the Kit repository directory, then install the CLI from that directory:

```sh
cd Kit
uv tool install .
```

Supply a real `model.f3d` input file and an unused destination before running:

```sh
kit formats
kit convert model.f3d model.json
kit decode model.f3d --layer container
```

The CLI uses strict reading and applies the output policy.
It does not establish complete format coverage or target-application acceptance.
See [command-line usage](Documentation/Tasks/CommandLine.md) for setup, developer views, and limits.
Use [deterministic research commands](Documentation/Tasks/ResearchCommandLine.md) with PR #94's checkout for pinned decoding and evidence receipts.

## Conversion example

Call `convert(source, destination)` with the input and output paths.
Supply a real `bracket.SLDPRT` file and an unused output path before running this example.

```python
from convert import convert as ConvertDoc

Result = ConvertDoc("bracket.SLDPRT", "bracket.FCStd", allow_carrier=False)
```

Install [`unicad-kit`](#distribution) in the Python environment that runs your script.
The public import is `convert`.
The default `allow_carrier=True` permits preservation results subject to the registry policy.
Set `allow_carrier=False` for conversion acceptance work.
This option is independent of the reader's `strict` option.
The default does not waive the repository's lossless and parametric acceptance requirements.

A successful return reports writer evidence.
It does not prove that a target application can open, edit, and rebuild the output.
See [result evaluation](Documentation/Tasks/InspectResult.md) before making an acceptance claim.

## Architecture

```mermaid
flowchart LR
    Source[Source file] --> Reader[Reader adapter]
    Reader --> Model[CadDocument]
    Model --> Writer[Writer adapter]
    Writer --> Output[Output and attestation]
```

The neutral document separates readers from writers.
Vendor applications run only in isolated validation workflows after output generation.

## Contribute

Activate [standard-pr-practice](.agents/skills/standard-pr-practice/SKILL.md) before repository work.
Use an isolated worktree and a separate PR.
Add a [change entry](Documentation/Changes/Index.md) for each repository addition.
Record each new discovery as a separate [gotcha](Documentation/Gotchas/README.md).
Run tests only in remote CI.

Core contributors: Odin Glynn-Martin, Stephen Harcourt, and James Harcourt.

## Star history

[![Kit star history](https://api.star-history.com/svg?repos=TryUniCAD/Kit&type=Date)](https://www.star-history.com/#TryUniCAD/Kit&Date)

## Distribution

Use the SDK in your Python project.

Use Python 3.11 or later.
Activate your project's virtual environment and install Kit from PyPI.

```sh
pip install unicad-kit
```

If no release is available, follow [repository installation](Documentation/Tasks/Install.md).
See [getting started](Documentation/GettingStarted.md) for uv project setup and output limits.
See [release publishing](Documentation/Changes/CommitReleases.md) for the release process.

## License

Kit uses the [MIT License](LICENSE).
Copyright (c) 2026 Odin Glynn-Martin, Stephen Harcourt, James Harcourt.
Third-party materials retain their own licenses.
See the [research artifact policy](Documentation/Reference/Research/ResearchArtifacts.md).
