# captcha_operation
数字运算验证码
# Install
```
pip install captcha-operation
```
# Test
```python
from captcha_operation.operation import operation
```
## bytes
```python
filepath = os.path.join(os.path.dirname(__file__), 'captcha.png')
result = operation(filepath)
```
## Image
```python
filepath = os.path.join(os.path.dirname(__file__), 'captcha.png')
result = operation(Image.open(filepath))
```
## base64 str
```python
result = operation('iVBORw0KGgoAAAANSUhEUgAAAIcAAAAoCAIAAxxx')
```
Raw data
{
"_id": null,
"home_page": "https://github.com/xiaoxuan6/captcha_operation",
"name": "captcha-operation",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.12",
"maintainer_email": null,
"keywords": "number operation captcha",
"author": "xiaoxuan6",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/e0/1b/5bceafa79bbde3e55bd7b45b7b288e5d0503b9552bbb2c04342686ba5d17/captcha_operation-0.0.2.tar.gz",
"platform": null,
"description": "# captcha_operation\r\n\u6570\u5b57\u8fd0\u7b97\u9a8c\u8bc1\u7801\r\n\r\n# Install\r\n\r\n```\r\npip install captcha-operation\r\n```\r\n\r\n# Test\r\n\r\n```python\r\nfrom captcha_operation.operation import operation\r\n```\r\n\r\n## bytes\r\n\r\n```python\r\nfilepath = os.path.join(os.path.dirname(__file__), 'captcha.png')\r\nresult = operation(filepath)\r\n```\r\n\r\n## Image\r\n\r\n```python\r\nfilepath = os.path.join(os.path.dirname(__file__), 'captcha.png')\r\nresult = operation(Image.open(filepath))\r\n```\r\n\r\n## base64 str\r\n\r\n```python\r\nresult = operation('iVBORw0KGgoAAAANSUhEUgAAAIcAAAAoCAIAAxxx')\r\n```\r\n\r\n",
"bugtrack_url": null,
"license": null,
"summary": "\u6570\u5b57\u8fd0\u7b97\u9a8c\u8bc1\u7801",
"version": "0.0.2",
"project_urls": {
"Homepage": "https://github.com/xiaoxuan6/captcha_operation"
},
"split_keywords": [
"number",
"operation",
"captcha"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "c06667fd07ebac268c7f1670979fac07abdc6f101ac391d684178cebf941da91",
"md5": "a59dad5839a3c02bf930716cc140e262",
"sha256": "55eeb0f869c250e310e645c6778457167db9ba3e5300e68220bd8e4f9d0e80a8"
},
"downloads": -1,
"filename": "captcha_operation-0.0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "a59dad5839a3c02bf930716cc140e262",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.12",
"size": 3813,
"upload_time": "2025-08-03T10:27:58",
"upload_time_iso_8601": "2025-08-03T10:27:58.283744Z",
"url": "https://files.pythonhosted.org/packages/c0/66/67fd07ebac268c7f1670979fac07abdc6f101ac391d684178cebf941da91/captcha_operation-0.0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "e01b5bceafa79bbde3e55bd7b45b7b288e5d0503b9552bbb2c04342686ba5d17",
"md5": "f1e4c24d97ecadbd78ab183065d4dace",
"sha256": "6efad2f89c996429484d91f98014f14085a686dd2ed90a8dcb21f6db2af2a94d"
},
"downloads": -1,
"filename": "captcha_operation-0.0.2.tar.gz",
"has_sig": false,
"md5_digest": "f1e4c24d97ecadbd78ab183065d4dace",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.12",
"size": 3116,
"upload_time": "2025-08-03T10:27:59",
"upload_time_iso_8601": "2025-08-03T10:27:59.696676Z",
"url": "https://files.pythonhosted.org/packages/e0/1b/5bceafa79bbde3e55bd7b45b7b288e5d0503b9552bbb2c04342686ba5d17/captcha_operation-0.0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-08-03 10:27:59",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xiaoxuan6",
"github_project": "captcha_operation",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "ddddocr",
"specs": [
[
"~=",
"1.5.6"
]
]
},
{
"name": "pillow",
"specs": [
[
"~=",
"11.1.0"
]
]
}
],
"lcname": "captcha-operation"
}