Skip to content

Commit 288c25c

Browse files
authored
Merge pull request #33 from britive/develop
v0.5.3
2 parents dd51a9c + 59015ca commit 288c25c

4 files changed

Lines changed: 26 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,22 @@
22

33
All changes to the package starting with v0.3.1 will be logged here.
44

5+
## v0.5.3 [2022-11-01]
6+
#### What's New
7+
* None
8+
9+
#### Enhancements
10+
* None
11+
12+
#### Bug Fixes
13+
* None
14+
15+
#### Dependencies
16+
* `britive~=2.11.2` from `britive~=2.11.1` - reduced # of API calls required to checkout a profile
17+
18+
#### Other
19+
* None
20+
521
## v0.5.2 [2022-10-24]
622
#### What's New
723
* None

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
britive~=2.11.1
1+
britive~=2.11.2
22
certifi==2022.6.15
33
charset-normalizer==2.1.0
44
click==8.1.3

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pybritive
3-
version = 0.5.2
3+
version = 0.5.3
44
author = Britive Inc.
55
author_email = support@britive.com
66
description = A pure Python CLI for Britive
@@ -25,7 +25,7 @@ install_requires =
2525
tabulate
2626
toml
2727
cryptography
28-
britive>=2.11.1
28+
britive>=2.11.2
2929

3030
[options.packages.find]
3131
where = src

src/pybritive/britive_cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@
1313
from britive import exceptions
1414
from pathlib import Path
1515
from datetime import datetime
16+
import os
1617

1718

1819
default_table_format = 'fancy_grid'
20+
debug_enabled = os.getenv('PYBRITIVE_DEBUG')
1921

2022

2123
class BritiveCli:
@@ -99,6 +101,10 @@ def logout(self):
99101
self.b.delete(f'https://{Britive.parse_tenant(self.tenant_name)}/api/auth')
100102
self._cleanup_credentials()
101103

104+
def debug(self, data: object, ignore_silent: bool = False):
105+
if debug_enabled:
106+
self.print(data=data, ignore_silent=ignore_silent)
107+
102108
# will take a list of dicts and print to the screen based on the format specified in the config file
103109
# dict can only be 1 level deep (no nesting) - caller needs to massage the data accordingly
104110
def print(self, data: object, ignore_silent: bool = False):
@@ -297,6 +303,7 @@ def checkin(self, profile):
297303
def _checkout(self, profile_name, env_name, app_name, programmatic, blocktime, maxpolltime, justification):
298304
try:
299305
self.login()
306+
300307
return self.b.my_access.checkout_by_name(
301308
profile_name=profile_name,
302309
environment_name=env_name,

0 commit comments

Comments
 (0)