Refactor FragmentAPI to pyfragment

- Renamed the package from `fragmentapi` to `pyfragment` across all modules and tests.
- Removed the old wallet utility functions and replaced them with new implementations.
- Updated the `pyproject.toml` to reflect the new package name and repository links.
- Adjusted all import statements in tests to use the new package name.
- Implemented new methods for gifting Telegram Premium, Stars, and topping up TON balance.
- Added exception handling for various error scenarios in the API interactions.
- Created new utility functions for handling HTTP requests and decoding payloads.
- Established a clear structure for types and constants used throughout the library.
This commit is contained in:
bohd4nx
2026-03-15 22:07:01 +02:00
parent 7f269d9a87
commit 8135a9da7e
29 changed files with 68 additions and 68 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import re
import pytest
from fragmentapi.types import BASE_HEADERS, STARS_PAGE
from fragmentapi.utils import get_fragment_hash
from pyfragment.types import BASE_HEADERS, STARS_PAGE
from pyfragment.utils import get_fragment_hash
@pytest.mark.asyncio