dexscreen 0.0.1__tar.gz → 0.0.2__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 (75) hide show
  1. dexscreen-0.0.2/.github/workflows/docs.yml +48 -0
  2. {dexscreen-0.0.1 → dexscreen-0.0.2}/PKG-INFO +1 -1
  3. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/examples.zh.md +3 -3
  4. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/getting-started.zh.md +5 -5
  5. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/index.md +5 -5
  6. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/index.zh.md +17 -17
  7. {dexscreen-0.0.1 → dexscreen-0.0.2}/mkdocs.yml +4 -0
  8. {dexscreen-0.0.1 → dexscreen-0.0.2}/pyproject.toml +3 -3
  9. {dexscreen-0.0.1 → dexscreen-0.0.2}/uv.lock +1 -1
  10. {dexscreen-0.0.1 → dexscreen-0.0.2}/.gitattributes +0 -0
  11. {dexscreen-0.0.1 → dexscreen-0.0.2}/.github/workflows/ci.yml +0 -0
  12. {dexscreen-0.0.1 → dexscreen-0.0.2}/.github/workflows/release.yml +0 -0
  13. {dexscreen-0.0.1 → dexscreen-0.0.2}/.gitignore +0 -0
  14. {dexscreen-0.0.1 → dexscreen-0.0.2}/.nvmrc +0 -0
  15. {dexscreen-0.0.1 → dexscreen-0.0.2}/.pre-commit-config.yaml +0 -0
  16. {dexscreen-0.0.1 → dexscreen-0.0.2}/.prettierignore +0 -0
  17. {dexscreen-0.0.1 → dexscreen-0.0.2}/.prettierrc.json +0 -0
  18. {dexscreen-0.0.1 → dexscreen-0.0.2}/.yamllint +0 -0
  19. {dexscreen-0.0.1 → dexscreen-0.0.2}/LICENSE +0 -0
  20. {dexscreen-0.0.1 → dexscreen-0.0.2}/README.md +0 -0
  21. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/__init__.py +0 -0
  22. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/api/__init__.py +0 -0
  23. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/api/client.py +0 -0
  24. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/config/__init__.py +0 -0
  25. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/core/__init__.py +0 -0
  26. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/core/http.py +0 -0
  27. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/core/models.py +0 -0
  28. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/stream/__init__.py +0 -0
  29. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/stream/polling.py +0 -0
  30. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/utils/__init__.py +0 -0
  31. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/utils/browser_selector.py +0 -0
  32. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/utils/filters.py +0 -0
  33. {dexscreen-0.0.1 → dexscreen-0.0.2}/dexscreen/utils/ratelimit.py +0 -0
  34. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/README.md +0 -0
  35. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/data-models.md +0 -0
  36. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/data-models.zh.md +0 -0
  37. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/filtering.md +0 -0
  38. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/filtering.zh.md +0 -0
  39. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/query-api.md +0 -0
  40. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/query-api.zh.md +0 -0
  41. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/streaming-api.md +0 -0
  42. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/api/streaming-api.zh.md +0 -0
  43. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/examples.md +0 -0
  44. {dexscreen-0.0.1 → dexscreen-0.0.2}/docs/getting-started.md +0 -0
  45. {dexscreen-0.0.1 → dexscreen-0.0.2}/examples/01_async_basic_apis.py +0 -0
  46. {dexscreen-0.0.1 → dexscreen-0.0.2}/examples/02_dynamic_config_update.py +0 -0
  47. {dexscreen-0.0.1 → dexscreen-0.0.2}/examples/03_token_address_polling.py +0 -0
  48. {dexscreen-0.0.1 → dexscreen-0.0.2}/examples/04_dynamic_subscription.py +0 -0
  49. {dexscreen-0.0.1 → dexscreen-0.0.2}/justfile +0 -0
  50. {dexscreen-0.0.1 → dexscreen-0.0.2}/package.json +0 -0
  51. {dexscreen-0.0.1 → dexscreen-0.0.2}/pnpm-lock.yaml +0 -0
  52. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/conftest.py +0 -0
  53. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/integration/test_api_response_format.py +0 -0
  54. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/integration/test_examples.py +0 -0
  55. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/integration/test_pool_endpoint.py +0 -0
  56. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/integration/test_token_endpoints.py +0 -0
  57. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/__init__.py +0 -0
  58. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/api/__init__.py +0 -0
  59. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/api/test_batch_limits.py +0 -0
  60. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/api/test_batch_limits_integration.py +0 -0
  61. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/api/test_client.py +0 -0
  62. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/core/__init__.py +0 -0
  63. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/core/test_dynamic_config.py +0 -0
  64. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/core/test_http.py +0 -0
  65. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/core/test_models.py +0 -0
  66. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/core/test_models_simple.py +0 -0
  67. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/stream/__init__.py +0 -0
  68. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/stream/test_batch_polling.py +0 -0
  69. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/stream/test_polling.py +0 -0
  70. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/utils/__init__.py +0 -0
  71. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/utils/test_filters.py +0 -0
  72. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/unit/utils/test_ratelimit.py +0 -0
  73. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/upstream/test_official_api.py +0 -0
  74. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/upstream/test_official_api_multi.py +0 -0
  75. {dexscreen-0.0.1 → dexscreen-0.0.2}/tests/upstream/test_official_api_rate.py +0 -0
@@ -0,0 +1,48 @@
1
+ name: Deploy Docs
2
+
3
+ on:
4
+ push:
5
+ branches: [main]
6
+ paths:
7
+ - "docs/**"
8
+ - "mkdocs.yml"
9
+ - ".github/workflows/docs.yml"
10
+ - "README.md"
11
+ - "dexscreen/**/*.py" # API changes might need doc updates
12
+ workflow_dispatch:
13
+
14
+ permissions:
15
+ contents: write
16
+ pages: write
17
+ id-token: write
18
+
19
+ jobs:
20
+ deploy:
21
+ runs-on: ubuntu-latest
22
+ steps:
23
+ - uses: actions/checkout@v4
24
+ with:
25
+ fetch-depth: 0
26
+
27
+ - name: Install uv
28
+ uses: astral-sh/setup-uv@v3
29
+
30
+ - name: Set up Python
31
+ run: uv python install 3.12
32
+
33
+ - name: Install dependencies
34
+ run: uv sync --dev
35
+
36
+ - name: Build docs
37
+ run: uv run mkdocs build
38
+
39
+ - name: Deploy to GitHub Pages
40
+ uses: peaceiris/actions-gh-pages@v4
41
+ with:
42
+ github_token: ${{ secrets.GITHUB_TOKEN }}
43
+ publish_dir: ./site
44
+ publish_branch: gh-pages
45
+ force_orphan: true
46
+ user_name: "github-actions[bot]"
47
+ user_email: "github-actions[bot]@users.noreply.github.com"
48
+ commit_message: "Deploy docs from ${{ github.sha }}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dexscreen
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: Python wrapper for Dexscreener API with stable HTTP support
5
5
  Project-URL: Repository, https://github.com/solanab/dexscreen
6
6
  Project-URL: Documentation, https://github.com/solanab/dexscreen#readme
@@ -1019,6 +1019,6 @@ if __name__ == "__main__":
1019
1019
  更多详情,请参见:
1020
1020
 
1021
1021
  - [入门指南](getting-started.zh.md) - 安装和基础知识
1022
- - [查询 API](query-api.zh.md) - 所有查询方法
1023
- - [流式 API](streaming-api.zh.md) - 实时订阅
1024
- - [过滤](filtering.zh.md) - 高级过滤选项
1022
+ - [查询 API](api/query-api.zh.md) - 所有查询方法
1023
+ - [流式 API](api/streaming-api.zh.md) - 实时订阅
1024
+ - [过滤](api/filtering.zh.md) - 高级过滤选项
@@ -324,10 +324,10 @@ if __name__ == "__main__":
324
324
 
325
325
  ### 📚 深入学习
326
326
 
327
- 1. **[查询 API](query-api.zh.md)** - 了解所有可用的数据获取方法
328
- 2. **[流式 API](streaming-api.zh.md)** - 掌握实时数据监控技术
329
- 3. **[数据模型](data-models.zh.md)** - 理解 API 返回的数据结构
330
- 4. **[过滤器](filtering.zh.md)** - 学习高级过滤技术优化性能
327
+ 1. **[查询 API](api/query-api.zh.md)** - 了解所有可用的数据获取方法
328
+ 2. **[流式 API](api/streaming-api.zh.md)** - 掌握实时数据监控技术
329
+ 3. **[数据模型](api/data-models.zh.md)** - 理解 API 返回的数据结构
330
+ 4. **[过滤器](api/filtering.zh.md)** - 学习高级过滤技术优化性能
331
331
  5. **[示例](examples.zh.md)** - 查看完整的生产就绪代码示例
332
332
 
333
333
  ### 🚀 实际项目思路
@@ -450,7 +450,7 @@ class ManagedClient:
450
450
  | 资源类型 | 链接 | 适用情况 |
451
451
  | --------------- | --------------------------------------------------------------------------- | ---------------- |
452
452
  | **📖 完整示例** | [示例页面](examples.zh.md) | 需要工作代码参考 |
453
- | **📋 API 参考** | [查询 API](query-api.zh.md) | 了解具体方法用法 |
453
+ | **📋 API 参考** | [查询 API](api/query-api.zh.md) | 了解具体方法用法 |
454
454
  | **🐛 错误报告** | [GitHub Issues](https://github.com/yourusername/dexscreen/issues) | 发现 bug 或问题 |
455
455
  | **💡 功能建议** | [GitHub Discussions](https://github.com/yourusername/dexscreen/discussions) | 建议新功能 |
456
456
  | **💬 社区讨论** | [GitHub Discussions](https://github.com/yourusername/dexscreen/discussions) | 一般问题和讨论 |
@@ -102,7 +102,7 @@ asyncio.run(main())
102
102
 
103
103
  > **📖 Learn More**: See [Examples](examples.md) for complete, production-ready code examples.
104
104
  >
105
- > **🔍 Need Help?** Check our [troubleshooting section](#-need-help) below or browse the [Examples](examples.md) for
105
+ > **🔍 Need Help?** Check our [troubleshooting section](#need-help) below or browse the [Examples](examples.md) for
106
106
  > common patterns.
107
107
 
108
108
  ## 📊 API Quick Reference
@@ -229,10 +229,10 @@ liquidity_config = FilterConfig(
229
229
 
230
230
  > **🔗 More Examples**: Visit the [Examples page](examples.md) for complete, production-ready implementations.
231
231
  >
232
- > **📊 Performance Tips**: See our [performance optimization](#-best-practices) section and
232
+ > **📊 Performance Tips**: See our [performance optimization](#best-practices) section and
233
233
  > [filtering guide](api/filtering.md) for best practices.
234
234
 
235
- ## 📋 Best Practices
235
+ ## Best Practices
236
236
 
237
237
  ### ⚡ Performance Optimization
238
238
 
@@ -315,7 +315,7 @@ print(f"Active subscriptions: {len(active)}")
315
315
 
316
316
  ---
317
317
 
318
- ## 🆘 Need Help?
318
+ ## Need Help?
319
319
 
320
320
  | Issue Type | Resource |
321
321
  | -------------------- | --------------------------------------------------------------------------- |
@@ -329,6 +329,6 @@ print(f"Active subscriptions: {len(active)}")
329
329
 
330
330
  ## 📄 License
331
331
 
332
- **MIT License** - See [LICENSE](../LICENSE) file for complete terms and conditions.
332
+ **MIT License** - See [LICENSE](https://github.com/yourusername/dexscreen/blob/main/LICENSE) file for complete terms and conditions.
333
333
 
334
334
  > **🙏 Contributing**: We welcome contributions! Please read our contributing guidelines in the GitHub repository.
@@ -23,17 +23,17 @@ API 提供了稳定、可靠且功能丰富的接口,支持实时 DeFi 数据
23
23
  - **[入门指南](getting-started.zh.md)** - 安装、基本设置和首次查询
24
24
  - **[示例](examples.zh.md)** - 常见用例的完整可运行示例
25
25
 
26
- > **💡 新用户路径**:[入门指南](getting-started.zh.md) → [示例](examples.zh.md) → [查询 API](query-api.zh.md) →
27
- > [流式 API](streaming-api.zh.md)
26
+ > **💡 新用户路径**:[入门指南](getting-started.zh.md) → [示例](examples.zh.md) → [查询 API](api/query-api.zh.md) →
27
+ > [流式 API](api/streaming-api.zh.md)
28
28
 
29
29
  ### 📖 API 参考
30
30
 
31
- - **[查询 API](query-api.zh.md)** - 一次性数据获取的所有查询方法综合指南
32
- - **[流式 API](streaming-api.zh.md)** - 持续更新的实时订阅方法
33
- - **[数据模型](data-models.zh.md)** - 所有数据结构和类型的完整参考
34
- - **[过滤器](filtering.zh.md)** - 高级过滤、速率限制和性能优化
31
+ - **[查询 API](api/query-api.zh.md)** - 一次性数据获取的所有查询方法综合指南
32
+ - **[流式 API](api/streaming-api.zh.md)** - 持续更新的实时订阅方法
33
+ - **[数据模型](api/data-models.zh.md)** - 所有数据结构和类型的完整参考
34
+ - **[过滤器](api/filtering.zh.md)** - 高级过滤、速率限制和性能优化
35
35
 
36
- > **⚠️ 重要**:处理 API 响应时请务必查看[数据模型](data-models.zh.md)参考。
36
+ > **⚠️ 重要**:处理 API 响应时请务必查看[数据模型](api/data-models.zh.md)参考。
37
37
 
38
38
  ## ⚡ 快速开始
39
39
 
@@ -101,11 +101,11 @@ asyncio.run(main())
101
101
 
102
102
  > **📖 了解更多**:查看[示例](examples.zh.md)获取完整的生产就绪代码示例。
103
103
  >
104
- > **🔍 需要帮助?**:查看下方的[疑难解答](#-需要帮助)部分或浏览[示例](examples.zh.md)了解常见模式。
104
+ > **🔍 需要帮助?**:查看下方的[疑难解答](#需要帮助)部分或浏览[示例](examples.zh.md)了解常见模式。
105
105
 
106
106
  ## 📊 API 快速参考
107
107
 
108
- ### 🔍 查询方法([完整参考](query-api.zh.md))
108
+ ### 🔍 查询方法([完整参考](api/query-api.zh.md))
109
109
 
110
110
  | 方法 | 描述 | 速率限制 | 使用场景 |
111
111
  | ----------------------------------------------------- | -------------------------- | -------- | -------------- |
@@ -116,7 +116,7 @@ asyncio.run(main())
116
116
  | `get_latest_token_profiles()` | 最新代币档案 | 60/分钟 | 新代币跟踪 |
117
117
  | `get_latest_boosted_tokens()` | 最新推广代币 | 60/分钟 | 推广代币 |
118
118
 
119
- ### 📡 流式方法([完整参考](streaming-api.zh.md))
119
+ ### 📡 流式方法([完整参考](api/streaming-api.zh.md))
120
120
 
121
121
  | 方法 | 描述 | 最适用于 |
122
122
  | ------------------------------------------------------- | -------------------- | -------------- |
@@ -227,9 +227,9 @@ liquidity_config = FilterConfig(
227
227
 
228
228
  > **🔗 更多示例**:访问[示例页面](examples.zh.md)获取完整的生产就绪实现。
229
229
 
230
- > **📊 性能提示**:查看我们的[性能优化](#-最佳实践)部分和[过滤指南](filtering.zh.md)了解最佳实践。
230
+ > **📊 性能提示**:查看我们的[性能优化](#最佳实践)部分和[过滤指南](api/filtering.zh.md)了解最佳实践。
231
231
 
232
- ## 📋 最佳实践
232
+ ## 最佳实践
233
233
 
234
234
  ### ⚡ 性能优化
235
235
 
@@ -246,7 +246,7 @@ liquidity_config = FilterConfig(
246
246
  interval=30.0
247
247
  ```
248
248
 
249
- 2. **🔍 应用智能过滤** - [了解更多](filtering.zh.md)
249
+ 2. **🔍 应用智能过滤** - [了解更多](api/filtering.zh.md)
250
250
 
251
251
  ```python
252
252
  # 仅显著变化
@@ -299,7 +299,7 @@ print(f"活动订阅数: {len(active)}")
299
299
 
300
300
  ### 📚 文档与代码
301
301
 
302
- - **[📖 完整 API 文档](query-api.zh.md)** - 详细的方法参考
302
+ - **[📖 完整 API 文档](api/query-api.zh.md)** - 详细的方法参考
303
303
  - **[🎯 入门教程](getting-started.zh.md)** - 分步设置指南
304
304
  - **[💡 实用示例](examples.zh.md)** - 生产就绪代码示例
305
305
  - **[GitHub 仓库](https://github.com/yourusername/dexscreen)** - 源代码和问题反馈
@@ -312,12 +312,12 @@ print(f"活动订阅数: {len(active)}")
312
312
 
313
313
  ---
314
314
 
315
- ## 🆘 需要帮助?
315
+ ## 需要帮助?
316
316
 
317
317
  | 问题类型 | 资源 |
318
318
  | ------------ | --------------------------------------------------------------------------- |
319
319
  | **快速开始** | [入门指南](getting-started.zh.md) |
320
- | **API 问题** | [查询 API](query-api.zh.md) 或 [流式 API](streaming-api.zh.md) |
320
+ | **API 问题** | [查询 API](api/query-api.zh.md) 或 [流式 API](api/streaming-api.zh.md) |
321
321
  | **代码示例** | [示例页面](examples.zh.md) |
322
322
  | **错误报告** | [GitHub Issues](https://github.com/yourusername/dexscreen/issues) |
323
323
  | **功能请求** | [GitHub Discussions](https://github.com/yourusername/dexscreen/discussions) |
@@ -326,6 +326,6 @@ print(f"活动订阅数: {len(active)}")
326
326
 
327
327
  ## 📄 许可证
328
328
 
329
- **MIT 许可证** - 查看 [LICENSE](../LICENSE) 文件了解完整条款和条件。
329
+ **MIT 许可证** - 查看 [LICENSE](https://github.com/yourusername/dexscreen/blob/main/LICENSE) 文件了解完整条款和条件。
330
330
 
331
331
  > **🙏 贡献**:我们欢迎贡献!请阅读 GitHub 仓库中的贡献指南。
@@ -109,6 +109,10 @@ plugins:
109
109
  Home: 首页
110
110
  Getting Started: 开始使用
111
111
  API Reference: API 参考
112
+ Query API: 查询 API
113
+ Streaming API: 流式 API
114
+ Data Models: 数据模型
115
+ Filtering: 过滤
112
116
  Examples: 示例
113
117
  reconfigure_material: true
114
118
  reconfigure_search: true
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dexscreen"
3
- version = "0.0.1"
3
+ version = "0.0.2"
4
4
  description = "Python wrapper for Dexscreener API with stable HTTP support"
5
5
  authors = [{ name = "solanab", email = "whiredj@gmail.com" }]
6
6
  readme = "README.md"
@@ -45,11 +45,11 @@ dev-dependencies = [
45
45
  "ruff>=0.5.0",
46
46
  "pyright>=1.1.403",
47
47
  "pre-commit>=4.1.0",
48
+ "yamllint>=1.37.1",
49
+ "yamlfix>=1.16.0",
48
50
  # Documentation
49
51
  "mkdocs-material>=9.6.0",
50
52
  "mkdocs-static-i18n>=1.2.0",
51
- "yamllint>=1.37.1",
52
- "yamlfix>=1.16.0",
53
53
  ]
54
54
 
55
55
  [tool.uv.sources]
@@ -371,7 +371,7 @@ wheels = [
371
371
 
372
372
  [[package]]
373
373
  name = "dexscreen"
374
- version = "0.0.1"
374
+ version = "0.0.2"
375
375
  source = { editable = "." }
376
376
  dependencies = [
377
377
  { name = "curl-cffi" },
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