From 6b86d5bde974251fc58f3473559f5bbe9c603734 Mon Sep 17 00:00:00 2001 From: Norm Rasmussen Date: Mon, 9 Mar 2026 14:52:51 -0400 Subject: [PATCH] Template demos and API script for testing. --- .../Norms-Sandbox-v3/styles.css.liquid | 2 +- Scripts/API_Tests/get_people_and_props.py | 17 ++++++++++++++++- Scripts/pyproject.toml | 5 +++++ 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/Custom_Templates/customer_templates/Norms-Sandbox-v3/styles.css.liquid b/Custom_Templates/customer_templates/Norms-Sandbox-v3/styles.css.liquid index 377be7bc..3625fa20 100644 --- a/Custom_Templates/customer_templates/Norms-Sandbox-v3/styles.css.liquid +++ b/Custom_Templates/customer_templates/Norms-Sandbox-v3/styles.css.liquid @@ -30,4 +30,4 @@ body, main, html { .np-homepage-headline { color: #0c1436; font-family: Poppins, sans-serif; -} \ No newline at end of file +} diff --git a/Scripts/API_Tests/get_people_and_props.py b/Scripts/API_Tests/get_people_and_props.py index d46dbbfc..c74aba81 100644 --- a/Scripts/API_Tests/get_people_and_props.py +++ b/Scripts/API_Tests/get_people_and_props.py @@ -1,7 +1,8 @@ import requests +import sys import Apikeys -APIKEY = Apikeys.EMPLOYINC +APIKEY = Apikeys.NORMSANDBOX BASEURL = "https://api.northpass.com/v2/people/" HEADERS = { @@ -23,3 +24,17 @@ def people(): propurl = "https://api.northpass.com/v2/properties/people" prop_payload = { } +def people_role(): + if len(sys.argv) != 2: + print(f"Usage: python {sys.argv[0]} ") + sys.exit(1) + + parameter = sys.argv[1] + print(f"Parameter received: {parameter}") + url = f"{BASEURL}?filter[email][eq]={parameter}&filter[partnerships_type][eq]=Partnerships::Admin" + getpart = requests.get(url, headers=HEADERS) + print(getpart.text) + print(getpart.status_code) + +if __name__ == "__main__": + people_role() diff --git a/Scripts/pyproject.toml b/Scripts/pyproject.toml index 7fbe809c..2f89777f 100644 --- a/Scripts/pyproject.toml +++ b/Scripts/pyproject.toml @@ -7,3 +7,8 @@ requires-python = ">=3.10.13" dependencies = [ "pandas>=2.3.3", ] + +[tool.uv.workspace] +members = [ + "ce-template-ai-project/tui", +]