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:
- https://jeroenjanssens.com/dsatcl/chapter-5-scrubbing-data
- https://jeroenjanssens.com/dsatcl/chapter-7-exploring-data
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_TOKENenvironment variable by replacing theTOKENvalue below with your token.
export TECHTONIQUE_API_TOKEN=TOKEN
- put the token in a
.envfile in the current directory, asTECHTONIQUE_API_TOKEN=TOKEN.
All the datasets used in the examples below are available in Techtonique/datasets repository.
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_TOKENenvironment variable by replacing theTOKENvalue below with your token.
export TECHTONIQUE_API_TOKEN=TOKEN
- put the token in a
.envfile 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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| techtonique_cli-0.3.1.tar.gz | 7.2 kB | Without provenance | Details for techtonique_cli-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| techtonique_cli-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for techtonique_cli-0.3.1-py3-none-any.whl |
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
|
Security for techtonique-cli 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.