Skip to main content

Hydra CLI

Project description

Installation

  1. You must have Docker and Python 3 installed.
  2. pip install hydra-cli (or as desired for your preferred Python environment)

Getting Started

Just run hydra and we'll take care of the rest!

$ hydra

This will:

  1. run hydra setup if needed
  2. run hydra connect --start
    1. start the server
    2. open a psql shell
    3. stop the server and cleanup when you exit the shell

To exit the psql shell, use exit, \q or ^D.

Now you're ready to follow our quickstart guide to learn more about serverless analytics with Hydra.

Any data stored in duckdb tables are stored in Hydra's cloud service. Data saved in Postgres (heap) tables will be stored in a local Docker volume and is not persisted to the cloud.

Commands

You can run hydra help for a list of commands, and hydra COMMAND --help to get help about any command.

$ hydra
 - runs setup if necessary, starts service, connects, then stops service
$ hydra setup
 - asks for token; optional port, username, password
$ hydra start
 - starts service
$ hydra stop
 - stops service
$ hydra restart
 - stops then starts the service
$ hydra connect
 - connects to service via psql
$ hydra connect --start
 - automatically starts and stops the service around a psql session
$ hydra config
 - prints stored config info
$ hydra teardown
 - prompts to delete configuration files
 - prompts to delete docker volume
$ hydra help
$ hydra --help
 - prints reference top-level information for the CLI
$ hydra COMMAND --help
 - prints helpful information about the command

Configuration

Configuration is persistent. Once you specify your settings, it will remember what port you used. If would like to change the settings, you can run hydra setup again. You can also change the port number at any time with hydra start.

Configuration files

By default, configuration is saved to hydra-cli in your platform's user data directory:

  • Mac OS X: ~/Library/Application Support/hydra-cli
  • Linux: ~/.local/share/hydra-cli

You can specify a different configuration directory with -C/--config-dir, but you will need to pass this in with every execution.

Uninstalling

  1. hydra stop removes the running container, if one remains.
  2. hydra teardown will confirm removal of the configuration files and the Docker volume, respectively.
  3. pip uninstall hydra-cli will remove the CLI itself.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hydra_cli-0.0.4.tar.gz (7.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hydra_cli-0.0.4-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file hydra_cli-0.0.4.tar.gz.

File metadata

  • Download URL: hydra_cli-0.0.4.tar.gz
  • Upload date:
  • Size: 7.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for hydra_cli-0.0.4.tar.gz
Algorithm Hash digest
SHA256 67a59533c940ca8880ceae0ed57426b000e7a59dd3ca91a1a0353ee20ecec5ce
MD5 52b31e46294d3b60176da3d70605c908
BLAKE2b-256 13cff92c06e3104fc710ac2411320e26336b3b1c3121f824906a8b1ed56a5d21

See more details on using hashes here.

File details

Details for the file hydra_cli-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hydra_cli-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.14

File hashes

Hashes for hydra_cli-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c12ba67d4e7bb3bf4cabbf082d23a3b81b90d2b4a9cea00b45c4c5e04d5a1c
MD5 953485bdfc02ba91fd2b59c659cecae9
BLAKE2b-256 ddf100d5b2fffd99e78aca17d9d5570ec187d502b303ff9ba7c046dc8ee6af36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page