Skip to content

Commit c447efc

Browse files
add tlp clear only for guests, add user agent (#4)
1 parent 259ac2d commit c447efc

3 files changed

Lines changed: 5 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python-catalyst"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Python client for the PRODAFT CATALYST API"
55
readme = "README.md"
66
license = { file = "LICENSE" }

python_catalyst/client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ def __init__(
5757
),
5858
"Content-Type": "application/json",
5959
"Accept": "application/json",
60+
"User-Agent": "python-catalyst-client/0.1.3",
6061
}
6162
)
6263

@@ -269,6 +270,8 @@ def get_updated_member_contents(
269270
f"Fetching member contents updated since: {since.isoformat()}"
270271
)
271272

273+
if not self.catalyst_authenticated:
274+
tlp = [TLPLevel.CLEAR] # Default to TLP:CLEAR for unauthenticated users
272275
contents = self.get_all_member_contents(
273276
category=category,
274277
tlp=tlp,

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="python-catalyst",
8-
version="0.1.2",
8+
version="0.1.3",
99
description="Python client for the PRODAFT CATALYST API",
1010
long_description=long_description,
1111
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)