Skip to content

Commit 75e0282

Browse files
committed
Rename package from velt-integration to velt-py
- Rename package folder from velt_integration to velt_py - Update package name in setup.py and pyproject.toml to velt-py - Update all imports from velt_integration to velt_py - Update README.md with new package name and installation instructions - Update Django app imports and requirements.txt - Fix patch decorators in tests to use correct module paths
1 parent 06ea507 commit 75e0282

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+483
-62
lines changed

django_velt_test/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,17 +55,17 @@ Or edit `velt_test_project/settings.py` directly to set MongoDB connection detai
5555

5656
### 3. Ensure Velt SDK is Available
5757

58-
The app expects `velt_integration` to be in the parent directory. Make sure the SDK is accessible:
58+
The app expects `velt_py` to be in the parent directory. Make sure the SDK is accessible:
5959

6060
```bash
6161
# From django_velt_test directory
62-
ls ../velt_integration # Should show the SDK files
62+
ls ../velt_py # Should show the SDK files
6363
```
6464

6565
If needed, you can install the SDK in development mode:
6666

6767
```bash
68-
cd ../velt_integration
68+
cd ../velt_py
6969
pip install -e .
7070
```
7171

django_velt_test/requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ blinker==1.8.2
55
python-dateutil==2.8.2
66
requests>=2.25.0
77
django-cors-headers==4.3.1
8-
# Velt Integration SDK
8+
# Velt Python SDK
99
# Option 1: Install from GitHub (until published to PyPI)
1010
# git+https://github.com/samarth-velt/velt-integration-python.git
1111
# Option 2: Local development
12-
# pip install -e ../velt_integration
12+
# pip install -e ../velt_py
1313
# Option 3: After PyPI publication
14-
# velt-integration>=0.1.0
14+
# velt-py>=0.1.0
1515
git+https://github.com/samarth-velt/velt-integration-python.git
1616

django_velt_test/velt_api/velt_sdk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Velt SDK initialization for Django app
33
"""
44
from django.conf import settings
5-
from velt_integration import VeltSDK
5+
from velt_py import VeltSDK
66

77
# Initialize SDK once at module level
88
_velt_sdk = None

django_velt_test/velt_api/views/attachment_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
from django.views.decorators.csrf import csrf_exempt
99
from django.views.decorators.http import require_http_methods
1010

11-
# Add parent directory to path to import velt_integration
11+
# Add parent directory to path to import velt_py
1212
parent_dir = Path(__file__).resolve().parent.parent.parent.parent
1313
if str(parent_dir) not in sys.path:
1414
sys.path.insert(0, str(parent_dir))
1515

16-
from velt_integration import (
16+
from velt_py import (
1717
SaveAttachmentResolverRequest,
1818
DeleteAttachmentResolverRequest
1919
)

django_velt_test/velt_api/views/comment_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
from django.views.decorators.csrf import csrf_exempt
99
from django.views.decorators.http import require_http_methods
1010

11-
# Add parent directory to path to import velt_integration
11+
# Add parent directory to path to import velt_py
1212
parent_dir = Path(__file__).resolve().parent.parent.parent.parent
1313
if str(parent_dir) not in sys.path:
1414
sys.path.insert(0, str(parent_dir))
1515

16-
from velt_integration import (
16+
from velt_py import (
1717
GetCommentResolverRequest,
1818
SaveCommentResolverRequest,
1919
DeleteCommentResolverRequest

django_velt_test/velt_api/views/reaction_views.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
from django.views.decorators.csrf import csrf_exempt
99
from django.views.decorators.http import require_http_methods
1010

11-
# Add parent directory to path to import velt_integration
11+
# Add parent directory to path to import velt_py
1212
parent_dir = Path(__file__).resolve().parent.parent.parent.parent
1313
if str(parent_dir) not in sys.path:
1414
sys.path.insert(0, str(parent_dir))
1515

16-
from velt_integration import (
16+
from velt_py import (
1717
GetReactionResolverRequest,
1818
SaveReactionResolverRequest,
1919
DeleteReactionResolverRequest

velt_integration/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
# Velt Integration SDK for Python/Django
1+
# Velt Python SDK
22

33
A Python SDK for integrating Velt comments, reactions, attachments, and user management into Django applications with MongoDB backend.
44

55
## Installation
66

77
```bash
8-
pip install velt-integration
8+
pip install velt-py
99
```
1010

1111
## Requirements
@@ -21,7 +21,7 @@ pip install velt-integration
2121
### 1. Initialize the SDK
2222

2323
```python
24-
from velt_integration import VeltSDK
24+
from velt_py import VeltSDK
2525

2626
# Initialize SDK with your MongoDB configuration
2727
sdk = VeltSDK.initialize(config={
@@ -30,7 +30,7 @@ sdk = VeltSDK.initialize(config={
3030
'username': 'your-username',
3131
'password': 'your-password',
3232
'auth_database': 'admin',
33-
'database_name': 'velt-integration'
33+
'database_name': 'velt-integration' # Your database name
3434
},
3535
'apiKey': 'your-velt-api-key', # Optional: can use VELT_API_KEY env var
3636
'authToken': 'your-velt-auth-token' # Optional: can use VELT_AUTH_TOKEN env var
@@ -198,7 +198,7 @@ config = {
198198
'username': 'your-username',
199199
'password': 'your-password',
200200
'auth_database': 'admin',
201-
'database_name': 'velt-integration',
201+
'database_name': 'velt-integration' # Your database name,
202202
# Optional: override with full connection string
203203
# 'connection_string': 'mongodb://...'
204204
}
@@ -222,7 +222,7 @@ The SDK uses custom exceptions:
222222
- `VeltTokenError` - Token-related errors
223223

224224
```python
225-
from velt_integration import VeltSDKError, VeltDatabaseError
225+
from velt_py import VeltSDKError, VeltDatabaseError
226226

227227
try:
228228
result = sdk.selfHosting.comments.getComments(organizationId='org-123')
@@ -237,7 +237,7 @@ except VeltSDKError as e:
237237
Install development dependencies:
238238

239239
```bash
240-
pip install velt-integration[dev]
240+
pip install velt-py[dev]
241241
```
242242

243243
Run tests:

velt_integration/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
Velt Integration SDK for Django
2+
Velt Python SDK
33
44
A Python SDK for integrating Velt comments, reactions, attachments, and user management
55
into Django applications with MongoDB backend.

velt_integration/pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ requires = ["setuptools>=61.0", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55
[project]
6-
name = "velt-integration"
6+
name = "velt-py"
77
version = "0.1.0"
88
description = "Python SDK for integrating Velt comments, reactions, attachments, and user management into Django applications"
99
readme = "README.md"
@@ -45,7 +45,7 @@ dev = [
4545

4646
[tool.setuptools.packages.find]
4747
where = ["."]
48-
include = ["velt_integration*"]
48+
include = ["velt_py*"]
4949

5050
[tool.setuptools.package-data]
5151
"*" = ["*.txt", "*.md"]

velt_integration/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
"""
2-
Setup script for Velt Integration SDK
2+
Setup script for Velt Python SDK
33
"""
44
import os
55
from setuptools import setup, find_packages
66

77
setup(
8-
name="velt-integration",
8+
name="velt-py",
99
version="0.1.0",
1010
description="Python SDK for integrating Velt comments, reactions, attachments, and user management into Django applications",
1111
long_description=open("README.md").read() if os.path.exists("README.md") else "",

0 commit comments

Comments
 (0)