Skip to content

Commit 5642da4

Browse files
author
Jordan Mance
committed
Releasing 0.0.3
1 parent b2d4121 commit 5642da4

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
Python Figgy Lib Changelog
22

3+
## 0.0.3
4+
- Removing unnecessary print statements
5+
- Cleaning up the code, adding comments.
6+
37
## 0.0.1
48
- Initial alpha release + testing

src/figgy/figs.py

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,24 @@ def __init__(self, name: str, twig: Optional[str] = None):
2929

3030
@property
3131
def env_name(self):
32+
"""
33+
Return the ENV Variable name that can override any remote configurations.
34+
"""
3235
return self.base_name.replace("/", "_").replace("-", "_").upper().rstrip("_").lstrip("_")
3336

3437

3538
@property
3639
def base_name(self):
40+
"""
41+
Return the base/path/to/the/fig without the TWIG
42+
"""
3743
return self._name
3844

3945
@property
4046
def name(self):
47+
"""
48+
Return the /full/path/to/the/fig in ParameterStore
49+
"""
4150
if self.twig:
4251
if not self._name.startswith(self.twig):
4352
return f'{self.twig.rstrip("/")}/{self._name.lstrip("/")}'
@@ -64,7 +73,7 @@ def value(self) -> str:
6473
else:
6574
if not hasattr(self, '_value') or not self._value:
6675
if hasattr(self, '_fig_svc') and self._fig_svc:
67-
print(f"LOOKING UP FIG: {self.name}")
76+
log.info(f"Looking up fig: {self.name}")
6877
self._value = self._fig_svc.get_fig(self.name)
6978

7079
# Either we can't find the value, or there is a bug in this software

src/figgy/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,10 @@ def inner(self, *args, **kwargs):
2323
try:
2424
return function(self, *args, **kwargs)
2525
except (botocore.exceptions.EndpointConnectionError, urllib3.exceptions.NewConnectionError) as e:
26-
print(e)
26+
log.error(e)
2727
if retries > MAX_RETRIES:
2828
raise e
2929

30-
self._utils.notify("Network connectivity issues detected. Retrying with back off...")
3130
retries += 1
3231
time.sleep(retries * BACKOFF)
3332

src/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from setuptools import setup, find_packages
33

44
FIGGY_WEBSITE = "https://www.figgy.dev"
5-
VERSION = '0.0.2'
5+
VERSION = '0.0.3'
66
SHORT_DESCRIPTION = "Python library that supports Python development while using the Figgy config management " \
77
f"framework: {FIGGY_WEBSITE}"
88

0 commit comments

Comments
 (0)