refactor: Rename package from wikijs-python-sdk to py-wikijs and migrate to GitHub

Complete package renaming and platform migration:

Package Name Changes:
- Rename package from 'wikijs-python-sdk' to 'py-wikijs'
- Update setup.py package name
- Update pyproject.toml package name
- Users can now install with: pip install py-wikijs

URL Migration (Gitea → GitHub):
- Replace all Gitea URLs with GitHub URLs
- Update repository: github.com/l3ocho/py-wikijs
- Update issue tracker: github.com/l3ocho/py-wikijs/issues
- Update documentation links
- Fix URL path format (/src/branch/main/ → /blob/main/)

Documentation Updates:
- Update README.md badges (PyPI, GitHub)
- Update installation instructions (pip install py-wikijs)
- Update all doc references to new package name
- Update all examples with GitHub URLs
- Update DEPLOYMENT_READY.md with new package name
- Update deployment.md with new package name

Testing:
- Successfully built py_wikijs-0.1.0.tar.gz (138 KB)
- Successfully built py_wikijs-0.1.0-py3-none-any.whl (66 KB)
- Package installs correctly: pip install py-wikijs
- Imports work: from wikijs import WikiJSClient
- Package metadata correct (Home-page: github.com/l3ocho/py-wikijs)

Breaking Changes:
- Package name changed from wikijs-python-sdk to py-wikijs
- Repository migrated from Gitea to GitHub
- All URLs updated to GitHub

Users should now:
pip install py-wikijs  # Instead of wikijs-python-sdk

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2025-10-23 20:23:50 +00:00
parent c18d00cd47
commit 59cdf5ee01
52 changed files with 128 additions and 125 deletions

View File

@@ -82,7 +82,7 @@ __author__ = "Wiki.js SDK Contributors"
__email__ = ""
__license__ = "MIT"
__description__ = "Professional Python SDK for Wiki.js API integration"
__url__ = "https://github.com/yourusername/wikijs-python-sdk"
__url__ = "https://github.com/yourusername/py-wikijs"
# For type checking
__all__ += [

View File

@@ -1,4 +1,4 @@
"""Async WikiJS client for wikijs-python-sdk."""
"""Async WikiJS client for py-wikijs."""
import json
from typing import Any, Dict, Optional, Union
@@ -8,7 +8,7 @@ try:
except ImportError:
raise ImportError(
"aiohttp is required for async support. "
"Install it with: pip install wikijs-python-sdk[async]"
"Install it with: pip install py-wikijs[async]"
)
from ..auth import APIKeyAuth, AuthHandler
@@ -99,7 +99,7 @@ class AsyncWikiJSClient:
# Request configuration
self.timeout = timeout
self.verify_ssl = verify_ssl
self.user_agent = user_agent or f"wikijs-python-sdk/{__version__}"
self.user_agent = user_agent or f"py-wikijs/{__version__}"
# Endpoint handlers (will be initialized when session is created)
self.pages = AsyncPagesEndpoint(self)

View File

@@ -1,4 +1,4 @@
"""Base async endpoint class for wikijs-python-sdk."""
"""Base async endpoint class for py-wikijs."""
from typing import TYPE_CHECKING, Any, Dict, Optional

View File

@@ -1,4 +1,4 @@
"""Async Pages API endpoint for wikijs-python-sdk."""
"""Async Pages API endpoint for py-wikijs."""
from typing import Any, Dict, List, Optional, Union

View File

@@ -1,4 +1,4 @@
"""Async Users API endpoint for wikijs-python-sdk."""
"""Async Users API endpoint for py-wikijs."""
from typing import Any, Dict, List, Optional, Union

View File

@@ -1,4 +1,4 @@
"""Authentication module for wikijs-python-sdk.
"""Authentication module for py-wikijs.
This module contains authentication handlers for different
authentication methods supported by Wiki.js.

View File

@@ -1,4 +1,4 @@
"""API key authentication for wikijs-python-sdk.
"""API key authentication for py-wikijs.
This module implements API key authentication for Wiki.js instances.
API keys are typically used for server-to-server authentication.

View File

@@ -1,4 +1,4 @@
"""Base authentication interface for wikijs-python-sdk.
"""Base authentication interface for py-wikijs.
This module defines the abstract base class for all authentication handlers,
providing a consistent interface for different authentication methods.

View File

@@ -1,4 +1,4 @@
"""JWT token authentication for wikijs-python-sdk.
"""JWT token authentication for py-wikijs.
This module implements JWT (JSON Web Token) authentication for Wiki.js instances.
JWT tokens are typically used for user-based authentication and have expiration times.

View File

@@ -1,4 +1,4 @@
"""Caching module for wikijs-python-sdk.
"""Caching module for py-wikijs.
This module provides intelligent caching for frequently accessed Wiki.js resources
like pages, users, and groups. It supports multiple cache backends and TTL-based

View File

@@ -1,4 +1,4 @@
"""Base cache interface for wikijs-python-sdk."""
"""Base cache interface for py-wikijs."""
from abc import ABC, abstractmethod
from dataclasses import dataclass

View File

@@ -1,4 +1,4 @@
"""In-memory cache implementation for wikijs-python-sdk."""
"""In-memory cache implementation for py-wikijs."""
import time
from collections import OrderedDict

View File

@@ -1,4 +1,4 @@
"""Main WikiJS client for wikijs-python-sdk."""
"""Main WikiJS client for py-wikijs."""
import json
from typing import Any, Dict, Optional, Union
@@ -95,7 +95,7 @@ class WikiJSClient:
# Request configuration
self.timeout = timeout
self.verify_ssl = verify_ssl
self.user_agent = user_agent or f"wikijs-python-sdk/{__version__}"
self.user_agent = user_agent or f"py-wikijs/{__version__}"
# Cache configuration
self.cache = cache

View File

@@ -1,4 +1,4 @@
"""API endpoints module for wikijs-python-sdk.
"""API endpoints module for py-wikijs.
This module contains endpoint handlers for different
Wiki.js API endpoints.

View File

@@ -1,4 +1,4 @@
"""Base endpoint class for wikijs-python-sdk."""
"""Base endpoint class for py-wikijs."""
from typing import TYPE_CHECKING, Any, Dict, Optional

View File

@@ -1,4 +1,4 @@
"""Pages API endpoint for wikijs-python-sdk."""
"""Pages API endpoint for py-wikijs."""
from typing import Any, Dict, List, Optional, Union

View File

@@ -1,4 +1,4 @@
"""Users API endpoint for wikijs-python-sdk."""
"""Users API endpoint for py-wikijs."""
from typing import Any, Dict, List, Optional, Union

View File

@@ -1,4 +1,4 @@
"""Exception hierarchy for wikijs-python-sdk."""
"""Exception hierarchy for py-wikijs."""
from typing import Any, Dict, Optional

View File

@@ -1,4 +1,4 @@
"""Data models for wikijs-python-sdk."""
"""Data models for py-wikijs."""
from .asset import (
Asset,

View File

@@ -1,4 +1,4 @@
"""Base model functionality for wikijs-python-sdk."""
"""Base model functionality for py-wikijs."""
from datetime import datetime
from typing import Any, Dict, Optional

View File

@@ -1,4 +1,4 @@
"""Page-related data models for wikijs-python-sdk."""
"""Page-related data models for py-wikijs."""
import re
from typing import List, Optional

View File

@@ -1,4 +1,4 @@
"""User-related data models for wikijs-python-sdk."""
"""User-related data models for py-wikijs."""
import re
from typing import List, Optional

View File

@@ -1,4 +1,4 @@
"""Utility functions for wikijs-python-sdk."""
"""Utility functions for py-wikijs."""
from .helpers import (
build_api_url,

View File

@@ -1,4 +1,4 @@
"""Helper utilities for wikijs-python-sdk."""
"""Helper utilities for py-wikijs."""
import re
from typing import Any, Dict

View File

@@ -1,4 +1,4 @@
"""Version information for wikijs-python-sdk."""
"""Version information for py-wikijs."""
__version__ = "0.1.0"
__version_info__ = (0, 1, 0)