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 setup
 - asks for token; optional port, username, password
$ hydra start
 - starts service
$ hydra connect
 - connects to service via psql
$ hydra connect --start
 - automatically starts and stops the service around a psql session
$ hydra stop
 - stops service
$ 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.1.tar.gz (7.2 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.1-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hydra_cli-0.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hydra_cli-0.0.1.tar.gz
Algorithm Hash digest
SHA256 57d3b8c8f65c8411a7cc6248d99ede6e11842b1afe60b79a717ec7aeb921d516
MD5 1ae2eb7e7fc32f5bc5e1a09f12738b56
BLAKE2b-256 146bf03e0922855966a9aab9accb68b60f0e5b6b327de14c5709cf281899fb9e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hydra_cli-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for hydra_cli-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f45433a19a807b05cee807473ba5aec9d049131c9fbc3a96c74dfe737f641d79
MD5 779c02146c60182b10c9add9aec5a322
BLAKE2b-256 4e15e64bde5d4aa67a586acdafc292237711cf20bcf8ee9c7fa38634e9905cab

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