trovesuite 1.0.5__tar.gz → 1.0.6__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.
- {trovesuite-1.0.5/src/trovesuite.egg-info → trovesuite-1.0.6}/PKG-INFO +53 -1
- {trovesuite-1.0.5 → trovesuite-1.0.6}/README.md +52 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/pyproject.toml +2 -2
- {trovesuite-1.0.5 → trovesuite-1.0.6}/setup.py +1 -1
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/__init__.py +1 -1
- trovesuite-1.0.6/src/trovesuite/auth/auth_controller.py +11 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/entities/health.py +4 -4
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/notification_controller.py +4 -4
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/notification_read_dto.py +1 -1
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/notification_service.py +3 -3
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/notification_write_dto.py +1 -1
- {trovesuite-1.0.5 → trovesuite-1.0.6/src/trovesuite.egg-info}/PKG-INFO +53 -1
- trovesuite-1.0.5/src/trovesuite/auth/auth_controller.py +0 -11
- {trovesuite-1.0.5 → trovesuite-1.0.6}/LICENSE +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/MANIFEST.in +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/requirements.txt +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/setup.cfg +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/auth/__init__.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/auth/auth_base.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/auth/auth_read_dto.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/auth/auth_service.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/auth/auth_write_dto.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/configs/__init__.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/configs/database.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/configs/logging.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/configs/settings.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/entities/__init__.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/entities/sh_response.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/__init__.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/notification_base.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/utils/__init__.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/utils/helper.py +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite.egg-info/SOURCES.txt +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite.egg-info/dependency_links.txt +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite.egg-info/not-zip-safe +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite.egg-info/requires.txt +0 -0
- {trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trovesuite
|
|
3
|
-
Version: 1.0.
|
|
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
|
|
@@ -66,6 +66,8 @@ poetry install --with dev
|
|
|
66
66
|
|
|
67
67
|
## Quick Start
|
|
68
68
|
|
|
69
|
+
> **✅ 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.
|
|
70
|
+
|
|
69
71
|
### Import Patterns
|
|
70
72
|
|
|
71
73
|
The package provides clean, simplified import patterns:
|
|
@@ -620,12 +622,62 @@ poetry install
|
|
|
620
622
|
|
|
621
623
|
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
|
|
622
624
|
|
|
625
|
+
## Troubleshooting
|
|
626
|
+
|
|
627
|
+
### Import Issues
|
|
628
|
+
|
|
629
|
+
If you encounter import errors, make sure you're using the correct import patterns:
|
|
630
|
+
|
|
631
|
+
```python
|
|
632
|
+
# ✅ Correct imports
|
|
633
|
+
from trovesuite import AuthService, NotificationService
|
|
634
|
+
from trovesuite.auth import AuthServiceWriteDto
|
|
635
|
+
from trovesuite.notification import NotificationEmailServiceWriteDto
|
|
636
|
+
|
|
637
|
+
# ❌ Incorrect imports (will fail)
|
|
638
|
+
from trovesuite.auth.auth_write_dto import AuthServiceWriteDto # Too specific
|
|
639
|
+
from trovesuite.notification.notification_write_dto import NotificationEmailServiceWriteDto # Too specific
|
|
640
|
+
```
|
|
641
|
+
|
|
642
|
+
### Package Installation
|
|
643
|
+
|
|
644
|
+
If you're having issues with the package installation:
|
|
645
|
+
|
|
646
|
+
1. **Make sure you have the latest version**:
|
|
647
|
+
```bash
|
|
648
|
+
pip install --upgrade trovesuite
|
|
649
|
+
```
|
|
650
|
+
|
|
651
|
+
2. **Force reinstall if needed**:
|
|
652
|
+
```bash
|
|
653
|
+
pip install --force-reinstall trovesuite
|
|
654
|
+
```
|
|
655
|
+
|
|
656
|
+
3. **Check your Python environment**:
|
|
657
|
+
```bash
|
|
658
|
+
python -c "import trovesuite; print('Package installed successfully')"
|
|
659
|
+
```
|
|
660
|
+
|
|
661
|
+
### Common Issues
|
|
662
|
+
|
|
663
|
+
- **ImportError: No module named 'src'**: This was fixed in version 1.0.5. Update to the latest version.
|
|
664
|
+
- **AttributeError: module has no attribute 'AuthServiceWriteDto'**: Use `from trovesuite.auth import AuthServiceWriteDto` instead of importing from the main package.
|
|
665
|
+
|
|
623
666
|
## Support
|
|
624
667
|
|
|
625
668
|
For support, email brightgclt@gmail.com or create a work item in the [Azure DevOps repository](https://dev.azure.com/brightgclt/trovesuite/_workitems/create).
|
|
626
669
|
|
|
627
670
|
## Changelog
|
|
628
671
|
|
|
672
|
+
### 1.0.5
|
|
673
|
+
- Fixed all import issues across auth, notification, and entities modules
|
|
674
|
+
- Changed absolute imports (`from src.trovesuite.`) to relative imports (`from .` and `from ..`)
|
|
675
|
+
- Ensured package works correctly when installed from PyPI or wheel
|
|
676
|
+
- Added service write DTOs to module exports for easier usage
|
|
677
|
+
- Updated documentation with simplified import patterns
|
|
678
|
+
- All services and DTOs now import correctly in clean environments
|
|
679
|
+
- Package builds and installs without import errors
|
|
680
|
+
|
|
629
681
|
### 1.0.8
|
|
630
682
|
- Restructured package for direct service imports
|
|
631
683
|
- Added comprehensive notification services with email support
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[tool.poetry]
|
|
6
6
|
name = "trovesuite"
|
|
7
|
-
version = "1.0.
|
|
7
|
+
version = "1.0.6"
|
|
8
8
|
description = "TroveSuite services package providing authentication, authorization, notifications, and other enterprise services for TroveSuite applications"
|
|
9
9
|
authors = ["brightgclt <brightgclt@gmail.com>"]
|
|
10
10
|
license = "MIT"
|
|
@@ -56,7 +56,7 @@ Documentation = "https://dev.azure.com/brightgclt/trovesuite/_git/packages"
|
|
|
56
56
|
|
|
57
57
|
[project]
|
|
58
58
|
name = "trovesuite"
|
|
59
|
-
version = "1.0.
|
|
59
|
+
version = "1.0.6"
|
|
60
60
|
description = "TroveSuite services package providing authentication, authorization, notifications, and other enterprise services for TroveSuite applications"
|
|
61
61
|
readme = "README.md"
|
|
62
62
|
license = {text = "MIT"}
|
|
@@ -15,7 +15,7 @@ with open("pyproject.toml", "r", encoding="utf-8") as fh:
|
|
|
15
15
|
|
|
16
16
|
setup(
|
|
17
17
|
name="trovesuite",
|
|
18
|
-
version="1.0.
|
|
18
|
+
version="1.0.6",
|
|
19
19
|
author="Bright Debrah Owusu",
|
|
20
20
|
author_email="owusu.debrah@deladetech.com",
|
|
21
21
|
description="TroveSuite services package providing authentication, authorization, notifications, and other enterprise services for TroveSuite applications",
|
|
@@ -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.
|
|
11
|
+
__version__ = "1.0.5"
|
|
12
12
|
__author__ = "Bright Debrah Owusu"
|
|
13
13
|
__email__ = "owusu.debrah@deladetech.com"
|
|
14
14
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from fastapi import APIRouter
|
|
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
|
+
|
|
7
|
+
auth_router = APIRouter()
|
|
8
|
+
|
|
9
|
+
@auth_router.post("/auth", response_model=Respons[AuthControllerReadDto])
|
|
10
|
+
async def authorize(data: AuthControllerWriteDto):
|
|
11
|
+
return AuthService.authorize(data=data)
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
from fastapi import APIRouter
|
|
2
|
-
from
|
|
3
|
-
from
|
|
4
|
-
from
|
|
5
|
-
from
|
|
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")
|
{trovesuite-1.0.5 → trovesuite-1.0.6}/src/trovesuite/notification/notification_controller.py
RENAMED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
from
|
|
1
|
+
from .notification_write_dto import (
|
|
2
2
|
NotificationEmailControllerWriteDto,
|
|
3
3
|
NotificationSMSControllerWriteDto
|
|
4
4
|
)
|
|
5
|
-
from
|
|
5
|
+
from .notification_read_dto import (
|
|
6
6
|
NotificationEmailControllerReadDto,
|
|
7
7
|
NotificationSMSControllerReadDto
|
|
8
8
|
)
|
|
9
|
-
from
|
|
10
|
-
from
|
|
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,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
|
|
5
|
-
from
|
|
4
|
+
from ..entities.sh_response import Respons
|
|
5
|
+
from .notification_read_dto import (
|
|
6
6
|
NotificationEmailServiceReadDto,
|
|
7
7
|
NotificationSMSServiceReadDto
|
|
8
8
|
)
|
|
9
|
-
from
|
|
9
|
+
from .notification_write_dto import (
|
|
10
10
|
NotificationEmailServiceWriteDto,
|
|
11
11
|
NotificationSMSServiceWriteDto
|
|
12
12
|
)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: trovesuite
|
|
3
|
-
Version: 1.0.
|
|
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,11 +0,0 @@
|
|
|
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
|
|
6
|
-
|
|
7
|
-
auth_router = APIRouter()
|
|
8
|
-
|
|
9
|
-
@auth_router.post("/auth", response_model=Respons[AuthControllerReadDto])
|
|
10
|
-
async def authorize(data: AuthControllerWriteDto):
|
|
11
|
-
return AuthService.authorize(data=data)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|