mirror of
https://github.com/revanced/revanced-api.git
synced 2025-04-29 22:24:31 +02:00

* feat: sanic framework settings * feat: initial implementation * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor: backend changes * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: docstrings out of place * feat: more gh endpoints * ci: fix pre-commit issues * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * feat: app info * ci: merge CI and fix triggers * chore: bump deps * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * fix: typing issues * chore: deps * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor: clean up returns * ci: spread jobs correctly * ci: move to quodana * ci: fix issues with python modules * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * chore: pycharm config * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * refactor: improve code quality * feat: better README * ci: add quodana baseline config * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ci: fix quodana config * ci: more qodana stuff * ci: revert qodana changes * ci: python interpreter detection is broken * feat: tests * ci: testing * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ci: fix workflow names * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * chore: add deps * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * test: more tests * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * feat: /tools compat * feat: donations endpoint * feat: teams endpoint * fix: lock pydantic version * chore: deps * ci: docker builds * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * ci: remove coverage action and others * ci: pre-commit fixes --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
81 lines
2.1 KiB
Python
81 lines
2.1 KiB
Python
# Social Links
|
|
|
|
from email.policy import default
|
|
|
|
|
|
social_links: dict[str, str] = {
|
|
"website": "https://revanced.app",
|
|
"github": "https://github.com/revanced",
|
|
"twitter": "https://twitter.com/revancedapp",
|
|
"discord": "https://revanced.app/discord",
|
|
"reddit": "https://www.reddit.com/r/revancedapp",
|
|
"telegram": "https://t.me/app_revanced",
|
|
"youtube": "https://www.youtube.com/@ReVanced",
|
|
}
|
|
|
|
# Donation info
|
|
|
|
donation_info: dict[str, str] = {
|
|
"opencollective": "https://opencollective.com/revanced",
|
|
"github": "https://github.com/sponsors/ReVanced",
|
|
"btc": "bc1q4x8j6mt27y5gv0q625t8wkr87ruy8fprpy4v3f",
|
|
"doge": "D8GH73rNjudgi6bS2krrXWEsU9KShedLXp",
|
|
"eth": "0x7ab4091e00363654bf84B34151225742cd92FCE5",
|
|
"ltc": "LbJi8EuoDcwaZvykcKmcrM74jpjde23qJ2",
|
|
"xmr": "46YwWDbZD6jVptuk5mLHsuAmh1BnUMSjSNYacozQQEraWSQ93nb2yYVRHoMR6PmFYWEHsLHg9tr1cH5M8Rtn7YaaGQPCjSh",
|
|
}
|
|
|
|
# API Configuration
|
|
|
|
backend: str = "github"
|
|
redis: dict[str, str | int] = {"host": "localhost", "port": 6379}
|
|
|
|
# GitHub Backend Configuration
|
|
|
|
owner: str = "revanced"
|
|
default_repository: str = ".github"
|
|
|
|
# API Versioning
|
|
|
|
api_version: str = "v2"
|
|
openapi_version: str = "2.0.0"
|
|
openapi_title: str = "ReVanced API"
|
|
openapi_description: str = """
|
|
## The official JSON API for ReVanced Releases 🚀
|
|
|
|
### Links
|
|
|
|
- [Changelogs](https://github.com/revanced/)
|
|
- [Official links to ReVanced](https://revanced.app)
|
|
|
|
### Important Information
|
|
|
|
* Rate Limiting - 60 requests per minute
|
|
* Cache - 5 minutes
|
|
|
|
### Additional Notes
|
|
|
|
1. Breaking changes are to be expected
|
|
2. Client side caching is advised to avoid unnecessary requests
|
|
3. Abuse of the API will result in IP blocks
|
|
"""
|
|
|
|
# Testing Configuration
|
|
|
|
github_testing_repository: str = "revanced-patches"
|
|
github_testing_tag: str = "v2.173.0"
|
|
apkdl_testing_package: str = "com.google.android.youtube"
|
|
|
|
# Old API Configuration
|
|
|
|
compat_api_version: str = "v1"
|
|
compat_repositories: list = [
|
|
"revanced-patcher",
|
|
"revanced-patches",
|
|
"revanced-integrations",
|
|
"revanced-manager",
|
|
"revanced-cli",
|
|
"revanced-website",
|
|
"revanced-releases-api",
|
|
]
|