AI-powered platform for extracting and analyzing data from technical drawings / CAD drawings to enhance manufacturing workflows.
Project description
Werk24 Python Client
Unlock manufacturing intelligence from technical drawings with AI.
Table of Contents
- Overview
- Why Werk24?
- Features
- Applications
- Installation
- Dependency Management
- Quick Start
- Documentation
- Community & Support
- Contributing
- License
Overview
Werk24 provides AI-powered solutions for extracting and interpreting technical drawings. This Python client enables easy interaction with the Werk24 API for processing technical drawings efficiently. The API gives you access to the following structured data:
- Meta Data: Drawing ID, Part ID, Designation, General Tolerances, General Roughness, Material, Weight, Bill of Material, Revision Table, Languages and Notes.
- Features: Dimensions incl. Tolerances, Threads, Bores, Chamfers, Roughnesses, GDnTs, Radii.
- Insights: Manufacturing Method, Postprocesses, Input Geometry, Output Geometry.
- Redaction: Redact information from Technical Drawings.
๐ Visit werk24.io to learn more or request a demo.
Why Werk24?
- Accelerate Quoting โ Generate prices from 2D drawings in seconds.
- Reduce Manual Entry โ Automatically capture metadata and dimensions.
- Speed Up Supplier Scouting โ Match drawings with capable vendors.
- Protect IP โ Anonymize sensitive details before sharing.
- Boost Productivity โ Let engineers focus on design, not data extraction.
Features
- Automated Extraction: Retrieve metadata, dimensions, and annotations from technical drawings.
- Fast Processing: Optimized API calls for efficient inference.
- Seamless Integration: Works with Python-based workflows for manufacturing, CAD, and ERP systems.
- JSON Output: Standardized response format for easy processing.
Applications
Harness Werk24 for:
- Instant Pricing: Automate 2D drawing-based quoting.
- Feasibility Checks: Evaluate RFQs efficiently.
- Configurator Auto-Fill: Populate online configurators with minimal input.
- Drawing Anonymization: Protect sensitive data in technical drawings.
- Supplier Scouting: Automate vendor selection for specific requirements.
- ERP Registration: Streamline incoming RFQ registrations.
- Structured Archiving: Organize drawings with metadata extraction.
Installation
Pip installation
pip install werk24 # install the library
werk24 init # obtain a trial license
Dependency Management
Overview
The werk24 library uses a flexible dependency management strategy designed to minimize conflicts with other packages in your environment. We specify minimum versions for dependencies based on required features and security fixes, but avoid restrictive upper bounds that can cause installation conflicts.
Why Minimum Versions?
Each minimum version requirement exists for a specific reason:
- Security Fixes: Dependencies like
cryptography>=44.0.0require minimum versions that include critical security patches - Required Features: Some dependencies introduced features we rely on in specific versions
- API Stability: Minimum versions ensure the APIs we use are available and stable
Philosophy
We follow these principles:
- Trust Semantic Versioning: For dependencies that follow SemVer, we trust that minor and patch updates won't break compatibility
- No Restrictive Upper Bounds: We avoid upper bounds (like
<=X.Y.Z) on stable dependencies to prevent blocking your other packages - Surgical Exclusions: If a specific version has issues, we exclude only that version using
!=X.Y.Zrather than blocking all future versions - Tested Configurations: We maintain
requirements.txtwith exact versions we've tested, but your environment can use compatible newer versions
Troubleshooting Dependency Conflicts
If you encounter dependency conflicts during installation:
- Check Your Environment: Use
pip listto see what's already installed - Update pip: Ensure you're using a recent version:
pip install --upgrade pip - Use Virtual Environments: Always install in a clean virtual environment to avoid conflicts
- Review Conflict Messages: pip will show which packages have incompatible requirements
- Report Issues: If werk24's requirements conflict with popular packages, please open an issue
Common Scenarios
Installing alongside other packages:
# werk24 works well with other packages
pip install werk24 requests pandas numpy
Upgrading from older versions:
# Simply upgrade to the latest version
pip install --upgrade werk24
Checking installed versions:
# See what versions are actually installed
pip show werk24
pip list | grep -E "(cryptography|pydantic|websockets)"
Quick Start
Here's how you can use the Werk24 client to extract data from a technical drawing:
import asyncio
from werk24 import Werk24Client, AskMetaData, get_test_drawing
async def read_drawing(asks):
fid = get_test_drawing()
async with Werk24Client() as client:
return [msg async for msg in client.read_drawing(fid, asks)]
asyncio.run(read_drawing([AskMetaData()]))
Documentation
See https://werk24.io/docs/index.html
CLI
To get a first impression, you can run the CLI:
$> werk24 --help
Usage: python -m werk24.cli.werk24 [OPTIONS] COMMAND [ARGS]...
โญโ Options โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ --log-level TEXT Set the log level [default: WARNING] โ
โ --install-completion Install completion for the current shell. โ
โ --show-completion Show completion for the current shell, to copy it or... |
โ --help Show this message and exit. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
โญโ Commands โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ init Initialize Werk24 by providing or creating a license. โ
โ health-check Run a comprehensive health check for the CLI. โ
โ techread Read a drawing file and extract information. โ
โ version Print the version of the Client. โ
โ status Fetch and display the Werk24 system status. โ
โฐโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
Community & Support
- Website: werk24.io
- Email: info@werk24.io
- LinkedIn: Werk24
Have questions? Request a demo or open an issue and weโll be happy to help.
Contributing
We welcome contributions that improve the client or documentation.
- Fork the repository and create a new branch.
- Make your changes and ensure tests pass with
pytest. - Open a pull request describing your changes.
See CONTRIBUTING.md for more details.
License
The Werk24 Python Client requires a commercial Werk24 license to use. See LICENSE.txt for terms and conditions.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file werk24-2.4.0.tar.gz.
File metadata
- Download URL: werk24-2.4.0.tar.gz
- Upload date:
- Size: 141.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
18e26dcaae7b4282e668e3501326b7f8fe2fb9a81bf9f08220e8f620b63d8a3f
|
|
| MD5 |
d29b7c5b14c83a5b2a22e338d829de07
|
|
| BLAKE2b-256 |
1f5ea35eb4e450bdec2bb6d8e6a65c5d5be4f45f66498869f8c1231a92a2d979
|
File details
Details for the file werk24-2.4.0-py3-none-any.whl.
File metadata
- Download URL: werk24-2.4.0-py3-none-any.whl
- Upload date:
- Size: 147.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ce3e0b20908e7cc6ba6e73b2696ffafc74315f08c4360b5c4828ce7b727ba06d
|
|
| MD5 |
6b77c68bd74f7d66b9712720c9c9649d
|
|
| BLAKE2b-256 |
b316b80cd5b03587570fb944a1111890776408a0f67a41118fd32713e5ef99dc
|