electric-db-cli-0.0.3
توضیحات
Electric DB command line interface utility.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | electric-db-cli-0.0.3 |
| نام | electric-db-cli |
| نسخه کتابخانه | 0.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Electric DB |
| ایمیل نویسنده | info@electricdb.net |
| آدرس صفحه اصلی | https://github.com/electric-db/electric-cli |
| آدرس اینترنتی | https://pypi.org/project/electric-db-cli/ |
| مجوز | MIT |

[](LICENSE.md)
[](https://circleci.com/gh/electric-db/electric-cli/tree/main)
# Electric DB CLI
The Electric DB CLI is the command line interface utility for the [Electric DB](https://electricdb.net) geo-distributed database hosting service. It's developed in Python and the code is published under the [MIT License](https://github.com/electric-db/electric-cli/blob/master/LICENSE) at [github.com/electric-db/electric-cli](https://github.com/electric-db/electric-cli).
## Develop
You can install the CLI for local development by installing the dependencies into a Python3 environment and developing the egg:
```sh
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.:
```sh
which electric
```
## Build
If you want to build standalone binaries, you first need to install the extra development requirements:
```sh
pip install -r dev-requirements.txt
```
Then you can build a [Pex](https://pex.readthedocs.io) executable using:
```sh
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](https://pyoxidizer.readthedocs.io):
```sh
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:
```sh
electric --help
```
You can drill down into usage information for the resources / command groups and for individual commands, e.g.:
```sh
electric auth --help
electric auth login --help
```
Further [documentation is available on the Electric DB website](https://electricdb.net/docs).
## Test
Running the tests requires `nose` and `coverage`, included in the `dev-requirements.txt`.
Then, run e.g.:
```sh
nosetests --with-coverage --cover-package electric
```
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl electric-db-cli-0.0.3:
pip install electric-db-cli-0.0.3.whl
نصب پکیج tar.gz electric-db-cli-0.0.3:
pip install electric-db-cli-0.0.3.tar.gz