trovesuite 1.0.5__py3-none-any.whl → 1.0.6__py3-none-any.whl

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.
trovesuite/__init__.py CHANGED
@@ -8,7 +8,7 @@ Provides JWT token validation, user authorization, permission checking, and noti
8
8
  from .auth import AuthService
9
9
  from .notification import NotificationService
10
10
 
11
- __version__ = "1.0.8"
11
+ __version__ = "1.0.5"
12
12
  __author__ = "Bright Debrah Owusu"
13
13
  __email__ = "owusu.debrah@deladetech.com"
14
14
 
@@ -1,8 +1,8 @@
1
1
  from fastapi import APIRouter
2
- from src.trovesuite.auth.auth_write_dto import AuthControllerWriteDto
3
- from src.trovesuite.auth.auth_read_dto import AuthControllerReadDto
4
- from src.trovesuite.auth.auth_service import AuthService
5
- from src.trovesuite.entities.sh_response import Respons
2
+ from .auth_write_dto import AuthControllerWriteDto
3
+ from .auth_read_dto import AuthControllerReadDto
4
+ from .auth_service import AuthService
5
+ from ..entities.sh_response import Respons
6
6
 
7
7
  auth_router = APIRouter()
8
8
 
@@ -1,8 +1,8 @@
1
1
  from fastapi import APIRouter
2
- from src.entities.shared.shared_response import Respons
3
- from src.configs.settings import db_settings
4
- from src.configs.database import DatabaseManager
5
- from src.configs.logging import get_logger
2
+ from .sh_response import Respons
3
+ from ..configs.settings import db_settings
4
+ from ..configs.database import DatabaseManager
5
+ from ..configs.logging import get_logger
6
6
 
7
7
  health_check_router = APIRouter(tags=["Health Path"])
8
8
  logger = get_logger("health")
@@ -1,13 +1,13 @@
1
- from src.trovesuite.notification.notification_write_dto import (
1
+ from .notification_write_dto import (
2
2
  NotificationEmailControllerWriteDto,
3
3
  NotificationSMSControllerWriteDto
4
4
  )
5
- from src.trovesuite.notification.notification_read_dto import (
5
+ from .notification_read_dto import (
6
6
  NotificationEmailControllerReadDto,
7
7
  NotificationSMSControllerReadDto
8
8
  )
9
- from src.trovesuite.notification.notification_service import NotificationService
10
- from src.trovesuite.entities.sh_response import Respons
9
+ from .notification_service import NotificationService
10
+ from ..entities.sh_response import Respons
11
11
  from fastapi import APIRouter
12
12
 
13
13
  notification_router = APIRouter()
@@ -1,4 +1,4 @@
1
- from src.trovesuite.notification.notification_base import (
1
+ from .notification_base import (
2
2
  NotificationEmailBase,
3
3
  NotificationSMSBase
4
4
  )
@@ -1,12 +1,12 @@
1
1
  import smtplib
2
2
  from email.mime.text import MIMEText
3
3
  from email.mime.multipart import MIMEMultipart
4
- from src.trovesuite.entities.sh_response import Respons
5
- from src.trovesuite.notification.notification_read_dto import (
4
+ from ..entities.sh_response import Respons
5
+ from .notification_read_dto import (
6
6
  NotificationEmailServiceReadDto,
7
7
  NotificationSMSServiceReadDto
8
8
  )
9
- from src.trovesuite.notification.notification_write_dto import (
9
+ from .notification_write_dto import (
10
10
  NotificationEmailServiceWriteDto,
11
11
  NotificationSMSServiceWriteDto
12
12
  )
@@ -1,5 +1,5 @@
1
1
  from pydantic import BaseModel
2
- from src.trovesuite.notification.notification_base import (
2
+ from .notification_base import (
3
3
  NotificationEmailBase,
4
4
  NotificationSMSBase
5
5
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: trovesuite
3
- Version: 1.0.5
3
+ Version: 1.0.6
4
4
  Summary: TroveSuite services package providing authentication, authorization, notifications, and other enterprise services for TroveSuite applications
5
5
  Home-page: https://dev.azure.com/brightgclt/trovesuite/_git/packages
6
6
  Author: Bright Debrah Owusu
@@ -119,6 +119,8 @@ poetry install --with dev
119
119
 
120
120
  ## Quick Start
121
121
 
122
+ > **✅ Package Status**: All import issues have been resolved in version 1.0.5. The package now works correctly when installed from PyPI or wheel files.
123
+
122
124
  ### Import Patterns
123
125
 
124
126
  The package provides clean, simplified import patterns:
@@ -673,12 +675,62 @@ poetry install
673
675
 
674
676
  This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
675
677
 
678
+ ## Troubleshooting
679
+
680
+ ### Import Issues
681
+
682
+ If you encounter import errors, make sure you're using the correct import patterns:
683
+
684
+ ```python
685
+ # ✅ Correct imports
686
+ from trovesuite import AuthService, NotificationService
687
+ from trovesuite.auth import AuthServiceWriteDto
688
+ from trovesuite.notification import NotificationEmailServiceWriteDto
689
+
690
+ # ❌ Incorrect imports (will fail)
691
+ from trovesuite.auth.auth_write_dto import AuthServiceWriteDto # Too specific
692
+ from trovesuite.notification.notification_write_dto import NotificationEmailServiceWriteDto # Too specific
693
+ ```
694
+
695
+ ### Package Installation
696
+
697
+ If you're having issues with the package installation:
698
+
699
+ 1. **Make sure you have the latest version**:
700
+ ```bash
701
+ pip install --upgrade trovesuite
702
+ ```
703
+
704
+ 2. **Force reinstall if needed**:
705
+ ```bash
706
+ pip install --force-reinstall trovesuite
707
+ ```
708
+
709
+ 3. **Check your Python environment**:
710
+ ```bash
711
+ python -c "import trovesuite; print('Package installed successfully')"
712
+ ```
713
+
714
+ ### Common Issues
715
+
716
+ - **ImportError: No module named 'src'**: This was fixed in version 1.0.5. Update to the latest version.
717
+ - **AttributeError: module has no attribute 'AuthServiceWriteDto'**: Use `from trovesuite.auth import AuthServiceWriteDto` instead of importing from the main package.
718
+
676
719
  ## Support
677
720
 
678
721
  For support, email brightgclt@gmail.com or create a work item in the [Azure DevOps repository](https://dev.azure.com/brightgclt/trovesuite/_workitems/create).
679
722
 
680
723
  ## Changelog
681
724
 
725
+ ### 1.0.5
726
+ - Fixed all import issues across auth, notification, and entities modules
727
+ - Changed absolute imports (`from src.trovesuite.`) to relative imports (`from .` and `from ..`)
728
+ - Ensured package works correctly when installed from PyPI or wheel
729
+ - Added service write DTOs to module exports for easier usage
730
+ - Updated documentation with simplified import patterns
731
+ - All services and DTOs now import correctly in clean environments
732
+ - Package builds and installs without import errors
733
+
682
734
  ### 1.0.8
683
735
  - Restructured package for direct service imports
684
736
  - Added comprehensive notification services with email support
@@ -1,7 +1,7 @@
1
- trovesuite/__init__.py,sha256=c7z8TrIWz156VyDw2qEclTdJxKqAdbhQyCjDLY4s0uM,457
1
+ trovesuite/__init__.py,sha256=xDbpC3gIBHze_rI2C7xkof4xSoX6tZUOfp56-B2W8-w,457
2
2
  trovesuite/auth/__init__.py,sha256=OjZllVvjul1glDazJ-d5TrNjgHFigFlQQi1G99DYshk,239
3
3
  trovesuite/auth/auth_base.py,sha256=rZHQVLeJRBQ8GClgF5UwG-er4_HXVX5-nt8o6_Z29uY,75
4
- trovesuite/auth/auth_controller.py,sha256=mMAyTV_0rFeArpcIDu9Pr_IATvFZU6wfIo6ViQoUv0U,477
4
+ trovesuite/auth/auth_controller.py,sha256=mQ5IDz2frgEFhcwnvbR2F2j9wKduPhlQTyPdoTWTaOY,407
5
5
  trovesuite/auth/auth_read_dto.py,sha256=pQT1ouRVZMAiJn4wAG7NQOKQKTquTMWUe-dYcpLTmEo,533
6
6
  trovesuite/auth/auth_service.py,sha256=if2RFI6F1DpbNEuCTSpPbhHVBdYQEg4hVkoxTCnvC4k,14298
7
7
  trovesuite/auth/auth_write_dto.py,sha256=rdwI7w6-9QZGv1H0PAGrjkLBCzaMHjgPIXeLb9RmNec,234
@@ -10,18 +10,18 @@ trovesuite/configs/database.py,sha256=TYPlwydfWirOvCdA1N2gdqJWeesnxLBmRcxqVInZzE
10
10
  trovesuite/configs/logging.py,sha256=mGjR2d4urVNry9l5_aXycMMtcY2RAFIpEL35hw33KZg,9308
11
11
  trovesuite/configs/settings.py,sha256=yUbkiFi4QdO9JZG1RRFbP4tYurT47HmN-ohgYcs2SHM,2561
12
12
  trovesuite/entities/__init__.py,sha256=Dbl_03Bueyh2vOP2hykd40MmNMrl5nNHSRGP-kqwwNo,160
13
- trovesuite/entities/health.py,sha256=H8-XUywzvMfZy2dZwDyJGAUbmuULuZYvYIUWhiaVGdY,2729
13
+ trovesuite/entities/health.py,sha256=KaW7yxTQdymIPlnkJJkDqEebBXkD0a7A66i5GgNZLoE,2700
14
14
  trovesuite/entities/sh_response.py,sha256=1_sw3PpVaDxWsNiBU0W9YLHZgTFxEj4JJBLBfSY63Ho,1579
15
15
  trovesuite/notification/__init__.py,sha256=mjglzmlk29SREP6LfvBYGmCSc-K1SKKAEx_OJdJ2Vrs,394
16
16
  trovesuite/notification/notification_base.py,sha256=6Xo0Gnnpg3RgN1_SRkAcH-K4l7DwNDZvn1gRm3oMWyk,320
17
- trovesuite/notification/notification_controller.py,sha256=w-SpRTjeInrgsUX0sAzFVjXiBo395ge6v-dn1Cc8ogU,920
18
- trovesuite/notification/notification_read_dto.py,sha256=pZg3KHZJA4c5MoXqTHCgUiGnd8mRrQjVOaCtWXtuT7U,450
19
- trovesuite/notification/notification_service.py,sha256=u3-rHnTr3dgLX_RGjkG6c9mYVPspRCSEDBtDrGN-Rj0,2500
20
- trovesuite/notification/notification_write_dto.py,sha256=WrdFWIa9sK5rrwgp1bUOOikwE7xL8O9z110EGnXedzw,479
17
+ trovesuite/notification/notification_controller.py,sha256=nG4owOk_skgnVW1HxjuoluWbfDjQCZKerQRyOE7P_ak,826
18
+ trovesuite/notification/notification_read_dto.py,sha256=K0DFLyAArvtqOGS7q1VzmqO28StTMbcNCgpmhzhad8E,423
19
+ trovesuite/notification/notification_service.py,sha256=sf_lJWcrmRIUeEabdEYLaSdRz2H1D3RBEwKMOA1h2pY,2433
20
+ trovesuite/notification/notification_write_dto.py,sha256=PGpww3PomrmJgXTgpwGhXasv_fC8mgUQvTloaTqaSTA,452
21
21
  trovesuite/utils/__init__.py,sha256=3UPKTz9cluTgAM-ldNsJxsnoPTZiqacXlAmzUEHy6q8,143
22
22
  trovesuite/utils/helper.py,sha256=lvZ1mvaqY84dkIPB5Ov0uwYDOWBziAS8twobEJZh2Ik,1002
23
- trovesuite-1.0.5.dist-info/licenses/LICENSE,sha256=EJT35ct-Q794JYPdAQy3XNczQGKkU1HzToLeK1YVw2s,1070
24
- trovesuite-1.0.5.dist-info/METADATA,sha256=JD98gu0c53MANB7pMF73Eg6axkfk_RW3HpmSU5KFVOA,19704
25
- trovesuite-1.0.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
- trovesuite-1.0.5.dist-info/top_level.txt,sha256=GzKhG_-MTaxeHrIgkGkBH_nof2vroGFBrjeHKWUIwNc,11
27
- trovesuite-1.0.5.dist-info/RECORD,,
23
+ trovesuite-1.0.6.dist-info/licenses/LICENSE,sha256=EJT35ct-Q794JYPdAQy3XNczQGKkU1HzToLeK1YVw2s,1070
24
+ trovesuite-1.0.6.dist-info/METADATA,sha256=3a3sW9xHPiXx2t7cipfcCfAHoNIWw69UT3n18HJ0FVg,21607
25
+ trovesuite-1.0.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
26
+ trovesuite-1.0.6.dist-info/top_level.txt,sha256=GzKhG_-MTaxeHrIgkGkBH_nof2vroGFBrjeHKWUIwNc,11
27
+ trovesuite-1.0.6.dist-info/RECORD,,