semvec/pypi-packages huggingface dataset:
bbdraw 0.1
Library for drawing labeled bounding boxes / bounding polygons
License: MIT
Requires Python: >=3.5

bbdraw
======

Library for drawing labeled bounding boxes / bounding polygons
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. figure:: https://raw.githubusercontent.com/krasch/bbdraw/master/example.jpg
   :alt: Example containing bounding boxes and bounding polygons

   Example image showing labeled bounding boxes and bounding polygons

Basically, a small wrapper around the python pillow library that
combines drawing boxes and writing labels into one simple function call:

::

   corners = [(650, 290), (715, 335)]
   image = bbdraw.rectangle(image, corners, text="cactus", color="red")

Installation
============

Needs python >= 3.5

``pip3 install bbdraw``

Usage
=====

::

   from PIL import Image

   import bbdraw

   image = Image.open("example.jpg")

   # box/rectangle is given by two corners
   # either as list of tuples [(x0, y0), (x1, y1)] or flat list [x0, y0, x1, y1]
   corners = [(650, 290), (715, 335)]
   image = bbdraw.rectangle(image, corners, text="cactus", color="red")

   # polygon is given by list of vertices
   # either as list of tuples [(x0, y0), (x1, y1), (x2, y2), ...] 
   # or as flat list [x0, y0, x1, y1, x2, y2, ...]
   vertices = [(440, 360), (400, 265), (525, 195), (590, 280), (520, 360)]
   image = bbdraw.polygon(image, vertices, text="shrub", color="green")

   # use in_place=True to directly draw on the input image, instead of making a copy
   corners = [(1080, 350), (1180, 285)]
   bbdraw.rectangle(image, corners, text="cactus", color="red", in_place=True)

   image.save("example_out.jpg")
keepersecuritysm 0.0.19a0
Keeper Commander Secrets Management for Python 3
License: MIT
Requires Python: >=3.5
Keywords: Keeper Password Manager SDK

## 1. Obtain you One-Time Secret Key
Keeper Commander authenticates your API requests using advanced encryption that used locally stored private key, device id and client id.
To register your device and generate private key you will need to generate a One-Time Secret Key via Web Vault or Keeper Commander CLI.

### Via Web Vault
TBD:

### Via Keeper Commander CLI
Login to Keeper Commander CLI and perform following:
1. Create Application
    ```bash
   $ app-share --app [NAME] --secret [UID]
    ```
   
    - `--app` - Name of the Application.
    - `--secret` - Record UID or Shared Folder UID
    
1. Create client
    ```bash
   $ app-client [NAME]
    ```

### Install
TBD

### Quick Start

```python
# Import Commander
from keepercommandersm import Commander

# Establish connection
# One time secrets generated via Web Vault or Commander CLI
Commander.client_key = `MmzGdls-rDG39vgqgFD1HL70h0_L_sKQOdI0qwXU3JI`

# Retrieve all password records
all_records = Commander.get_secrets()

# Get password from first record:
password = all_records[0].password

# Print password (WARNING: Never ever do this at home! Never print password like this 😉)
print("My password from Keeper: %s" % password)
```

## Samples
### File Download
TBD

### Update record
TBD

## Configuration

### Types

Listed in priority order
1. Environment variable
1. Configuration store
1. Code

### Available configurations:

- `secret_key` - 
- `server` - Keeper Backend server. Available values: 
    - Server name
        - `https://keepersecurity.com`
        - `keepersecurity.com`
    - Server Abbreviation
        - `US` - resolve to `keepersecurity.com` 
        - `EU` - resolve to `keepersecurity.eu`
        - `AU` - resolve to `keepersecurity.com.au`
        - `US_GOV` - resolve to `TBD`



## Adding more records or share folders to the Application

### Via Web Vault
TBD

### Via Commander CLI
```bash
app-share --app [NAME] --secret [UID2]
```

## Configuration storage
Storage is managed in ...
### Types of storages
- File storage - Default
- Cloud Storages
    - AWS <br/>Import TBD `pip install keepercommanderintegration-aws`
    - Azure <br/>Import TBD `pip install keepercommanderintegration-azure`
    - GCP <br/>Import TBD `pip install keepercommanderintegration-gcp`
    - GitHub Actions <br/>Import TBD `pip install keepercommanderintegration-gha`
    - Custom <br/>Implement your own `KeyValueStorage` class

## Available operations

### Retrieve secret(s)

```python
from keepercommandersm import Commander

all_secrets = Commander.get_secrets()
```
### Update secret

```python
secret_to_update = all_secrets[0]

secret_to_update.password = 'NewPassword123$'

Commander.save(secret_to_update)
```
logger-es-cli 0.3.4
CLI for sending logging to elasticsearch
License: MIT
Requires Python: >=3.7,<4.0
Keywords: elasticsearch,kibana,logging,cli,gmf-tech

# logger-es-cli

CLI for sending logging to elasticsearch (alpha version)

## How to build package

- needs to have poetry installed.

  ```bash
  sudo python3 -m pip install poetry
  ```

- optional

  ```bash
  sudo yum install redhat-rpm-config gcc libffi-devel python3-devel openssl-devel cargo
  sudo python3 -m pip install python-dotenv[cli]
  ```

- run build command

  ```bash
  poetry build
  ```

## Access AWS ES with VPC access using a tunning ssh

- open a terminal and issue the following command:

  ```bash
  ssh -L 9200:vpc-kibana-dashboard-maneiro-brbrhuehue.sa-east-1.es.amazonaws.com:443 -i ~/.ssh/your-private-key.pem ec2-user@5.6.7.8
  ```

- now try to send logs to elasticsearch

## .env file env variables

example:

```bash
# kibana ip or dns
KIBANA_SERVER=localhost
# use SSL
KIBANA_SSL=true
# exclude default args from kibana
# if true exclude those following args:
# pathname,exc_info,exc_text,thread,threadName,stack_info,filename,processName,process,args,msg,name,levelname
EXCLUDE_DEFAULT=true
# kibana server port
KIBANA_SERVER_PORT=9200
# kibana username
KIBANA_USERNAME=robots.logger
# kibana password
KIBANA_PASSWORD=fd89078C-2e8e-4549-b9de-B9955123a0e3
# software environment
ENVIRONMENT=DEVELOPMENT
# project name that is the same index name in elastic search
PROJECT_NAME=gmf-tech-modulex
# exclude args to send to elasticsearch
EXCLUDE=thread,threadName,processName
# a custom json file , to append when send logs to elasticsearch
CUSTOM_FILE=/run/media/gustavo/backup/git-projects/logger-es-cli/custom.json
# unbuffer sysout python
PYTHONUNBUFFERED=true
# send debug logs to es?
SEND_DEBUG=false
```

## custom.json file

example:

```json
{
  "username": "gustavo@gmf-tech.com",
  "account": "system"
}
```

## poetry export dependencies

```bash
poetry export -f requirements.txt --output requirements.txt
```

## run logger-es-cli with a .env file [dotenv dependence]

```bash
dotenv run -- logger-es-cli info 'alo mundo louco!!!'
```

- Do not forget to issue command message with single quote. In bash if you send with double quotes, escape caracters will broken the CLI

## License

This project is licensed under the terms of the MIT license.