No project description provided
Project description
Acqua
Getting started
You can use acqua
simply by installing via pip
on your Terminal.
pip install acqua
Sample output when running install command
And build required images with build
command. The following shows you how to build a Testnet
Sui Validator node with one-command.
acqua build --mainnet
Sample output when running build command
The initial build may take some time as it is downloading source codes from different repositories
and interfacing with Docker Daemon
to build according to flagged requirements. Once the build process
completes, you can begin deploying local network with peripherals as such:
acqua deploy --mainnet --with-postgres
Sample output when running deploy command
You will have docker containers running in the backend, ready to be interfaced by your local environment applications you are developing.
Dashboard
Acqua not only facilitates the deployment of Bitcoin services such as the Sui Validator node with a PoW relay, but allows you to view Node's Blockchain Information, Mempool Information, Peripheral Details and etc.
In order to view relevant metrics, launch the dashboard using the following command.
acqua dashboard
Sample output when running dashboard command
Contributions
Prerequisites
Set up local environment
The following guide walks through setting up your local working environment using pyenv
as Python version manager and uv
as Python package manager. If you do not have pyenv
installed, run the following command.
Install using Homebrew (Darwin)
brew install pyenv --head
Install using standalone installer (Darwin and Linux)
curl https://pyenv.run | bash
If you do not have uv
installed, run the following command.
Install using Homebrew (Darwin)
brew install uv
Install using standalone installer (Darwin and Linux)
curl -LsSf https://astral.sh/uv/install.sh | sh
Once you have pyenv
Python version manager installed, you can
install any version of Python above version 3.8 for this project.
The following commands help you set up and activate a Python virtual
environment where uv
can download project dependencies from the PyPI
open-sourced registry defined under pyproject.toml
file.
Set up environment and synchronize project dependencies
pyenv shell 3.11.9
uv venv --python-preference system
source .venv/bin/activate
uv sync --dev
Now you have the entire project set-up and ready to be tinkered with. Try out the
standard acqua
command which brings up a help menu.
Launch Acqua Help
$ acqua
> Usage: acqua [OPTIONS] COMMAND [ARGS]...
>
> acqua
>
> Options:
> --help Show this message and exit.
>
> Commands:
> auth Persist authentications in desired run-control file.
> build Build peripheral images for the desired cluster.
> clean Remove all active "acqua-*" containers, drop network.
> dashboard Dashboard for checking current state of images deployed.
> deploy Deploy cluster.
> pull Pull core and peripheral images from GitHub container registry
Known issues
You may run into this setback when first running this project. This is a docker-py issue widely known as of October 2022.
docker.errors.DockerException:
Error while fetching server API version: (
'Connection aborted.', FileNotFoundError(
2, 'No such file or directory'
)
)
See the following issue for Mac OSX troubleshooting. docker from_env and pull is broken on mac Recommended fix is to run the following command:
sudo ln -s "$HOME/.docker/run/docker.sock" /var/run/docker.sock
License
This project is licensed under the terms of the MIT license.
Project details
Release history Release notifications | RSS feed
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
File details
Details for the file acqua-0.1.1.tar.gz
.
File metadata
- Download URL: acqua-0.1.1.tar.gz
- Upload date:
- Size: 774.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45d35a6580e354fe46abf04869767a5ee8550b91a2f51c50389a556c61118fb7 |
|
MD5 | 8c2d1fea62603c065de9cb5c2e63dd96 |
|
BLAKE2b-256 | 5e0866b1a3ac347b80473166b140ee03879265c5ad05ccba7ef2096db9c808d2 |
File details
Details for the file acqua-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: acqua-0.1.1-py3-none-any.whl
- Upload date:
- Size: 24.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.4.18
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 754ecb3d767572ab3cb585b574aca21d2ca1e527b92d1d6c5dc00cdb85b5edc7 |
|
MD5 | 4a7c9f2634ce94f104e8c52ac9dc2a6e |
|
BLAKE2b-256 | 884e434d978e3cf2434b618b3d9f87b278e8fac7fe8fb24b2af2eb97fe953980 |