Skip to content

Commit f8884ba

Browse files
committed
code review + package rust cli tool with python
1 parent 622d9f9 commit f8884ba

File tree

16 files changed

+1016
-1119
lines changed

16 files changed

+1016
-1119
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ zstd = "0.13"
4141
rdf5d = { version = "0.4.0-a9", path = "rdf5d", features = ["oxigraph", "zstd"] }
4242

4343
ontoenv = { version = "0.4.0-a9", path = "lib" }
44+
ontoenv-cli = { version = "0.4.0-a9", path = "cli" }
4445

4546
[profile.profiling]
4647
inherits = "release"

README.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ Ontologies fetched from a URL often declare a different, usually versioned, onto
4747

4848
- Install from crates.io with `cargo install --locked ontoenv-cli`
4949
- From a local checkout, run `cargo install --path cli --locked` to build the current workspace
50+
- Install via PyPI with `pip install pyontoenv` to get the CLI together with the Python bindings
5051
- Download a binary from the [Releases](https://github.com/gtfierro/ontoenv-rs/releases) tab
5152

5253
### Usage
@@ -222,12 +223,6 @@ with tempfile.TemporaryDirectory() as temp_dir:
222223
- `store_path() -> Optional[str]`: path to `.ontoenv/` (persistent envs) or `None` (temporary)
223224
- `close()`: persist (if applicable) and release resources
224225

225-
### Module command
226-
227-
- `python -m ontoenv.init --help` exposes a Python-only CLI that mirrors the `OntoEnv(...)` constructor flags.
228-
- The launcher always passes `recreate=True`, so pointing it at a persistent path will rebuild the environment before exiting.
229-
- Successful runs print the resolved store path; combine with `--temporary` for in-memory experiments that avoid touching disk.
230-
231226
### Behavior
232227

233228
- Strict Git‑like:

cli/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ repository.workspace = true
99
homepage.workspace = true
1010
build = "build.rs"
1111

12+
[lib]
13+
name = "ontoenv_cli"
14+
path = "src/lib.rs"
15+
doc = false
16+
1217
[[bin]]
1318
name = "ontoenv"
1419
path = "src/main.rs"

0 commit comments

Comments
 (0)