Install
One package per language. Python and TypeScript have no runtime dependencies.
Before the 2.1.0 release: until the packages are on PyPI, npm and Maven Central, install them from GitHub: pip install git+https://github.com/jdogo-dev/jdogo-python, npm install github:jdogo-dev/jdogo-js, and build the Java modules from a clone of jdogo-java as shown below.
Python
Needs Python 3.9 or newer. pandas is optional and only used by the DataFrame helpers.
pip install jdogo python -c "import jdogo; print(jdogo.__version__)"
TypeScript and Node
Works in Node and in bundlers. Ships with type definitions.
npm install jdogo
import { stringify, parse } from "jdogo";Java
Needs Java 17 or newer. Until the release is on Maven Central, build the modules once into your local Maven repository:
git clone --recurse-submodules https://github.com/jdogo-dev/jdogo-java.git cd jdogo-java mvn -q install -DskipTests
<dependency> <groupId>dev.jdogo</groupId> <artifactId>jdogo-core</artifactId> <version>2.1.0</version> </dependency>
Add jdogo-optimizer (same group and version) for the prompt builder and ask(). Integration modules are listed under Integrations.
Command line
Installing the Python or Node package also installs a jdogo command. The Java CLI is a single jar:
# in the jdogo-java clone mvn -q package -pl jdogo-cli -am -DskipTests java -jar jdogo-cli/target/jdogo-cli-2.1.0.jar help
Next: Quick start.