bw-essentials-core 0.1.12__tar.gz → 0.1.14__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of bw-essentials-core might be problematic. Click here for more details.
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/PKG-INFO +1 -1
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/job_scheduler.py +3 -1
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/user_portfolio.py +2 -2
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/PKG-INFO +1 -1
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/setup.py +1 -1
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/README.md +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/constants/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/constants/services.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/data_loch/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/data_loch/data_loch.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/email_client/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/email_client/email_client.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/notifications/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/notifications/teams_notification_schemas.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/notifications/teams_notifications.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/s3_utils/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/s3_utils/s3_utils.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/__init__.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/api_client.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/broker.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/market_pricer.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/master_data.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/model_portfolio_reporting.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/notification.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/payment.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/portfolio_catalogue.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/portfolio_content.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/trade_placement.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/user_app.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/user_portfolio_reporting.py +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/SOURCES.txt +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/dependency_links.txt +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/requires.txt +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/top_level.txt +0 -0
- {bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/setup.cfg +0 -0
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/job_scheduler.py
RENAMED
|
@@ -13,7 +13,7 @@ class JobScheduler(ApiClient):
|
|
|
13
13
|
user (str): The user for whom the API calls are being made.
|
|
14
14
|
"""
|
|
15
15
|
|
|
16
|
-
def __init__(self, user):
|
|
16
|
+
def __init__(self, user, tenant_id: str = None):
|
|
17
17
|
"""
|
|
18
18
|
Initialize the Job Scheduler object.
|
|
19
19
|
|
|
@@ -24,6 +24,7 @@ class JobScheduler(ApiClient):
|
|
|
24
24
|
self.base_url = self.get_base_url(Services.JOB_SCHEDULER.value)
|
|
25
25
|
self.api_key = self.get_api_key(Services.JOB_SCHEDULER.value)
|
|
26
26
|
self.name = Services.JOB_SCHEDULER.value
|
|
27
|
+
self.tenant_id = tenant_id
|
|
27
28
|
self.urls = {
|
|
28
29
|
"process_user_profile": "taskmanager/process/user-portfolios/"
|
|
29
30
|
}
|
|
@@ -37,6 +38,7 @@ class JobScheduler(ApiClient):
|
|
|
37
38
|
"""
|
|
38
39
|
return {
|
|
39
40
|
'Content-Type': 'application/json',
|
|
41
|
+
**({'X-Tenant-ID': self.tenant_id} if self.tenant_id else {}),
|
|
40
42
|
'x-api-key': self.api_key
|
|
41
43
|
}
|
|
42
44
|
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/user_portfolio.py
RENAMED
|
@@ -440,7 +440,7 @@ class UserPortfolio(ApiClient):
|
|
|
440
440
|
logger.info(f"In create_user_portfolio_threshold {payload =}")
|
|
441
441
|
data = self._post(url=self.base_url,
|
|
442
442
|
endpoint=self.urls.get("user_portfolio_thresholds"),
|
|
443
|
-
|
|
443
|
+
json=payload)
|
|
444
444
|
logger.info(f"{data =}")
|
|
445
445
|
return data.get("data")
|
|
446
446
|
|
|
@@ -522,7 +522,7 @@ class UserPortfolio(ApiClient):
|
|
|
522
522
|
logger.info(f"In create_holding_threshold {payload =}")
|
|
523
523
|
data = self._post(url=self.base_url,
|
|
524
524
|
endpoint=self.urls.get("holding_thresholds"),
|
|
525
|
-
|
|
525
|
+
json=payload)
|
|
526
526
|
logger.info(f"{data =}")
|
|
527
527
|
return data.get("data")
|
|
528
528
|
|
|
@@ -10,7 +10,7 @@ from setuptools import setup, find_packages
|
|
|
10
10
|
|
|
11
11
|
setup(
|
|
12
12
|
name="bw-essentials-core",
|
|
13
|
-
version="0.1.
|
|
13
|
+
version="0.1.14",
|
|
14
14
|
author="InvestorAI",
|
|
15
15
|
author_email="support+tech@investorai.in",
|
|
16
16
|
description="Reusable utilities for S3, email, Data Loch, Microsoft Teams Notifications and more.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/data_loch/data_loch.py
RENAMED
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/email_client/__init__.py
RENAMED
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/email_client/email_client.py
RENAMED
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/notifications/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/api_client.py
RENAMED
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/market_pricer.py
RENAMED
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/master_data.py
RENAMED
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/notification.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/portfolio_content.py
RENAMED
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials/services/trade_placement.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/SOURCES.txt
RENAMED
|
File without changes
|
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/requires.txt
RENAMED
|
File without changes
|
{bw_essentials_core-0.1.12 → bw_essentials_core-0.1.14}/bw_essentials_core.egg-info/top_level.txt
RENAMED
|
File without changes
|
|
File without changes
|