Skip to main content

IDEAS Python

This package provides a python API and a CLI to interact with the IDEAS platform.

  1. Installation
  2. Running
  3. Configuration
  4. Shell completion

Installation

Requirements:

  • python >= 3.11

Installing

The recommended way to install IDEAS Python is with pip in a virtualenv:

python3 -m venv venv
pip install ideas-python

Running

Installing adds the ideas command to the virtualenv. You can either run it directly from the virtualenv with venv/bin/ideas, or symlink it to a directory in your shell's PATH variable:

# by activating the virtualenv
source venv/bin/activate
# OR, manually
ln -sf $(pwd)/venv/bin/ideas ~/.local/bin/ideas

Note on Windows: For windows, run these commands instead in a git-bash to make ideas available in your path:

mkdir -p ~/.local/bin && touch ~/.bash_profile && echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bash_profile && source ~/.bash_profile
ln -sf $(pwd)/venv/Scripts/ideas.exe ~/.local/bin/ideas.exe

Now you can run the CLI directly:

ideas

Configuration

As ideas interfaces with the IDEAS platform, it must authenticate, and we provide two ways to do so: through CLI parameters (like --username), or through a configuration wizard.

Configuration wizard

ideas offers a handy shortcut to edit your configuration interactively:

ideas configure

You will be asked for:

  • Which region are you in: this corresponds to which region you specified as your home region when you signed up for your IDEAS account.
  • Your credentials: use the email address and password you sign into IDEAS with.
  • [Optional] You may be asked which tenant you would like to use, if you belong to multiple tenants.

You may call ideas configure again at any point to change these values.

Configuring and using profiles

It is possible also to configure multiple profiles, with arbitrary names. This could be for accessing different regions, using separate accounts, or selecting another tenant ID.

ideas --profile us configure
ideas --profile jp configure

A given profile can then be used by specifying the profile:

ideas --profile jp tenants

Configuring through arguments

Alternatively, you can configure ideas through arguments. If no configuration file exists, ideas will exclusively use arguments. If you have a configuration file, these arguments will override the file:

CLI argument Config file name Description
-e/--env env Which environment to use. List supported environments with ideas environments.
-u/--username username Your IDEAS username/email address.
-p/--password password The password you log into IDEAS with.
-t/--tenant-id tenant_id The numerical ID of the tenant you want to use. List your tenants with ideas tenants.

Shell completion

You can optionally enable shell completion for the ideas command. We provide tab completion support for Bash (version 4.4 and up), Zsh, and Fish shells.

Bash

# Save the script somewhere
_IDEAS_COMPLETE=bash_source ideas > ~/.ideas-complete.bash

# Source the file in ~/.bashrc
. ~/.ideas-complete.bash

Zsh

# Save the script somewhere.
_IDEAS_COMPLETE=zsh_source ideas > ~/.ideas-complete.zsh

# Source the file in ~/.zshrc.
. ~/.ideas-complete.zsh

Fish

# Save the script to ~/.config/fish/completions/ideas.fish:
_IDEAS_COMPLETE=fish_source ideas > ~/.config/fish/completions/ideas.fish

After modifying the shell config, you need to start a new shell in order for the changes to be loaded.

Metadata

Release files for ideas-python 1.3.2

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

Built distribution (wheel)

Table of built distributions (wheels) for ideas-python 1.3.2
File Interpreter ABI Platform
ideas_python-1.3.2-py3-none-any.whl Python 3 none any Details

Release files / ideas_python-1.3.2-py3-none-any.whl

Download URL ideas_python-1.3.2-py3-none-any.whl
Size 134.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
777959e9b72765d234426e20c36d9e022f248ed0ff6abf392c51a24921b4f13d
BLAKE2b-256 checksum
How to use checksums
6710403238796c49b0ab12f6d9784b1ca897c54bf0ffcbf5e8d444eaf7edc86d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.17 {"installer":{"name":"uv","version":"0.9.17","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

1.3.2 This release

1 release file

1.3.1

1 release file

1.3.0

1 release file

1.2.0

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

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