# ClashByte
Clash & Clash.Meta 外部控制的 Python 实现
## Get started
1. Install package
```bash
pip install -U clashbyte
```
2. hello world
```python
from clashbyte import ClashMetaAPI
CONTROLLER_URL = "http://127.0.0.1:9090"
if __name__ == '__main__':
clash = ClashMetaAPI()
if clash.is_alive:
print(f"{clash.version=}")
```
Raw data
{
"_id": null,
"home_page": "https://github.com/QIN2DIM/ClashByte",
"name": "clashbyte",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": "",
"keywords": "clashbyte,clash,clash-meta,clashapi",
"author": "QIN2DIM",
"author_email": "yaoqinse@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/34/b2/3ca9e549299f94b24c5dabbb5148f7bc6eced949f5318ed27909c9550291/clashbyte-0.0.5.tar.gz",
"platform": null,
"description": "# ClashByte\r\nClash & Clash.Meta \u5916\u90e8\u63a7\u5236\u7684 Python \u5b9e\u73b0\r\n\r\n## Get started\r\n\r\n1. Install package\r\n\r\n ```bash\r\n pip install -U clashbyte\r\n ```\r\n\r\n2. hello world\r\n\r\n ```python\r\n from clashbyte import ClashMetaAPI\r\n \r\n CONTROLLER_URL = \"http://127.0.0.1:9090\"\r\n \r\n if __name__ == '__main__':\r\n clash = ClashMetaAPI()\r\n if clash.is_alive:\r\n print(f\"{clash.version=}\")\r\n ```\r\n\r\n \r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "",
"version": "0.0.5",
"project_urls": {
"Homepage": "https://github.com/QIN2DIM/ClashByte"
},
"split_keywords": [
"clashbyte",
"clash",
"clash-meta",
"clashapi"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "b55fbf423173f0d243417c8f53e461ea9222e51b819354665cf13dd5701457e9",
"md5": "c2b0defe3aa101b462e13fd2110893d2",
"sha256": "db657ce0ed3b154ac2d84d4fe279c6d2bf8df5e23ede8e6c1bc86e3e36f07e5a"
},
"downloads": -1,
"filename": "clashbyte-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "c2b0defe3aa101b462e13fd2110893d2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 5310,
"upload_time": "2023-07-16T01:54:46",
"upload_time_iso_8601": "2023-07-16T01:54:46.980472Z",
"url": "https://files.pythonhosted.org/packages/b5/5f/bf423173f0d243417c8f53e461ea9222e51b819354665cf13dd5701457e9/clashbyte-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "34b23ca9e549299f94b24c5dabbb5148f7bc6eced949f5318ed27909c9550291",
"md5": "030471c5a6c6723238d504c3c6fa1f16",
"sha256": "e931b384ab070e02b131e6490d861c7c96f8c205ff40792cce2ee564106152fa"
},
"downloads": -1,
"filename": "clashbyte-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "030471c5a6c6723238d504c3c6fa1f16",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 4655,
"upload_time": "2023-07-16T01:54:48",
"upload_time_iso_8601": "2023-07-16T01:54:48.175127Z",
"url": "https://files.pythonhosted.org/packages/34/b2/3ca9e549299f94b24c5dabbb5148f7bc6eced949f5318ed27909c9550291/clashbyte-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-07-16 01:54:48",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "QIN2DIM",
"github_project": "ClashByte",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "clashbyte"
}