semvec/pypi-packages huggingface dataset:
redshift-connection-provider 0.5.0b2
An opinionated class to retrieve a Redshift connection object compatible with psycopg2.
Requires Python: >=3.7

# Redshift Connection Provider

[![PyPI Latest Release](https://img.shields.io/pypi/v/redshift-connection-provider.svg)](https://pypi.org/project/redshift-connection-provider/)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)

An opinionated class to retrieve a Redshift connection object compatible with [psycopg2](https://pypi.org/project/psycopg2/).

## Install

```sh
pip install redshift-connection-provider
```

## Usage

```py
# Import
import os
import psycopg2
from redshift_connection.provider import RSConnectionProvider
# Initialize Class
rs_conn = RSConnectionProvider(cluster_id=CLUSTER_ID)
# Or via ENV Variable
os.environ["CLUSTER_ID"] = CLUSTER_ID
rs_conn = RSConnectionProvider()
# Create connection dict
conn_object = rs_conn.get_conn()
# Pass it to psycopg2 to create a connection
conn = psycopg2.connect(**conn_object)
```

## Connection Parameters:

- Database User: Can be set via parameter upon class init, as an environment variable (`DB_USER`), stored as a secret in AWS Secret Manager (specify secret name as environment variable `DB_USER_SECRET_NAME`); if none is set master user will be used.
- Database Name: Can be set via parameter upon class init or as an environment variable (`DB_NAME`).
- Database Password: Can be set as an environment variable (`DB_PASS`), stored as a secret in AWS Secret Manager (specify secret name as environment variable `DB_PASS_SECRET_NAME`); if none is set, a temporary password is acquired using AWS APIs. The temporary password will be scoped to the user specified (which can be auto-created) and to the database passed (if any).
- Database Host: Acquired automatically via AWS APIs using provided `CLUSTER_ID`.
- Database Port: Acquired automatically via AWS APIs using provided `CLUSTER_ID`.

## License

[MIT](https://github.com/dreamorosi/redshift-connection-provider/blob/main/LICENSE)

## Contributing & Developing

PRs are welcome as long as documented, accompained by passing unit tests and in scope with the project.

To setup the development environment run:

```sh
pipenv install --dev
```

or manually install all the development dependencies found in the [Pipfile](https://github.com/dreamorosi/redshift-connection-provider/blob/main/Pipfile).
classofvector2d 1.0.4
Prepared to help graphics coding for Python
Requires Python: >=3.6


###################################
#######     HELLO WORLD     #######
###################################

This README.md file was generated on 2020/12/05 
by MEHMET R. IRMAK


###################
GENERAL INFORMATION
###################

This python library uses position vector handling and
to help compute physical vectorial motion in mechanical systems. In addition, 
this is prepared to help graphics coding for Python.


1. Author Information

First Author Contact Information
Name: MEHMET RIFAT IRMAK
Address: Ankara/TURKEY
e-mail: mehmet.r.river@gmail.com



####################
DATA & FILE OVERVIEW
####################



Directory of Files:
   A. Filename: __init__.py        
      Short description: the file containing functions that vector class,              which vector calculations for location, physical movement and force      


   B. Filename: README.md        
      Short description: this file       


   C. Filename: CHANGELOG.txt        
      Short description: the file with update notes included


   D. Filename: LICENCE.txt        
      Short description: the file with license information

   E. Filename: setup.py        
      Short description: the setup file



##########################
METHODOLOGICAL INFORMATION
##########################


1. Software-specific information:

Name: classofvector2d
Version: 1.0.4
System Requirements: Windows 7 or higher, 64-bit
•	Mac OS X 10.11 or higher, 64-bit
•	Linux: RHEL 6/7, 64-bit 
•	x86 64-bit CPU (Intel / AMD architecture)
•	4 GB RAM
•	5 GB free disk space

Open Source? (Y/N): Y


Source Repository URL:
Developer:Mehmet R. Irmak


2. Specific information:

Manufacturer: Mehmet R. Irmak
Model: 1.0.4

Definitions:

Vector(x, y):to create a vector.

square():to calculate the square of the length.

length():to calculate the length.    

clone():to clone.   

negative():to negative.

normalize():to normalize.   

addition(vector):Creating a new vector by adding the vector given in the parameter to the vector.    

increment(vector):by summing with the vector in the parameter
changing x and y values of the vector. 

subtract(vector):Creating a new vector by subtracting the vector given in the parameter.   

decrement(vector):by subtracting with the vector in the parameter 
changing x and y values of the vector.      

multiply(k): a new vector by multiplying the vector by a scalar number creation.

scale(k):by multiplying with a scalar number in the parameter 
changing x and y values of the vector.

scalerProduct(vector):scalar multiplying the vector by the vector in the parameter.

addMultbyScaler(vector, k):creating a new vector by multiplying the vector in the parameter with the scalar number and adding it to the other vector.

Vector.distance(vector1, vector2):distance between two vectors.

Vector.angleRad(vector1, vector2):return the angle of between two vectors radians.

Vector.angleDeg(vector1, vector2): return the angle of between two vectors degrees.

Random(min, max):to create a random number between two integer numbers