semvec/pypi-packages huggingface dataset:
syntropycli 0.3.0
Syntropy Universal Command Line Interface
License: MIT
Requires Python: >=3.6

![Tests](https://github.com/SyntropyNet/syntropy-cli/workflows/Tests/badge.svg)
![PyPi](https://github.com/SyntropyNet/syntropy-cli/workflows/PyPi/badge.svg)

# Syntropy CLI
Syntropy CLI allows you to manage Syntropy endpoints and connections using command line interface. 

More information can be found at https://docs.syntropystack.com/docs/syntropyctl

## Requirements.

Python 3.7+

## Installation & Usage
### pip install

The latest package can be installed from PyPi:

```sh
pip install syntropycli
```

## Command line usage

In order to be able to perform operations with platform API keys, connections or endpoints you can use `syntropyctl` utility.
First you must set proper environment variables:

```sh
$ export SYNTROPY_API_SERVER={Syntropy Stack API URL}
$ export SYNTROPY_API_TOKEN={API authorization token}
```

The API authorization token can be retrieved from the Syntropy Stack.

You can learn about the types of actions this utility can perform by running:

```sh
$ syntropyctl --help
Usage: syntropyctl [OPTIONS] COMMAND [ARGS]...

  Syntropy Networks cli tool

Options:
  --help  Show this message and exit.

Commands:
  configure-endpoints       Configures an endpoint with provided provider,...
  create-api-key            Create a API key.
  create-connections        Create connections between endpoints.
  delete-api-key            Delete API key either by name or by id.
  delete-connection         Delete a connection.
  get-api-keys              List all API keys.
  get-connections           Retrieves connections.
  get-endpoints             List all endpoints.
  get-providers             Retrieve a list of endpoint providers.
```
python-color-getter 0.0.1
Python color getter (including method to get random color or complementary color)
License: MIT


# python-color-getter
Python color getter (including method to get random color or complementary color)

## Setup
`python -m pip install python-color-getter`

## Method Overview
* ```get_random_color() -> tuple```
* ```get_color_from_stylesheet(code: str) -> None```
* ```get_complementary_color(r: int, g: int, b: int) -> tuple```
* ```rgb_to_hex(r: int, g: int, b: int, digit_cnt: int = 6) -> str``` - Argument ```digit_cnt``` is digit count of hex color user want to get.  The value of ```digit_cnt``` should be 3 or 6. It is set to 6 by default.
* ```hex_to_rgb(hex: str) -> tuple``` - Argument ```hex``` should be 3 or 6 digit hex colors like #DDD, #ABABAB.
* ```lighter(r: int, g: int, b: int) -> tuple```
* ```darker(r: int, g: int, b: int) -> tuple```

## Example
Code Sample
```python
print(PythonColorGetter.get_random_color())
print(PythonColorGetter.get_complementary_color(255, 0, 0))
print(PythonColorGetter.hex_to_rgb('#2c2c2c'))
r, g, b = 44, 44, 44
print(PythonColorGetter.rgb_to_hex(r, g, b))
light_r, light_g, light_b = PythonColorGetter.lighter(r, g, b)
print(PythonColorGetter.rgb_to_hex(light_r, light_g, light_b))
dark_r, dark_g, dark_b = PythonColorGetter.darker(r, g, b)
print(PythonColorGetter.rgb_to_hex(dark_r, dark_g, dark_b))
```

Result
```
(211, 195, 123)
(0, 255, 255)
(44, 44, 44)
#2c2c2c
#3d3d3d
#1b1b1b
```