testvoltricx 1.0.1__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 (103) hide show
  1. testvoltricx-1.0.1/.DS_Store +0 -0
  2. testvoltricx-1.0.1/.github/workflows/build_and_publish.yml +93 -0
  3. testvoltricx-1.0.1/.github/workflows/deploy-docs.yml +39 -0
  4. testvoltricx-1.0.1/.github/workflows/sonar_Analysis.yml +110 -0
  5. testvoltricx-1.0.1/.github/workflows/version_checks.yml +50 -0
  6. testvoltricx-1.0.1/.gitignore +58 -0
  7. testvoltricx-1.0.1/.pre-commit-config.yaml +35 -0
  8. testvoltricx-1.0.1/LICENSE +21 -0
  9. testvoltricx-1.0.1/PKG-INFO +206 -0
  10. testvoltricx-1.0.1/README.md +183 -0
  11. testvoltricx-1.0.1/assets/banner.svg +175 -0
  12. testvoltricx-1.0.1/assets/logo.svg +69 -0
  13. testvoltricx-1.0.1/docs/.DS_Store +0 -0
  14. testvoltricx-1.0.1/docs/api-reference/enums.md +146 -0
  15. testvoltricx-1.0.1/docs/api-reference/events.md +182 -0
  16. testvoltricx-1.0.1/docs/api-reference/exceptions.md +183 -0
  17. testvoltricx-1.0.1/docs/api-reference/filters.md +235 -0
  18. testvoltricx-1.0.1/docs/api-reference/hypercache.md +156 -0
  19. testvoltricx-1.0.1/docs/api-reference/node.md +232 -0
  20. testvoltricx-1.0.1/docs/api-reference/player.md +259 -0
  21. testvoltricx-1.0.1/docs/api-reference/pool.md +193 -0
  22. testvoltricx-1.0.1/docs/api-reference/queue.md +269 -0
  23. testvoltricx-1.0.1/docs/api-reference/tracks.md +141 -0
  24. testvoltricx-1.0.1/docs/api-reference/typings.md +209 -0
  25. testvoltricx-1.0.1/docs/assets/logo.svg +69 -0
  26. testvoltricx-1.0.1/docs/changelog.md +105 -0
  27. testvoltricx-1.0.1/docs/examples/basic-bot.md +307 -0
  28. testvoltricx-1.0.1/docs/examples/full-bot.md +236 -0
  29. testvoltricx-1.0.1/docs/examples/slash-commands.md +229 -0
  30. testvoltricx-1.0.1/docs/getting-started/configuration.md +186 -0
  31. testvoltricx-1.0.1/docs/getting-started/installation.md +84 -0
  32. testvoltricx-1.0.1/docs/getting-started/lavalink-setup.md +173 -0
  33. testvoltricx-1.0.1/docs/getting-started/quickstart.md +271 -0
  34. testvoltricx-1.0.1/docs/guide/autoplay.md +165 -0
  35. testvoltricx-1.0.1/docs/guide/caching.md +173 -0
  36. testvoltricx-1.0.1/docs/guide/errors.md +174 -0
  37. testvoltricx-1.0.1/docs/guide/events.md +241 -0
  38. testvoltricx-1.0.1/docs/guide/filters.md +315 -0
  39. testvoltricx-1.0.1/docs/guide/nodes.md +199 -0
  40. testvoltricx-1.0.1/docs/guide/playback.md +274 -0
  41. testvoltricx-1.0.1/docs/guide/queue.md +229 -0
  42. testvoltricx-1.0.1/docs/includes/abbreviations.md +8 -0
  43. testvoltricx-1.0.1/docs/index.md +283 -0
  44. testvoltricx-1.0.1/docs/javascripts/extra.js +720 -0
  45. testvoltricx-1.0.1/docs/stylesheets/extra.css +2438 -0
  46. testvoltricx-1.0.1/example/main.py +938 -0
  47. testvoltricx-1.0.1/mkdocs.yml +161 -0
  48. testvoltricx-1.0.1/pyproject.toml +57 -0
  49. testvoltricx-1.0.1/pyrightconfig.json +9 -0
  50. testvoltricx-1.0.1/req.txt +5 -0
  51. testvoltricx-1.0.1/setup.cfg +4 -0
  52. testvoltricx-1.0.1/sonar-project.properties +6 -0
  53. testvoltricx-1.0.1/sonarqube-issues-report.md +202 -0
  54. testvoltricx-1.0.1/tests/conftest.py +60 -0
  55. testvoltricx-1.0.1/tests/test_backoff.py +81 -0
  56. testvoltricx-1.0.1/tests/test_coverage_final.py +432 -0
  57. testvoltricx-1.0.1/tests/test_exceptions.py +133 -0
  58. testvoltricx-1.0.1/tests/test_filters.py +76 -0
  59. testvoltricx-1.0.1/tests/test_filters_extended.py +405 -0
  60. testvoltricx-1.0.1/tests/test_hypercache.py +201 -0
  61. testvoltricx-1.0.1/tests/test_logger.py +174 -0
  62. testvoltricx-1.0.1/tests/test_node.py +519 -0
  63. testvoltricx-1.0.1/tests/test_player.py +87 -0
  64. testvoltricx-1.0.1/tests/test_player_edge.py +525 -0
  65. testvoltricx-1.0.1/tests/test_player_extended.py +598 -0
  66. testvoltricx-1.0.1/tests/test_pool.py +64 -0
  67. testvoltricx-1.0.1/tests/test_pool_edge.py +374 -0
  68. testvoltricx-1.0.1/tests/test_pool_extended.py +245 -0
  69. testvoltricx-1.0.1/tests/test_queue.py +117 -0
  70. testvoltricx-1.0.1/tests/test_queue_extended.py +381 -0
  71. testvoltricx-1.0.1/tests/test_track.py +207 -0
  72. testvoltricx-1.0.1/tests/test_utils.py +51 -0
  73. testvoltricx-1.0.1/tests/test_websocket.py +445 -0
  74. testvoltricx-1.0.1/testvoltricx.egg-info/PKG-INFO +206 -0
  75. testvoltricx-1.0.1/testvoltricx.egg-info/SOURCES.txt +101 -0
  76. testvoltricx-1.0.1/testvoltricx.egg-info/dependency_links.txt +1 -0
  77. testvoltricx-1.0.1/testvoltricx.egg-info/requires.txt +12 -0
  78. testvoltricx-1.0.1/testvoltricx.egg-info/top_level.txt +1 -0
  79. testvoltricx-1.0.1/voltricx/__init__.py +100 -0
  80. testvoltricx-1.0.1/voltricx/__main__.py +68 -0
  81. testvoltricx-1.0.1/voltricx/backoff.py +73 -0
  82. testvoltricx-1.0.1/voltricx/exceptions.py +101 -0
  83. testvoltricx-1.0.1/voltricx/filters.py +553 -0
  84. testvoltricx-1.0.1/voltricx/hypercache.py +251 -0
  85. testvoltricx-1.0.1/voltricx/logger.py +205 -0
  86. testvoltricx-1.0.1/voltricx/node.py +344 -0
  87. testvoltricx-1.0.1/voltricx/player.py +841 -0
  88. testvoltricx-1.0.1/voltricx/pool.py +484 -0
  89. testvoltricx-1.0.1/voltricx/queue.py +294 -0
  90. testvoltricx-1.0.1/voltricx/typings/__init__.py +37 -0
  91. testvoltricx-1.0.1/voltricx/typings/base.py +27 -0
  92. testvoltricx-1.0.1/voltricx/typings/common.py +59 -0
  93. testvoltricx-1.0.1/voltricx/typings/enums.py +91 -0
  94. testvoltricx-1.0.1/voltricx/typings/events.py +84 -0
  95. testvoltricx-1.0.1/voltricx/typings/filters.py +98 -0
  96. testvoltricx-1.0.1/voltricx/typings/node.py +104 -0
  97. testvoltricx-1.0.1/voltricx/typings/player.py +70 -0
  98. testvoltricx-1.0.1/voltricx/typings/routeplanner.py +57 -0
  99. testvoltricx-1.0.1/voltricx/typings/session.py +37 -0
  100. testvoltricx-1.0.1/voltricx/typings/track.py +226 -0
  101. testvoltricx-1.0.1/voltricx/typings/websocket.py +84 -0
  102. testvoltricx-1.0.1/voltricx/utils.py +99 -0
  103. testvoltricx-1.0.1/voltricx/websocket.py +240 -0
Binary file
@@ -0,0 +1,93 @@
1
+ name: Publish to PyPI
2
+ run-name: Publishing to PyPI - ${{ github.ref_name }} by @${{ github.actor }}
3
+
4
+ on:
5
+ push:
6
+ tags:
7
+ - "v*.*.*"
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ test:
12
+ name: Test on Python ${{ matrix.python-version }}
13
+ runs-on: ubuntu-latest
14
+ strategy:
15
+ matrix:
16
+ python-version: ["3.12", "3.13"]
17
+
18
+ steps:
19
+ - uses: actions/checkout@v4
20
+
21
+ - name: Set up Python ${{ matrix.python-version }}
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: ${{ matrix.python-version }}
25
+ cache: 'pip'
26
+
27
+ - name: Install dependencies
28
+ run: |
29
+ python -m pip install --upgrade pip
30
+ pip install .[dev]
31
+
32
+ - name: Run tests
33
+ run: pytest
34
+
35
+ build:
36
+ name: Build distribution
37
+ needs: [test]
38
+ runs-on: ubuntu-latest
39
+ steps:
40
+ - uses: actions/checkout@v4
41
+ - name: Set up Python
42
+ uses: actions/setup-python@v5
43
+ with:
44
+ python-version: "3.13"
45
+ - name: Install build tool
46
+ run: python -m pip install --upgrade build
47
+ - name: Build source and wheel
48
+ run: python -m build
49
+ - name: Store the distribution packages
50
+ uses: actions/upload-artifact@v4
51
+ with:
52
+ name: python-package-distributions
53
+ path: dist/
54
+
55
+ publish-to-pypi:
56
+ name: Upload to PyPI
57
+ needs: [build]
58
+ runs-on: ubuntu-latest
59
+ environment:
60
+ name: pypi
61
+ url: https://pypi.org/project/testvoltricx
62
+ permissions:
63
+ id-token: write
64
+ steps:
65
+ - name: Download all the dists
66
+ uses: actions/download-artifact@v4
67
+ with:
68
+ name: python-package-distributions
69
+ path: dist/
70
+ - name: Publish distribution to PyPI
71
+ uses: pypa/gh-action-pypi-publish@release/v1
72
+ with:
73
+ user: __token__
74
+ password: ${{ secrets.PYPI_API_TOKEN }}
75
+ verbose: true
76
+
77
+ upload-to-github-release:
78
+ name: Upload to GitHub Release
79
+ needs: [build]
80
+ runs-on: ubuntu-latest
81
+ if: startsWith(github.ref, 'refs/tags/')
82
+ permissions:
83
+ contents: write
84
+ steps:
85
+ - name: Download all the dists
86
+ uses: actions/download-artifact@v4
87
+ with:
88
+ name: python-package-distributions
89
+ path: dist/
90
+ - name: Upload to GitHub Release
91
+ uses: softprops/action-gh-release@v2
92
+ with:
93
+ files: dist/*
@@ -0,0 +1,39 @@
1
+ name: Deploy Docs
2
+ run-name: Deploying docs - ${{ github.ref_name }} by @${{ github.actor }}
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - main
8
+ workflow_dispatch:
9
+
10
+ jobs:
11
+ deploy:
12
+ name: Deploying Docs
13
+ runs-on: ubuntu-latest
14
+ permissions:
15
+ contents: write
16
+ steps:
17
+ - uses: actions/checkout@v4
18
+ with:
19
+ fetch-depth: 0
20
+
21
+ - name: Set up Python
22
+ uses: actions/setup-python@v5
23
+ with:
24
+ python-version: "3.12"
25
+
26
+ - name: Install dependencies
27
+ run: |
28
+ python -m pip install --upgrade pip
29
+ pip install mkdocs-material mkdocstrings[python] mike ruff mkdocs-minify-plugin
30
+ pip install -e .
31
+
32
+ - name: Configure Git
33
+ run: |
34
+ git config --global user.name "github-actions[bot]"
35
+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
36
+
37
+ - name: Deploy to GitHub Pages
38
+ run: |
39
+ mkdocs gh-deploy --config-file mkdocs.yml --force
@@ -0,0 +1,110 @@
1
+ name: Sonar Analysis
2
+ run-name: Sonar Analysis - ${{ github.ref_name }} by @${{ github.actor }}
3
+
4
+ on:
5
+ push:
6
+ branches:
7
+ - main
8
+
9
+ pull_request:
10
+ types: [opened, synchronize, reopened, labeled]
11
+ branches:
12
+ - main
13
+
14
+ workflow_dispatch:
15
+
16
+ permissions:
17
+ contents: write
18
+
19
+ jobs:
20
+ build:
21
+ if: |
22
+ (github.event_name == 'push' && github.ref_name == 'main') ||
23
+ (github.event_name == 'pull_request' && (
24
+ contains(github.event.pull_request.labels.*.name, 'sonarcube') ||
25
+ contains(github.event.pull_request.labels.*.name, 'analyze&check')
26
+ )) ||
27
+ (github.event_name == 'workflow_dispatch')
28
+ name: Build and analyze
29
+ runs-on: ubuntu-latest
30
+
31
+ steps:
32
+ - uses: actions/checkout@v4
33
+ with:
34
+ fetch-depth: 0
35
+ - name: Set up Python
36
+ uses: actions/setup-python@v5
37
+ with:
38
+ python-version: "3.12"
39
+ - name: Install dependencies
40
+ run: |
41
+ pip install uv
42
+ uv pip install --system -e ".[dev]"
43
+ - name: Run tests with coverage
44
+ run: pytest --cov=voltricx --cov-report=xml --cov-report=term-missing
45
+ - uses: SonarSource/sonarqube-scan-action@v6
46
+ with:
47
+ args: >
48
+ -Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
49
+ -Dsonar.pullrequest.branch=${{ github.head_ref }}
50
+ -Dsonar.pullrequest.base=${{ github.base_ref }}
51
+ -Dsonar.python.coverage.reportPaths=coverage.xml
52
+ env:
53
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
54
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
55
+ - name: SonarQube Quality Gate check
56
+ uses: sonarsource/sonarqube-quality-gate-action@v1
57
+ timeout-minutes: 5
58
+ env:
59
+ SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
60
+ SONAR_HOST_URL: ${{ secrets.SONAR_HOST_URL }}
61
+
62
+ - name: Fetch and Generate SVG Badges
63
+ if: always()
64
+ run: |
65
+ # Fetch metrics from API
66
+ RESPONSE=$(curl -s -u "${{ secrets.SONAR_TOKEN }}:" "${{ secrets.SONAR_HOST_URL }}/api/measures/component?component=voltricx&metricKeys=coverage,alert_status,bugs,vulnerabilities,code_smells")
67
+
68
+ # Extract values
69
+ STATUS=$(echo "$RESPONSE" | jq -r '.component.measures[] | select(.metric=="alert_status") | .value' || echo "UNKNOWN")
70
+ COVERAGE=$(echo "$RESPONSE" | jq -r '.component.measures[] | select(.metric=="coverage") | .value' || echo "0")
71
+ BUGS=$(echo "$RESPONSE" | jq -r '.component.measures[] | select(.metric=="bugs") | .value' || echo "0")
72
+ VULN=$(echo "$RESPONSE" | jq -r '.component.measures[] | select(.metric=="vulnerabilities") | .value' || echo "0")
73
+ SMELLS=$(echo "$RESPONSE" | jq -r '.component.measures[] | select(.metric=="code_smells") | .value' || echo "0")
74
+
75
+ # Map status to color
76
+ [ "$STATUS" = "OK" ] && COLOR="brightgreen" || COLOR="red"
77
+
78
+ mkdir -p assets
79
+
80
+ # Generate SVGs via Shields.io static API and save locally
81
+ curl -s "https://img.shields.io/badge/quality%20gate-$STATUS-$COLOR?style=flat-square" > assets/quality_gate.svg
82
+ curl -s "https://img.shields.io/badge/coverage-$COVERAGE%25-brightgreen?style=flat-square" > assets/coverage.svg
83
+ curl -s "https://img.shields.io/badge/bugs-$BUGS-red?style=flat-square" > assets/bugs.svg
84
+ curl -s "https://img.shields.io/badge/vulnerabilities-$VULN-orange?style=flat-square" > assets/vulnerabilities.svg
85
+ curl -s "https://img.shields.io/badge/code%20smells-$SMELLS-yellow?style=flat-square" > assets/code_smells.svg
86
+
87
+ # Also keep the JSON for reference
88
+ echo "{\"status\": \"$STATUS\", \"coverage\": \"$COVERAGE\", \"bugs\": \"$BUGS\", \"vulnerabilities\": \"$VULN\", \"code_smells\": \"$SMELLS\", \"last_updated\": \"$(date -u +'%Y-%m-%dT%H:%M:%SZ')\"}" > assets/metrics.json
89
+
90
+ - name: Push Badges to shield-stats
91
+ if: always()
92
+ run: |
93
+ git config --global user.name "github-actions[bot]"
94
+ git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
95
+
96
+ # Clone the shield-stats branch into a separate directory to avoid messing with current source
97
+ git clone --branch shield-stats https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git shield_repo
98
+
99
+ # Copy only the badges we updated
100
+ mkdir -p shield_repo/assets
101
+ cp assets/*.svg shield_repo/assets/
102
+ cp assets/metrics.json shield_repo/assets/
103
+
104
+ cd shield_repo
105
+ git add assets/*.svg assets/metrics.json
106
+
107
+ if ! git diff --cached --quiet; then
108
+ git commit -m "docs: update stats badges [skip ci]"
109
+ git push origin shield-stats
110
+ fi
@@ -0,0 +1,50 @@
1
+ name: Version Checks
2
+ run-name: Py Version checks - ${{ github.ref_name }} by @${{ github.actor }}
3
+
4
+
5
+ on:
6
+ push:
7
+ branches:
8
+ - main
9
+
10
+
11
+ pull_request:
12
+ types: [opened, synchronize, reopened, labeled]
13
+ branches:
14
+ - main
15
+
16
+ workflow_dispatch:
17
+
18
+
19
+ jobs:
20
+ check:
21
+ if: |
22
+ (github.event_name == 'push' && github.ref_name == 'main') ||
23
+ (github.event_name == 'pull_request' && (
24
+ contains(github.event.pull_request.labels.*.name, 'versionchecks') ||
25
+ contains(github.event.pull_request.labels.*.name, 'analyze&check')
26
+ )) ||
27
+ (github.event_name == 'workflow_dispatch')
28
+ runs-on: ubuntu-latest
29
+ strategy:
30
+ fail-fast: false
31
+ matrix:
32
+ python-version: ["3.12", "3.13"]
33
+ steps:
34
+ - uses: actions/checkout@v4
35
+ - name: Set up Python ${{ matrix.python-version }}
36
+ uses: actions/setup-python@v5
37
+ with:
38
+ python-version: ${{ matrix.python-version }}
39
+ - name: Install dependencies
40
+ run: |
41
+ pip install uv
42
+ uv pip install --system -e ".[dev]"
43
+ - name: Ruff Check
44
+ run: ruff check .
45
+ - name: Ruff Format Check
46
+ run: ruff format --check .
47
+ - name: Pyright
48
+ run: pyright
49
+ - name: Run tests with coverage
50
+ run: pytest --cov
@@ -0,0 +1,58 @@
1
+ # System
2
+ .DS_Store
3
+
4
+ # Python
5
+ __pycache__/
6
+ *.py[cod]
7
+ *$py.class
8
+ *.so
9
+ .Python
10
+ build/
11
+ develop-eggs/
12
+ dist/
13
+ downloads/
14
+ eggs/
15
+ .eggs/
16
+ lib/
17
+ lib64/
18
+ parts/
19
+ sdist/
20
+ var/
21
+ wheels/
22
+ *.egg-info/
23
+ .installed.cfg
24
+ *.egg
25
+ .tox/
26
+ .nox/
27
+
28
+ # Environments
29
+ env/
30
+ venv/
31
+ ENV/
32
+ .env
33
+
34
+ # Testing & Coverage
35
+ .pytest_cache
36
+ .ruff_cache
37
+ .coverage
38
+ .cache
39
+ nosetests.xml
40
+ coverage.xml
41
+ *.cover
42
+ .hypothesis
43
+
44
+ # Logs
45
+ *.log
46
+
47
+ # IDEs
48
+ .vscode/
49
+ .idea/
50
+ *.swp
51
+ *.swo
52
+
53
+ # Project specific
54
+ .gemini/
55
+ Contexts/
56
+ oldcode/
57
+ clean_pycache.py
58
+ site/
@@ -0,0 +1,35 @@
1
+ # Pre-commit configuration for voltricx
2
+ # See https://pre-commit.com for more information
3
+ # See https://pre-commit.com/hooks.html for more hooks
4
+ repos:
5
+ - repo: https://github.com/pre-commit/pre-commit-hooks
6
+ rev: v4.5.0
7
+ hooks:
8
+ - id: trailing-whitespace
9
+ - id: end-of-file-fixer
10
+ - id: check-yaml
11
+ args: [ --unsafe ]
12
+ - id: check-added-large-files
13
+
14
+ - repo: https://github.com/astral-sh/ruff-pre-commit
15
+ rev: v0.3.0
16
+ hooks:
17
+ - id: ruff
18
+ args: [ --fix ]
19
+ - id: ruff-format
20
+
21
+ - repo: local
22
+ hooks:
23
+ - id: pyright
24
+ name: pyright
25
+ entry: pyright
26
+ language: system
27
+ types: [python]
28
+ pass_filenames: false
29
+ - id: pytest
30
+ name: pytest
31
+ entry: pytest
32
+ language: system
33
+ types: [python]
34
+ pass_filenames: false
35
+ always_run: true
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2026-Present @JustNixx, @Dipendra-creator and RevvLabs
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.
@@ -0,0 +1,206 @@
1
+ Metadata-Version: 2.4
2
+ Name: testvoltricx
3
+ Version: 1.0.1
4
+ Summary: A modern, simple, and powerful Lavalink wrapper for discord.py.
5
+ Author: @JustNixx, @Dipendra-creator
6
+ License: MIT
7
+ Project-URL: Homepage, https://github.com/ded-lmfao/voltricx
8
+ Requires-Python: >=3.12
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE
11
+ Requires-Dist: discord.py>=2.0.0
12
+ Requires-Dist: pydantic>=2.0.0
13
+ Requires-Dist: aiohttp>=3.8.0
14
+ Requires-Dist: yarl>=1.9.0
15
+ Requires-Dist: python-dotenv>=1.0.0
16
+ Provides-Extra: dev
17
+ Requires-Dist: ruff>=0.3.0; extra == "dev"
18
+ Requires-Dist: pyright>=1.1.300; extra == "dev"
19
+ Requires-Dist: pytest>=8.0.0; extra == "dev"
20
+ Requires-Dist: pytest-asyncio>=0.23.0; extra == "dev"
21
+ Requires-Dist: pytest-cov>=4.1.0; extra == "dev"
22
+ Dynamic: license-file
23
+
24
+ <div align="center">
25
+ <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/banner.svg" width="100%" alt="Voltricx Banner">
26
+
27
+ <h3>The Next-Generation Lavalink Wrapper for Python</h3>
28
+
29
+ <p align="center">
30
+ <a href="https://pypi.org/project/voltricx/" style="text-decoration:none;"><img src="https://img.shields.io/badge/PyPI-v1.0.5-blue?style=for-the-badge&logo=pypi" alt="PyPI version"></a>
31
+ <a href="https://pypi.org/project/voltricx/" style="text-decoration:none;"><img src="https://img.shields.io/badge/python-3.12%2B-3776AB?style=for-the-badge&logo=python" alt="Python versions"></a>
32
+ <a href="LICENSE" style="text-decoration:none;"><img src="https://img.shields.io/badge/license-MIT-blue?style=for-the-badge" alt="License"></a>
33
+ <img src="https://img.shields.io/badge/Status-Stable-brightgreen?style=for-the-badge" alt="Status">
34
+ </p>
35
+
36
+ <p align="center">
37
+ <a href="https://lavalink.dev"><img src="https://img.shields.io/badge/Lavalink-v4.0%2B-FB7713?style=flat-square&logo=lavalink" alt="Lavalink version"></a>
38
+ <img src="https://img.shields.io/badge/Plugins-Native_Support-FB7713?style=flat-square" alt="Plugins Support">
39
+ </p>
40
+
41
+ <p align="center">
42
+ <a href="https://ded-lmfao.github.io/revvcore/"><img src="https://img.shields.io/github/actions/workflow/status/ded-lmfao/revvcore/deploy-docs.yml?branch=main&label=Docs&logo=readthedocs&style=flat-square" alt="Docs"></a>
43
+ <a href="https://github.com/ded-lmfao/revvcore/actions/workflows/version_checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/ded-lmfao/revvcore/version_checks.yml?branch=main&label=Version%20Checks&logo=githubactions&style=flat-square" alt="Version Checks"></a>
44
+ <a href="https://github.com/ded-lmfao/revvcore/actions/workflows/version_checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/ded-lmfao/revvcore/version_checks.yml?branch=main&label=Ruff&logo=ruff&style=flat-square" alt="Ruff Checks"></a>
45
+ <a href="https://github.com/ded-lmfao/revvcore/actions/workflows/version_checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/ded-lmfao/revvcore/version_checks.yml?branch=main&label=Pyright&logo=python&style=flat-square" alt="Pyright"></a>
46
+ <a href="https://github.com/ded-lmfao/revvcore/actions/workflows/version_checks.yml"><img src="https://img.shields.io/github/actions/workflow/status/ded-lmfao/revvcore/version_checks.yml?branch=main&label=Pytest&logo=pytest&style=flat-square" alt="Pytest"></a>
47
+ </p>
48
+
49
+
50
+ <p align="center">
51
+ <a href="https://github.com/ded-lmfao/revvcore/actions/workflows/build_and_publish.yml"><img src="https://img.shields.io/github/actions/workflow/status/ded-lmfao/revvcore/build_and_publish.yml?label=Publish%20to%20PyPI&style=flat-square" alt="Publish to PyPI"></a>
52
+ </p>
53
+
54
+
55
+ <p align="center">
56
+ <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/shield-stats/assets/quality_gate.svg" alt="Quality Gate">
57
+ <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/shield-stats/assets/coverage.svg" alt="Coverage">
58
+ <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/shield-stats/assets/bugs.svg" alt="Bugs">
59
+ <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/shield-stats/assets/vulnerabilities.svg" alt="Vulnerabilities">
60
+ <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/shield-stats/assets/code_smells.svg" alt="Code Smells">
61
+ </p>
62
+ </div>
63
+
64
+ ---
65
+
66
+ **Voltricx** is a high-performance, feature-rich Lavalink wrapper built for modern Discord bot development in Python. Engineered for speed, reliability, and ease of use, Voltricx offers a professional-grade API that makes audio integration seamless and powerful.
67
+
68
+ ---
69
+
70
+ ## <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Table of Contents
71
+ - [Why Voltricx?](#why-voltricx)
72
+ - [Features](#features)
73
+ - [Installation](#installation)
74
+ - [Quickstart](#quickstart)
75
+ - [Examples](#examples)
76
+ - [Contributing](#contributing)
77
+ - [License](#license)
78
+
79
+ ---
80
+
81
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Why Voltricx?
82
+
83
+ <table border="0">
84
+ <tr>
85
+ <td width="52" valign="middle"><img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="44" alt="Icon"></td>
86
+ <td valign="middle"><strong>Next-Gen Performance</strong>: Dual-tier caching (LRU/LFU) powered by <code>HyperCache</code> for lightning-fast data retrieval.</td>
87
+ </tr>
88
+ <tr>
89
+ <td width="52" valign="middle"><img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="44" alt="Icon"></td>
90
+ <td valign="middle"><strong>Strictly Typed</strong>: Comprehensive type hinting and Pydantic v2 validation ensure your code is robust and maintainable.</td>
91
+ </tr>
92
+ <tr>
93
+ <td width="52" valign="middle"><img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="44" alt="Icon"></td>
94
+ <td valign="middle"><strong>High-Fidelity Failover</strong>: Automated node shifting and silent reconnects ensure a seamless listening experience.</td>
95
+ </tr>
96
+ <tr>
97
+ <td width="52" valign="middle"><img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="44" alt="Icon"></td>
98
+ <td valign="middle"><strong>Modern Standards</strong>: Fully compatible with Lavalink v4.0+, including native support for the DAVE E2EE protocol and filters.</td>
99
+ </tr>
100
+ <tr>
101
+ <td width="52" valign="middle"><img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="44" alt="Icon"></td>
102
+ <td valign="middle"><strong>Smart Load Balancing</strong>: Advanced penalty-based node selection for optimal performance across multiple Lavalink nodes.</td>
103
+ </tr>
104
+ </table>
105
+
106
+ ---
107
+
108
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Features
109
+
110
+ - 🚀 **Asynchronous Architecture**: Built from the ground up to be fully async and non-blocking.
111
+ - 📡 **Websocket Management**: Efficient handling of Lavalink websocket connections with automatic retries.
112
+ - 🎹 **Rich Audio Control**: Full support for filters including Equalizer, Timescale, Vibrato, and more.
113
+ - 🌐 **DAVE Protocol**: Support for the latest Discord Audio Video Encryption standards.
114
+ - ⚖️ **Regional Selection**: Intelligent node selection based on guild region and node latency.
115
+
116
+ ---
117
+
118
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Installation
119
+
120
+ Voltricx requires **Python 3.12+**.
121
+
122
+ ```bash
123
+ # Stable version from PyPI
124
+ pip install voltricx
125
+ ```
126
+
127
+ For the latest development version:
128
+ ```bash
129
+ pip install git+https://github.com/ded-lmfao/voltricx.git
130
+ ```
131
+
132
+ ---
133
+
134
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Quickstart
135
+
136
+ Here is a minimal example of how to get up and running with Voltricx.
137
+
138
+ ```python
139
+ import discord
140
+ from discord.ext import commands
141
+ import voltricx
142
+
143
+ class MyBot(commands.Bot):
144
+ def __init__(self):
145
+ super().__init__(command_prefix="!", intents=discord.Intents.all())
146
+
147
+ async def setup_hook(self):
148
+ # Configuration for your Lavalink Node
149
+ config = voltricx.NodeConfig(
150
+ uri="http://localhost:2333",
151
+ password="youshallnotpass",
152
+ identifier="MAIN-NODE"
153
+ )
154
+
155
+ # Initialize the Pool and add the node
156
+ node = voltricx.Node(config=config)
157
+ await voltricx.Pool.add_node(node)
158
+
159
+ bot = MyBot()
160
+
161
+ @bot.event
162
+ async def on_voltricx_node_ready(node: voltricx.Node):
163
+ print(f"✅ Lavalink Node {node.identifier} is ready and connected!")
164
+
165
+ @bot.command()
166
+ async def play(ctx, *, query: str):
167
+ # Retrieve or create a player for the guild
168
+ player: voltricx.Player = ctx.voice_client or await ctx.author.voice.channel.connect(cls=voltricx.Player)
169
+
170
+ # Search for tracks
171
+ tracks = await voltricx.Pool.get_tracks(query)
172
+ if not tracks:
173
+ return await ctx.send("❌ No tracks found.")
174
+
175
+ track = tracks[0]
176
+ await player.play(track)
177
+ await ctx.send(f"🎶 **Now playing**: {track.title}")
178
+
179
+ bot.run("YOUR_BOT_TOKEN")
180
+ ```
181
+
182
+ ---
183
+
184
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Examples
185
+
186
+ Check the [example](example/) directory for advanced usage, including:
187
+ - [Basic Bot Implementation](example/main.py)
188
+ - Custom Queue Handlers
189
+ - Advanced Filters (Nightcore, etc.)
190
+
191
+ ---
192
+
193
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> Contributing
194
+
195
+ We welcome contributions! If you'd like to help improve Voltricx:
196
+ 1. **Fork** the repository.
197
+ 2. **Clone** your fork and create a new feature branch (`git checkout -b feature/amazing-feature`).
198
+ 3. **Commit** your improvements (`git commit -m 'feat: add some amazing feature'`).
199
+ 4. **Push** the changes to your fork (`git push origin feature/amazing-feature`).
200
+ 5. **Open a Pull Request**.
201
+
202
+ ---
203
+
204
+ ### <img src="https://raw.githubusercontent.com/ded-lmfao/revvcore/refs/heads/main/assets/logo.svg" width="32" align="center" alt="Icon"> License
205
+
206
+ Voltricx is released under the MIT License. See [LICENSE](LICENSE) for more information.