{"id":19862795,"url":"https://github.com/pyunits/pyunit-plate","last_synced_at":"2025-08-23T01:09:21.404Z","repository":{"id":57458181,"uuid":"272906090","full_name":"pyunits/pyunit-plate","owner":"pyunits","description":"基于规则抽取车牌号实体：包括种类、地址、数值。各种各样的车牌信息。","archived":false,"fork":false,"pushed_at":"2020-06-17T10:21:51.000Z","size":510,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-07-11T17:51:06.600Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pyunits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-17T07:22:41.000Z","updated_at":"2023-01-30T18:55:24.000Z","dependencies_parsed_at":"2022-09-09T22:51:13.280Z","dependency_job_id":null,"html_url":"https://github.com/pyunits/pyunit-plate","commit_stats":null,"previous_names":["pyunit/pyunit-plate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pyunits/pyunit-plate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyunits%2Fpyunit-plate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyunits%2Fpyunit-plate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyunits%2Fpyunit-plate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyunits%2Fpyunit-plate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pyunits","download_url":"https://codeload.github.com/pyunits/pyunit-plate/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pyunits%2Fpyunit-plate/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271727658,"owners_count":24810561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-12T15:12:42.751Z","updated_at":"2025-08-23T01:09:21.373Z","avatar_url":"https://github.com/pyunits.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# **PyUnit-Plate** [![](https://gitee.com/tyoui/logo/raw/master/logo/photolog.png)][1]\n\n## 基于规则抽取车牌号实体：包括种类、地址、数值。各种各样的车牌信息。\n[![](https://img.shields.io/badge/Python-3.7-green.svg)](https://pypi.org/project/pyunit-address/)\n\n## 安装\n    pip install pyunit-plate\n\n## 车牌种类\n    97式军车牌\n    13式武警车牌\n    新军车牌照\n    民用车牌\n    新能源车牌\n    农用车牌\n  \n## 使用\n```python\nimport pprint\n\nfrom pyunit_plate import plate_number\n\nif __name__ == '__main__':\n    p = plate_number('我家的车牌是贵A12345,他家的车牌是粤B12345D,我家农用车贵0688110,我家爸的车是wj粤8888X')\n    pprint.pprint(p)\n    \"\"\"\n    [{'address': '广东省武警消防部队', 'plate': 'WJ粤8888X', 'type': '13式武警车牌'},\n    {'address': '贵州省贵阳市', 'plate': '贵A12345', 'type': '民用车牌'},\n    {'address': '广东省深圳市', 'plate': '粤B12345D', 'type': '新能源车牌'},\n    {'address': '贵州省毕节', 'plate': '贵0688110', 'type': '农用车牌'}]\n    \"\"\"\n```\n\n## 返回参数\n```json\n[\n  {\"address\": \"车牌地址\", \"plate\": \"车牌号\", \"type\" : \"车牌类型\"}\n]\n```\n\n## Docker部署\n    docker pull jtyoui/pyunit-plate\n    docker run -d -P pyunit-plate\n\n### 车牌号规则提取\n|**参数名**|**类型**|**是否可以为空**|**说明**|\n|------|------|-------|--------|\n|data|string|YES|输入一句话|\n\n### 请求示例\n\u003e #### Python3 Requests测试\n```python\nimport requests\n\nurl = \"http://127.0.0.1:32768/pyunit/plate\"\ndata = {\n    'data': '我家的车牌是贵A12345,他家的车牌是语粤B12345D,我家农用车贵0688110,我家爸的车是wj粤8888X',\n}\nheaders = {'Content-Type': \"application/x-www-form-urlencoded\"}\nresponse = requests.post(url, data=data, headers=headers).json()\nprint(response)\n``` \n\n\u003e #### 返回结果\n```json\n{\n    \"code\": 200,\n    \"result\": [\n        {\n            \"address\": \"广东省武警消防部队\",\n            \"plate\": \"WJ粤8888X\",\n            \"type\": \"13式武警车牌\"\n        },\n        {\n            \"address\": \"贵州省贵阳市\",\n            \"plate\": \"贵A12345\",\n            \"type\": \"民用车牌\"\n        },\n        {\n            \"address\": \"广东省深圳市\",\n            \"plate\": \"粤B12345D\",\n            \"type\": \"新能源车牌\"\n        },\n        {\n            \"address\": \"贵州省毕节\",\n            \"plate\": \"贵0688110\",\n            \"type\": \"农用车牌\"\n        }\n    ]\n}\n```\n\n***\n[1]: https://blog.jtyoui.com","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyunits%2Fpyunit-plate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyunits%2Fpyunit-plate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyunits%2Fpyunit-plate/lists"}