semvec/pypi-packages huggingface dataset:
easycolors 1.0.4
A simple tool for convinient rgb-tuple use
Requires Python: >=3.6

This module contains rgb tuples for some colors.

Running e.g. 'easycolors.red' will return the rgb tuple for red. 

Running e.g. 'easycolors.transform(easycolors.red, (0,0,10))' will return the rgb tuple for red, but with its blue value incremented by 10. 

The first arg can also be a 3-value tuple, and the second arg can also be an int (which will in- or decrement all values in the given rgb-tuple).

Running 'easycolors.help()' will print some information that might be usefull.



colors:
white, black, grey, darkgrey, red, green, blue, yellow, orange, cyan, purple, navy, pink



example code:
-----------------------------------
import easycolors


easycolors.red

"(255,0,0)"

easycolors.transform(easycolors.red, (-10,0,0))

"(215,0,0)"


easycolors.transform((10,10,20), 5)

"(15,15,25)"
postman2py 0.0.2
A library to use postman collections V2.1 in python.
Requires Python: >=3.6
Keywords: postman,rest,api

# postman2py

![Upload Python Package](https://github.com/bodharma/postman2py/workflows/Upload%20Python%20Package/badge.svg)


postman2py is a library for [Postman](https://www.getpostman.com/) that run Postman's collections. 

Originaly was forked from https://github.com/k3rn3l-p4n1c/postpython and https://github.com/matkapi/postpy2
Added few updates related to Postman collection import and urlencoded request type.

## Why use postman2py instead of postman codegen?

- No hardcoded variables
- If your team use postman collection for testing and you want to extend testing by integrating some calculation or etc.


## How to install?

postman2py is available on [PyPI](https://pypi.python.org/pypi?name=postman2py&version=0.0.1&:action=display)
and you can install it using pip:

```bash
$ pip install postman2py
```

## How to use?

Import `postman2py`

```$python
from postman2py.core import PostPython

runner = postman2py('/path/to/collection/postman_collection.json')

# runner.default.<request_name> # if no folders in collection
# runner.<folder_name>.<request_name> # if folders exist in collection

response = runner.default.get_request()
print(response.json())
print(response.status_code)
```

### Load enviroment variables

In postman2py you can load enviroment variables from postman enviroment files

```$python
pp.environments.load('environments/postman_environment.json')
```

### Set environment variable

```$python
runner.environments.update({'BASE_URL': 'http://127.0.0.1:5000'})
runner.environments.update({'PASSWORD': 'test', 'EMAIL': 'you@email.com'})
```

### AttributeError

postman2py try to correct your mistake if you spell a function or folder wrong it will suggest you the closest name.

```$python
>>> response = runner.RequestMethods.get_requasts()

Traceback (most recent call last):
File "test.py", line 11, in <module>
response = runner.RequestMethods.get_requasts()
File "/usr/local/lib/python3.5/site-packages/postman2py/core.py", line 73, in **getattr**
'Did you mean %s' % (item, self.name, similar))

AttributeError: get_requasts request does not exist in RequestMethods folder.
Did you mean get_request

```

You can also use `help()` method to print all available requests.

```$python

>>> runner.help()
>>> Posible requests:
>>> runner.AuthOthers.hawk_auth()
>>> runner.AuthOthers.basic_auth()
>>> runner.AuthOthers.oauth1_0_verify_signature()
>>> runner.RequestMethods.get_request()
>>> runner.RequestMethods.put_request()
>>> runner.RequestMethods.delete_request()
>>> runner.RequestMethods.post_request()
>>> runner.RequestMethods.patch_request()

or

>>> runner.RequestMethods.help()
>>> runner.RequestMethods.delete_request()
>>> runner.RequestMethods.patch_request()
>>> runner.RequestMethods.get_request()
>>> runner.RequestMethods.put_request()
>>> runner.RequestMethods.post_request()

```