Skip to content

Commit

Permalink
Merge pull request #16 from PitterPatterPython/proxy-hotfix
Browse files Browse the repository at this point in the history
Proxy hotfix
  • Loading branch information
robd518 authored Sep 24, 2024
2 parents 5798e1e + 3067c63 commit 321b429
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#################
# ENVIRONMENTAL #
#################
HTTP_PROXY=
HTTPS_PROXY=
PPP_HTTP_PROXY=
PPP_HTTPS_PROXY=
VERIFY_SSL=

############
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ A simple, lightweight set of connectors and functions to various APIs, controlle

## How to install
1. Install via pip to your environment: `pip install ppp-connectors`
2. Load the required environment variables into your environment. You can find these in `env.sample`. This library is intelligent enough to look for both a `.env` file or within your system's environment variables.
2. Load the required environment variables into your environment. You can find these in `env.sample`. This library is intelligent enough to look for both a `.env` file _and_ within your system's environment variables, so you can do either option.
4 changes: 2 additions & 2 deletions ppp_connectors/broker.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ def make_request(
check_required_env_vars(env_config, required_vars)

proxies: Dict[str, Any] = {
'http': env_config['HTTP_PROXY'] if 'HTTP_PROXY' in env_config else '',
'https': env_config['HTTPS_PROXY'] if 'HTTPS_PROXY' in env_config else ''
'http': env_config['PPP_HTTP_PROXY'] if 'PPP_HTTP_PROXY' in env_config else '',
'https': env_config['PPP_HTTPS_PROXY'] if 'PPP_HTTPS_PROXY' in env_config else ''
}

verify: bool = False if 'VERIFY_SSL' in env_config and env_config['VERIFY_SSL'].lower() == 'false' else True
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "ppp-connectors"
packages = [{ include = "ppp_connectors" }]
version = "0.2.1"
version = "0.2.2"
description = "A simple, lightweight set of connectors and functions to various APIs, controlled by a central broker."
authors = [
"Rob D'Aveta <[email protected]>",
Expand Down
Empty file removed tests/__init__.py
Empty file.

0 comments on commit 321b429

Please sign in to comment.