Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

specify-core

Add manufacturing intent to a STEP part, and write it as AP242 semantic PMI.

specify-core reads a STEP part, recognises its features (holes with their counterbores and threads, hole patterns, slots, bosses, fillets and turned bodies) and works out what a manufacturer still needs to know: the material, datums, fits, thread classes, hole positions, surface finish and the general tolerance. It asks a question for each gap, with a suggested default and the reason for it. Your answers are written back into the STEP as AP242 semantic PMI (GD&T that CAD and inspection tools can read), and the file is read back to verify it.

It is deterministic: rules and standards tables, no AI. The answers are stored in the file too, so a later revision of the part can be opened and carried on with.

  • No dependencies: no OpenCascade, build123d or quiddity. The engine is Rust, in one wheel.
  • Wheels for Linux (x86_64, aarch64), macOS (Apple silicon, Intel) and Windows, for CPython 3.12 and later.
  • Apache-2.0.

It is the engine behind Draftwright Specify, which adds a 3D review of the same questions in the browser.

Install

pip install specify-core

Python

from specify_core import api

analysis = api.analyse("plate.step")         # features, faces and any existing PMI

for q in api.questions(analysis, {}):         # what is still unknown
    print(q.id, "|", q.prompt, "| default:", q.default)

answers = {"part.material": "6082-T6", "hole.function:holes:9": "fit:H7"}
intent = api.apply(analysis, answers, accept_defaults=True)   # suggested defaults for the rest
report = api.write("plate.step", intent, "plate-pmi.step", answers=answers)

print(report.written)       # ['datum A', 'Ø8 H7 on holes:9', 'position 0.05 on holes:9', ...]
print(report.not_written)   # anything that could not be written, with the reason

Opening the written file again picks up where you left off: api.analyse("plate-pmi.step")["resume"]["answers"] returns the answers stored in it.

The main functions, all in specify_core.api:

Function What it does
parts(step) Lists an assembly's parts.
load(path, part=None) Reads a file once; pass the returned LoadedPart to the others instead of a path.
analyse(step, part=None) Recognises features and reads existing PMI. Returns the analysis (a dict).
questions(analysis, answers) The questions, given the answers so far (Question objects).
apply(analysis, answers, accept_defaults=False) Turns answers into the intent to write. Raises IncompleteError naming what is still missing, unless defaults are accepted.
preview(analysis, answers) The intent the answers so far would give, without requiring every answer.
write(step, intent, output, answers=None) Writes the PMI (and the answers) and verifies the file. Returns a WriteReport.
write_parts(step, intents, output) The same for several parts of an assembly, in one file.
mesh(step, part=None) Triangles grouped by face index, for showing the part and picking faces.

Answers are a dict of question id to value, e.g. {"part.material": "6082-T6"}. Requirements no question asked for (a flatness, a fit, a finish on faces you choose) are added as extra.* answers.

Command line

specify-core analyse plate.step -o plate.analysis.json
specify-core questions plate.analysis.json --open                # unanswered questions, as JSON
echo '{"part.material": "6082-T6"}' > answers.json
specify-core write plate.step plate.analysis.json answers.json --accept-defaults -o plate-pmi.step

specify-core parts lists an assembly's parts and --part picks one; write takes an analysis and answers pair for each part to write together. specify-core mesh writes the face-indexed triangles.

For a host program

specify-core serve answers JSON requests, one per line, on stdin and stdout. Each request carries everything it needs, so a restarted process loses nothing. This is how an application drives it as a child process:

{"id": 1, "op": "analyse", "step": "/path/part.step"}
{"id": 2, "op": "questions", "analysis": {...}, "answers": {...}}
{"id": 3, "op": "write", "step": "/path/part.step", "output": "/path/out.step", "analysis": {...}, "answers": {...}, "accept_defaults": true}

Each reply is {"id", "ok": true, "result"} or {"id", "ok": false, "error": {"code", "message"}}, where the code is incomplete (with what is missing), invalid or failed. analyse replies with the analysis and the mesh; write with the report and the intent. specify_core.serve.reply(request) answers the same requests in-process.

What it writes

AP242 semantic PMI: datums and datum systems, size dimensions with ± and fit tolerances, location dimensions, position, flatness, perpendicularity, parallelism, profile and runout tolerances, threads, knurls, surface texture, material, notes and the general tolerance. Every file is read back and checked before it is kept.

Status: early (0.x). The JSON formats may change between minor versions; changes are listed in the changelog. Draftwright® is a registered trade mark of Betwixt Ltd.

Metadata

Release files for specify-core 0.1.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

Source distribution for specify-core 0.1.6
File Size Uploaded Provenance Actions
specify_core-0.1.6.tar.gz 13.2 MB With provenance Details for specify_core-0.1.6.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for specify-core 0.1.6
File Actions
specify_core-0.1.6-cp312-abi3-win_amd64.whl CPython 3.12 abi3 Windows x86-64 Details for specify_core-0.1.6-cp312-abi3-win_amd64.whl
specify_core-0.1.6-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for specify_core-0.1.6-cp312-abi3-manylinux_2_28_x86_64.whl
specify_core-0.1.6-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for specify_core-0.1.6-cp312-abi3-manylinux_2_28_aarch64.whl
specify_core-0.1.6-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for specify_core-0.1.6-cp312-abi3-macosx_11_0_arm64.whl
specify_core-0.1.6-cp312-abi3-macosx_10_12_x86_64.whl CPython 3.12 abi3 macOS 10.12+ x86-64 Details for specify_core-0.1.6-cp312-abi3-macosx_10_12_x86_64.whl

Total release size: 52.2 MB

Release files / specify_core-0.1.6.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL specify_core-0.1.6.tar.gz
Size 13.2 MB
Tags Source
SHA-256 checksum
How to use checksums
08d941d6dbff6d8946bf20c9bd8d9b28d2c25507b10c09518b0d431299cf8c2e
BLAKE2b-256 checksum
How to use checksums
3c5218f0a95853b02550534c2f981a028add664a3b4fd629a5400431f4a1f95d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / specify_core-0.1.6-cp312-abi3-win_amd64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL specify_core-0.1.6-cp312-abi3-win_amd64.whl
Size 8.2 MB
Tags CPython 3.12 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
d5300832223a4c0e2b521e6244d4a5b80bb038ed6983d5cf23587769e4f7efed
BLAKE2b-256 checksum
How to use checksums
9fd0c2ce2f42dc5494c0e09a5ec7d06821055e5f5962d052e2ccaa53c4be9835
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / specify_core-0.1.6-cp312-abi3-manylinux_2_28_x86_64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL specify_core-0.1.6-cp312-abi3-manylinux_2_28_x86_64.whl
Size 8.3 MB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
c9c48c8b2bb1db0637dab19dbdd08643e6aac10b49c6effd80581e3b91a7a8f9
BLAKE2b-256 checksum
How to use checksums
34c3797f0fc74017b0a0cbe9cd4db9b33496db8073c7e632d3a993b54c80b147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / specify_core-0.1.6-cp312-abi3-manylinux_2_28_aarch64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL specify_core-0.1.6-cp312-abi3-manylinux_2_28_aarch64.whl
Size 7.5 MB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1880bc9d3e02f3f0d4d312cea2195c0cc34f926974b4bb3996fcf54e313bcd00
BLAKE2b-256 checksum
How to use checksums
2827c9ca711c505b0d49d7782ebd0a31448ce6bec92493c282b46db1cae4bfdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / specify_core-0.1.6-cp312-abi3-macosx_11_0_arm64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL specify_core-0.1.6-cp312-abi3-macosx_11_0_arm64.whl
Size 7.3 MB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
64bb37c218ee66d6b9c31ff08cc471772c792c645eea1b2c2f3526506e59f954
BLAKE2b-256 checksum
How to use checksums
a65bee8a2015e8de8ef251111bce26dc19a0ce967240b01aa8fa1d577c870a80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Release files / specify_core-0.1.6-cp312-abi3-macosx_10_12_x86_64.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL specify_core-0.1.6-cp312-abi3-macosx_10_12_x86_64.whl
Size 7.8 MB
Tags CPython 3.12 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
97b24647e5f928ddbbde9ede985d8d963bff2022d48199b520b46e021aab0c59
BLAKE2b-256 checksum
How to use checksums
5c1ab65ba55e667eaeedc1e9e2915da269e0b9dc3463e7b556ac168b5de7caa2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

Security for specify-core 0.1.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Change of provenance

The repository and configuration that created this release differ from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 6 files

Attestation for specify_core-0.1.6.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page