boostylib 0.1.0__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.
Files changed (121) hide show
  1. boostylib-0.1.0/.env.example +13 -0
  2. boostylib-0.1.0/.github/workflows/ci.yml +35 -0
  3. boostylib-0.1.0/.github/workflows/docs.yml +23 -0
  4. boostylib-0.1.0/.github/workflows/release.yml +80 -0
  5. boostylib-0.1.0/.gitignore +39 -0
  6. boostylib-0.1.0/LICENSE +21 -0
  7. boostylib-0.1.0/PKG-INFO +510 -0
  8. boostylib-0.1.0/README.md +475 -0
  9. boostylib-0.1.0/TECHNICAL_SPEC.md +2171 -0
  10. boostylib-0.1.0/docs/api/builders.md +21 -0
  11. boostylib-0.1.0/docs/api/client.md +19 -0
  12. boostylib-0.1.0/docs/api/config.md +3 -0
  13. boostylib-0.1.0/docs/api/events.md +31 -0
  14. boostylib-0.1.0/docs/api/exceptions.md +15 -0
  15. boostylib-0.1.0/docs/api/models.md +61 -0
  16. boostylib-0.1.0/docs/changelog.md +36 -0
  17. boostylib-0.1.0/docs/examples/auto-responder.md +83 -0
  18. boostylib-0.1.0/docs/examples/discord-bot.md +80 -0
  19. boostylib-0.1.0/docs/examples/telegram-bot.md +88 -0
  20. boostylib-0.1.0/docs/getting-started/authentication.md +101 -0
  21. boostylib-0.1.0/docs/getting-started/installation.md +41 -0
  22. boostylib-0.1.0/docs/getting-started/quickstart.md +82 -0
  23. boostylib-0.1.0/docs/guide/caching.md +95 -0
  24. boostylib-0.1.0/docs/guide/configuration.md +66 -0
  25. boostylib-0.1.0/docs/guide/donations.md +46 -0
  26. boostylib-0.1.0/docs/guide/errors.md +88 -0
  27. boostylib-0.1.0/docs/guide/events.md +92 -0
  28. boostylib-0.1.0/docs/guide/media.md +68 -0
  29. boostylib-0.1.0/docs/guide/middleware.md +75 -0
  30. boostylib-0.1.0/docs/guide/pagination.md +50 -0
  31. boostylib-0.1.0/docs/guide/posts.md +135 -0
  32. boostylib-0.1.0/docs/guide/subscribers.md +66 -0
  33. boostylib-0.1.0/docs/guide/subscriptions.md +74 -0
  34. boostylib-0.1.0/docs/guide/sync.md +68 -0
  35. boostylib-0.1.0/docs/index.md +75 -0
  36. boostylib-0.1.0/mkdocs.yml +78 -0
  37. boostylib-0.1.0/pyproject.toml +94 -0
  38. boostylib-0.1.0/src/boostylib/__init__.py +55 -0
  39. boostylib-0.1.0/src/boostylib/api/__init__.py +25 -0
  40. boostylib-0.1.0/src/boostylib/api/base.py +71 -0
  41. boostylib-0.1.0/src/boostylib/api/blogs.py +22 -0
  42. boostylib-0.1.0/src/boostylib/api/bundles.py +26 -0
  43. boostylib-0.1.0/src/boostylib/api/comments.py +157 -0
  44. boostylib-0.1.0/src/boostylib/api/donations.py +54 -0
  45. boostylib-0.1.0/src/boostylib/api/media.py +66 -0
  46. boostylib-0.1.0/src/boostylib/api/posts.py +191 -0
  47. boostylib-0.1.0/src/boostylib/api/showcase.py +22 -0
  48. boostylib-0.1.0/src/boostylib/api/subscriptions.py +184 -0
  49. boostylib-0.1.0/src/boostylib/api/targets.py +77 -0
  50. boostylib-0.1.0/src/boostylib/api/users.py +30 -0
  51. boostylib-0.1.0/src/boostylib/auth/__init__.py +20 -0
  52. boostylib-0.1.0/src/boostylib/auth/manager.py +150 -0
  53. boostylib-0.1.0/src/boostylib/auth/models.py +23 -0
  54. boostylib-0.1.0/src/boostylib/auth/storage.py +124 -0
  55. boostylib-0.1.0/src/boostylib/builders/__init__.py +5 -0
  56. boostylib-0.1.0/src/boostylib/builders/post_builder.py +154 -0
  57. boostylib-0.1.0/src/boostylib/cache.py +130 -0
  58. boostylib-0.1.0/src/boostylib/client.py +160 -0
  59. boostylib-0.1.0/src/boostylib/config.py +73 -0
  60. boostylib-0.1.0/src/boostylib/enums.py +59 -0
  61. boostylib-0.1.0/src/boostylib/events/__init__.py +13 -0
  62. boostylib-0.1.0/src/boostylib/events/dispatcher.py +55 -0
  63. boostylib-0.1.0/src/boostylib/events/models.py +46 -0
  64. boostylib-0.1.0/src/boostylib/events/poller.py +215 -0
  65. boostylib-0.1.0/src/boostylib/export/__init__.py +0 -0
  66. boostylib-0.1.0/src/boostylib/export/writers/__init__.py +0 -0
  67. boostylib-0.1.0/src/boostylib/http/__init__.py +27 -0
  68. boostylib-0.1.0/src/boostylib/http/exceptions.py +60 -0
  69. boostylib-0.1.0/src/boostylib/http/middleware.py +68 -0
  70. boostylib-0.1.0/src/boostylib/http/rate_limiter.py +46 -0
  71. boostylib-0.1.0/src/boostylib/http/retry.py +62 -0
  72. boostylib-0.1.0/src/boostylib/http/transport.py +227 -0
  73. boostylib-0.1.0/src/boostylib/models/__init__.py +30 -0
  74. boostylib-0.1.0/src/boostylib/models/blog.py +48 -0
  75. boostylib-0.1.0/src/boostylib/models/comment.py +34 -0
  76. boostylib-0.1.0/src/boostylib/models/donation.py +22 -0
  77. boostylib-0.1.0/src/boostylib/models/media.py +21 -0
  78. boostylib-0.1.0/src/boostylib/models/pagination.py +27 -0
  79. boostylib-0.1.0/src/boostylib/models/post.py +87 -0
  80. boostylib-0.1.0/src/boostylib/models/subscriber.py +38 -0
  81. boostylib-0.1.0/src/boostylib/models/subscription.py +46 -0
  82. boostylib-0.1.0/src/boostylib/models/target.py +20 -0
  83. boostylib-0.1.0/src/boostylib/models/user.py +18 -0
  84. boostylib-0.1.0/src/boostylib/plugins/__init__.py +0 -0
  85. boostylib-0.1.0/src/boostylib/py.typed +0 -0
  86. boostylib-0.1.0/src/boostylib/sync/__init__.py +5 -0
  87. boostylib-0.1.0/src/boostylib/sync/_wrapper.py +31 -0
  88. boostylib-0.1.0/src/boostylib/sync/client.py +82 -0
  89. boostylib-0.1.0/tests/__init__.py +0 -0
  90. boostylib-0.1.0/tests/conftest.py +52 -0
  91. boostylib-0.1.0/tests/e2e/__init__.py +0 -0
  92. boostylib-0.1.0/tests/e2e/conftest.py +50 -0
  93. boostylib-0.1.0/tests/e2e/test_comments.py +112 -0
  94. boostylib-0.1.0/tests/e2e/test_post_lifecycle.py +87 -0
  95. boostylib-0.1.0/tests/e2e/test_posts.py +54 -0
  96. boostylib-0.1.0/tests/e2e/test_smoke.py +43 -0
  97. boostylib-0.1.0/tests/e2e/test_subscriber_data.py +47 -0
  98. boostylib-0.1.0/tests/e2e/test_subscription_lifecycle.py +61 -0
  99. boostylib-0.1.0/tests/e2e/test_subscriptions.py +55 -0
  100. boostylib-0.1.0/tests/e2e/test_target_lifecycle.py +69 -0
  101. boostylib-0.1.0/tests/e2e/test_targets.py +38 -0
  102. boostylib-0.1.0/tests/integration/__init__.py +0 -0
  103. boostylib-0.1.0/tests/integration/test_error_handling.py +56 -0
  104. boostylib-0.1.0/tests/integration/test_posts_api.py +88 -0
  105. boostylib-0.1.0/tests/unit/__init__.py +0 -0
  106. boostylib-0.1.0/tests/unit/test_auth/__init__.py +0 -0
  107. boostylib-0.1.0/tests/unit/test_auth/test_token_storage.py +77 -0
  108. boostylib-0.1.0/tests/unit/test_builders/__init__.py +0 -0
  109. boostylib-0.1.0/tests/unit/test_builders/test_post_builder.py +117 -0
  110. boostylib-0.1.0/tests/unit/test_cache.py +93 -0
  111. boostylib-0.1.0/tests/unit/test_events/__init__.py +0 -0
  112. boostylib-0.1.0/tests/unit/test_events/test_dispatcher.py +85 -0
  113. boostylib-0.1.0/tests/unit/test_http/__init__.py +0 -0
  114. boostylib-0.1.0/tests/unit/test_http/test_rate_limiter.py +21 -0
  115. boostylib-0.1.0/tests/unit/test_http/test_retry.py +46 -0
  116. boostylib-0.1.0/tests/unit/test_models/__init__.py +0 -0
  117. boostylib-0.1.0/tests/unit/test_models/test_post.py +71 -0
  118. boostylib-0.1.0/tests/unit/test_models/test_subscriber.py +52 -0
  119. boostylib-0.1.0/tests/unit/test_models/test_subscription.py +39 -0
  120. boostylib-0.1.0/tests/unit/test_sync.py +40 -0
  121. boostylib-0.1.0/uv.lock +900 -0
@@ -0,0 +1,13 @@
1
+ # Copy to .env and fill in your values
2
+ # Get these from browser DevTools → Application → Local Storage → https://boosty.to
3
+
4
+ # From the "auth" object in Local Storage
5
+ BOOSTY_ACCESS_TOKEN=your_access_token_here
6
+ BOOSTY_REFRESH_TOKEN=your_refresh_token_here
7
+ BOOSTY_EXPIRES_AT=0
8
+
9
+ # From "_clentId" key in Local Storage (note the typo — that's how Boosty stores it)
10
+ BOOSTY_DEVICE_ID=your_device_id_here
11
+
12
+ # Your blog username for testing (e.g. "my_blog")
13
+ BOOSTY_TEST_BLOG=your_blog_username_here
@@ -0,0 +1,35 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ pull_request:
7
+ branches: [main]
8
+
9
+ jobs:
10
+ lint:
11
+ runs-on: ubuntu-latest
12
+ steps:
13
+ - uses: actions/checkout@v4
14
+ - uses: astral-sh/setup-uv@v4
15
+ with:
16
+ version: "latest"
17
+ - run: uv sync --extra dev
18
+ - run: uv run ruff check src/ tests/
19
+ - run: uv run ruff format --check src/ tests/
20
+
21
+ test:
22
+ runs-on: ubuntu-latest
23
+ needs: lint
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - uses: astral-sh/setup-uv@v4
27
+ with:
28
+ version: "latest"
29
+ - run: uv sync --extra dev
30
+ - run: uv run pytest -m "unit or integration" --cov --cov-report=xml -v
31
+ - uses: codecov/codecov-action@v4
32
+ if: always()
33
+ with:
34
+ file: ./coverage.xml
35
+ continue-on-error: true
@@ -0,0 +1,23 @@
1
+ name: Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - "docs/**"
8
+ - "mkdocs.yml"
9
+ - "src/boostylib/**"
10
+
11
+ permissions:
12
+ contents: write
13
+
14
+ jobs:
15
+ deploy:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v4
19
+ - uses: astral-sh/setup-uv@v4
20
+ with:
21
+ version: "latest"
22
+ - run: uv sync --extra docs
23
+ - run: uv run mkdocs gh-deploy --force
@@ -0,0 +1,80 @@
1
+ name: Release
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - "v*"
7
+
8
+ permissions:
9
+ contents: write
10
+ id-token: write
11
+
12
+ jobs:
13
+ test:
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - uses: actions/checkout@v4
17
+ - uses: astral-sh/setup-uv@v4
18
+ with:
19
+ version: "latest"
20
+ - run: uv sync --extra dev
21
+ - run: uv run pytest -m "unit or integration" -v
22
+
23
+ build:
24
+ runs-on: ubuntu-latest
25
+ needs: test
26
+ steps:
27
+ - uses: actions/checkout@v4
28
+ - uses: astral-sh/setup-uv@v4
29
+ with:
30
+ version: "latest"
31
+ - run: uv build
32
+ - uses: actions/upload-artifact@v4
33
+ with:
34
+ name: dist
35
+ path: dist/
36
+
37
+ publish-pypi:
38
+ runs-on: ubuntu-latest
39
+ needs: build
40
+ # No "environment" — matches PyPI trusted publisher config "(any)"
41
+ steps:
42
+ - uses: actions/download-artifact@v4
43
+ with:
44
+ name: dist
45
+ path: dist/
46
+ - name: Publish to PyPI (Trusted Publisher)
47
+ uses: pypa/gh-action-pypi-publish@release/v1
48
+ # No token needed — uses OIDC trusted publisher from PyPI
49
+
50
+ github-release:
51
+ runs-on: ubuntu-latest
52
+ needs: build
53
+ steps:
54
+ - uses: actions/checkout@v4
55
+ with:
56
+ fetch-depth: 0
57
+ - uses: actions/download-artifact@v4
58
+ with:
59
+ name: dist
60
+ path: dist/
61
+ - name: Extract version from tag
62
+ id: version
63
+ run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
64
+ - name: Generate release notes
65
+ id: notes
66
+ run: |
67
+ VERSION="${{ steps.version.outputs.VERSION }}"
68
+ NOTES=$(awk "/^## \[${VERSION}\]/{found=1; next} /^## \[/{found=0} found" docs/changelog.md)
69
+ if [ -z "$NOTES" ]; then
70
+ NOTES="Release v${VERSION}"
71
+ fi
72
+ echo "$NOTES" > release_notes.md
73
+ - name: Create GitHub Release
74
+ uses: softprops/action-gh-release@v2
75
+ with:
76
+ body_path: release_notes.md
77
+ files: dist/*
78
+ generate_release_notes: false
79
+ draft: false
80
+ prerelease: ${{ contains(github.ref, 'alpha') || contains(github.ref, 'beta') || contains(github.ref, 'rc') }}
@@ -0,0 +1,39 @@
1
+ # Environment
2
+ .env
3
+ .env.local
4
+
5
+ # Python
6
+ __pycache__/
7
+ *.py[cod]
8
+ *.egg-info/
9
+ dist/
10
+ build/
11
+ .eggs/
12
+
13
+ # Virtual environments
14
+ .venv/
15
+ venv/
16
+
17
+ # IDE
18
+ .idea/
19
+ .vscode/
20
+ *.swp
21
+ *.swo
22
+
23
+ # Testing
24
+ .pytest_cache/
25
+ .coverage
26
+ htmlcov/
27
+ coverage.xml
28
+
29
+ # MkDocs
30
+ site/
31
+
32
+ # OS
33
+ .DS_Store
34
+ Thumbs.db
35
+
36
+ # Temp
37
+ *.tmp
38
+
39
+ TECHNICAL_SPEC.md.claude/
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 BazZziliuS
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.