Python client library and CLI for Smooth Core (CNC tool-data sync).
Project description
loobric-smooth
Python client for Smooth Core — the library and CLI for synchronizing CNC tool data. It speaks only the public REST API and depends on nothing from the server.
Status: extraction in progress. The importable library (
smooth_client.Client) and thesmoothCLI are here, ported from the old single-fileloobric.py. Format importers and removing the old client fromsmooth-coreare next. See docs/adr/0001-extract-loobric-smooth.md.
Install
pip install loobric-smooth # library + CLI (stdlib only, no deps)
pip install "loobric-smooth[importers]" # + format importers (DIN4000/GTC/P21/...)
Library
from smooth_client import Client, NotFound
c = Client(base_url="http://nas:8000", api_key="...") # solo mode: omit api_key
for s in c.list_tool_sets():
print(s)
Every method returns parsed data and raises a SmoothClientError subclass
(NotFound, AuthRequired, HTTPError, ConnectionFailed) on failure — it
never prints or exits, so callers handle failure themselves.
CLI
smooth <verb> is the universal command-line client (the role the old loobric
command served). See the CLI reference and walkthrough.
smooth --help
smooth list-machines
smooth create-record --from-catalog B201 --name "1/4 downcut"
License
MIT. (The server, Smooth Core, is AGPL-3.0; this client is MIT so it can be freely vendored and reused.)
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
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 loobric_smooth-0.1.0.tar.gz.
File metadata
- Download URL: loobric_smooth-0.1.0.tar.gz
- Upload date:
- Size: 33.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2afce42a6496ddd0eb34b91e10befba312ce859e40dec4da36c44ac1e8d36247
|
|
| MD5 |
0820655aa8a9c86e48ba33fb6bf1af19
|
|
| BLAKE2b-256 |
5130a4a7630f3cc245c8461822ffe43311dca5fd1b6964c2d6d157d019b1f0cc
|
File details
Details for the file loobric_smooth-0.1.0-py3-none-any.whl.
File metadata
- Download URL: loobric_smooth-0.1.0-py3-none-any.whl
- Upload date:
- Size: 28.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cdc2cdbac9d7cc7f5e766fd15541233fa59432afca27877e410680c3dc8bf024
|
|
| MD5 |
90b737a91596c6cfd9be525b71faaf44
|
|
| BLAKE2b-256 |
6531bae112da177e24b1d1182bd595461afeba41d65a4123d1e0d9a41b6c0b4b
|