Skip to content

cinode-client 0.3.0

Choose a tag to compare

@fredrik fredrik released this 24 Sep 20:57
· 13 commits to main since this release
7060bde

Credentials set up once: cinode init saves them to a private credentials
file, which the CLI and the library read when the environment has none.

  • Breaking: Cinode.from_env() is removed; use Cinode(), which reads
    the environment whenever no credentials are passed.
  • Credentials file: Cinode() and the CLI read access_id and
    access_secret from ~/.config/cinode/credentials.toml (or
    $XDG_CONFIG_HOME/cinode/credentials.toml, or $CINODE_CREDENTIALS_FILE)
    when the environment holds no credentials. The environment wins as a whole.
  • cinode init checks credentials with whoami() and saves them to the
    credentials file, created with mode 0600 and written atomically. It takes
    them from prompts on a terminal, from --access-id and the first line of
    stdin otherwise, or from the environment with --from-env.
  • cinode config show reports where the credentials in use come from,
    and the credentials file's path, existence and permissions, without a
    network call.

Install

uv tool install https://github.com/knowit-solutions-cocreate/cinode-client/releases/download/v0.3.0/cinode_client-0.3.0-py3-none-any.whl

See the README for credentials, the CLI output contract and exit codes.