Skip to main content

CLI for Techtonique

This a Command Line Interface (CLI) for Techtonique's API. Working on all operating systems (Windows, MacOS, Linux). You may find these resources useful:

1 - Installation

In a virtual environment, run the following command:

pip install techtonique_cli

First, get a token from techtonique.net/token. If you want to avoid providing a token each time you run the CLI, you can set the TECHTONIQUE_API_TOKEN environment variable (for 60 minutes). That is, either:

  • set the TECHTONIQUE_API_TOKEN environment variable by replacing the TOKEN value below with your token.
export TECHTONIQUE_API_TOKEN=TOKEN
  • put the token in a .env file in the current directory, as TECHTONIQUE_API_TOKEN=TOKEN.

All the datasets used in the examples below are available in Techtonique/datasets repository.

xxx

2 - Examples

2 - 1 - General usage

At the command line, type:

techtonique --help

techtonique forecasting --help

techtonique forecasting univariate --help

techtonique ml --help

techtonique ml classification --help

techtonique reserving --help

techtonique survival --help

#  Univariate forecasting
techtonique forecasting univariate /Users/t/Documents/datasets/time_series/univariate/a10.csv --base_model RidgeCV --h 3

# Multivariate forecasting
techtonique forecasting multivariate /Users/t/Documents/datasets/time_series/multivariate/ice_cream_vs_heater.csv --lags 25 --h 10

# Regression
techtonique ml regression /Users/t/Documents/datasets/tabular/regression/mtcars2.csv --base_model ElasticNet

2 - 2 - Interacting with output files

Then, either:

  • provide the token as a command line argument.
  • set the TECHTONIQUE_API_TOKEN environment variable by replacing the TOKEN value below with your token.
export TECHTONIQUE_API_TOKEN=TOKEN
  • put the token in a .env file in the current directory.

Here's how to export results to a JSON file:

techtonique forecasting univariate /Users/t/Documents/datasets/time_series/univariate/a10.csv --base_model RidgeCV --h 10 > forecast.json

Here's how to export results to a CSV file with selected columns:

techtonique forecasting univariate /Users/t/Documents/datasets/time_series/univariate/a10.csv --base_model RidgeCV --h 10 --select "lower, upper, mean" --to-csv forecast.csv

2 - 3 - Plotting

# Display plot interactively
techtonique forecasting univariate /Users/t/Documents/datasets/time_series/univariate/a10.csv --h 10 --plot

# Create forecast and save plot
techtonique forecasting univariate /Users/t/Documents/datasets/time_series/univariate/a10.csv --h 10 --plot-file forecast.png

Metadata

Release files for techtonique-cli 0.3.1

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

Source distribution (sdist)

Source distribution for techtonique-cli 0.3.1
File Size Uploaded
techtonique_cli-0.3.1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for techtonique-cli 0.3.1
File Interpreter ABI Platform
techtonique_cli-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.7 kB

Release files / techtonique_cli-0.3.1.tar.gz

Download URL techtonique_cli-0.3.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
cb7b425c24c901b26edc62ff22744c61ded0de562e18f7092884622ce8a1524f
BLAKE2b-256 checksum
How to use checksums
e6b741efcc0dd2f56700420817601e2bcad4f0c307a64144b98e7c57093f2429
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release files / techtonique_cli-0.3.1-py3-none-any.whl

Download URL techtonique_cli-0.3.1-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36be0286ef1a956c44f474141de4ac8d215152f7d9ae4d2196ac2275da2731cd
BLAKE2b-256 checksum
How to use checksums
64ee5fda1dcc69b21e467be5714233fd310ee6e4569240357e58892780b3d02e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.9

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

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