Electric Data command line interface utility.
Project description
Electric Data CLI
The Electric Data CLI is the command line interface utility for the Electric Data geo-distributed database hosting service. It’s developed in Python and the code is published under the MIT License at github.com/electric-data/electric-cli.
Develop
You can install the CLI for local development by installing the dependencies into a Python3 environment and developing the egg:
pip install -r requirements.txt
python setup.py develop
This will install a electric binary in your local Python environment’s bin folder. You can check that this is on your path with e.g.:
which electric
Build
If you want to build standalone binaries, you first need to install the extra development requirements:
pip install -r dev-requirements.txt
Then you can build a Pex executable using:
python setup.py bdist_pex --bdist-all
This will create a ./dist/electric binary which you can copy and run anywhere on your system.
Alternatively, you can build a standalone binary with an embedded Python interpretor using PyOxidizer:
pyoxidizer run
This will create a binary at ./build/:target/debug/install/electric that you can run on any machine with the same architecture and OS as your build machine.
Usage
Run the electric command without arguments or with the --help flag for usage information:
electric --help
You can drill down into usage information for the resources / command groups and for individual commands, e.g.:
electric auth --help
electric auth login --help
Further documentation is available on the Electric Data website.
Test
Running the tests requires nose and coverage, included in the dev-requirements.txt.
Then, run e.g.:
nosetests --with-coverage --cover-package electric
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
File details
Details for the file electric-data-cli-0.0.3.tar.gz
.
File metadata
- Download URL: electric-data-cli-0.0.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e81feaeb4673c21d5a189272e2b96232ac438a25bec83c459a4fd2e2993a5d9 |
|
MD5 | 0a046c7d4af0b56b7537d7167b29b7b7 |
|
BLAKE2b-256 | 19f697d559b164a62f7b92588c75b25418088b37b261e907f4aac065115c5256 |