Hydra CLI
Project description
Installation
- You must have Docker and Python 3 installed.
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:
- run
hydra setupif needed - run
hydra connect --start- start the server
- open a psql shell
- 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
hydra stopremoves the running container, if one remains.hydra teardownwill confirm removal of the configuration files and the Docker volume, respectively.pip uninstall hydra-cliwill 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57d3b8c8f65c8411a7cc6248d99ede6e11842b1afe60b79a717ec7aeb921d516
|
|
| MD5 |
1ae2eb7e7fc32f5bc5e1a09f12738b56
|
|
| BLAKE2b-256 |
146bf03e0922855966a9aab9accb68b60f0e5b6b327de14c5709cf281899fb9e
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f45433a19a807b05cee807473ba5aec9d049131c9fbc3a96c74dfe737f641d79
|
|
| MD5 |
779c02146c60182b10c9add9aec5a322
|
|
| BLAKE2b-256 |
4e15e64bde5d4aa67a586acdafc292237711cf20bcf8ee9c7fa38634e9905cab
|