Name | bcmapi JSON |
Version |
1.0.1
JSON |
| download |
home_page | None |
Summary | 集成编程猫的API |
upload_time | 2024-05-01 05:53:30 |
maintainer | None |
docs_url | None |
author | None |
requires_python | None |
license | None |
keywords |
python
编程猫
codemao
api
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# bcmapi
## 作者
![阿兹卡班毕业生](https://camo.githubusercontent.com/6c7f3fa09735e1f0b342a1ed8be26153629beedafce894d425e8b7812103c5e3/68747470733a2f2f6769746875622d726561646d652d73746174732e76657263656c2e6170702f6170693f757365726e616d653d617a6b626279732673686f775f69636f6e733d74727565267468656d653d746f6b796f6e69676874 "阿兹卡班毕业生")
[阿兹卡班毕业生](https://shequ.codemao.cn/user/11952313)
## 说明
集成[编程猫](https://shequ.codemao.cn)的API,用简单的代码,实现编程猫和python连接!
## 更新日志
`1.0.1`md文档更新
`1.0.0`基础功能
## 教程
### 登录
```python
from bcmapi import Account
# 实例化一个用户
user = Account(cookie='your_cookie')
# 获取用户信息
print(user.getnickname())
print(user.getid())
print(user.getusergold())
print(user.getrealname())
print(user.getrealsex())
print(user.getusername())
print(user.getusername())
print(user.getbirthday())
print(user.getdescription())
print(user.getphone())
print(user.getlevel())
```
### 获取其它用户信息
```python
from bcmapi import OtherAccount
# 实例化一个用户
user = OtherAccount(id=123456)
# 获取用户信息
print(user.getid())
print(user.getnickname())
print(user.getavatarurl())
print(user.getdescription())
print(user.getlevel())
print(user.getworkshopname())
print(user.getworkshoplevel())
print(user.getviewtimes())
print(user.getfanstotal())
print(user.getcollectedtotal())
print(user.getcollecttimes())
print(user.getlikedtotal())
print(user.getattentiontotal())
print(user.getdoing())
print(user.getotherinfo('doing'))
```
### 获取其它工作室信息
```python
from bcmapi import OtherWorkShop
# 实例化一个工作室
workshop = OtherWorkShop(id=123456)
# 获取工作室信息
print(workshop.getid())
print(workshop.getname())
print(workshop.getdescription())
print(workshop.getlevel())
print(workshop.getpreviewurl())
print(workshop.getcreatedtime())
print(workshop.getotherinfo('name'))
```
### 更新自己的工作室信息
```python
from bcmapi import WorkShop
# 实例化一个工作室
workshop = WorkShop(cookie='your_cookie')
# 更新工作室信息
print(workshop.update_workshop(123456, name='new_name', preview_url='new_preview_url', description='new_description'))
```
Raw data
{
"_id": null,
"home_page": null,
"name": "bcmapi",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": "python, \u7f16\u7a0b\u732b, codemao, api",
"author": null,
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/25/c7/71a93579385eafa79c6b15005316d03d26d8ad4ae950e25902cc29b665a7/bcmapi-1.0.1.tar.gz",
"platform": null,
"description": "\r\n# bcmapi\r\r\n\r\r\n## \u4f5c\u8005\r\r\n\r\r\n![\u963f\u5179\u5361\u73ed\u6bd5\u4e1a\u751f](https://camo.githubusercontent.com/6c7f3fa09735e1f0b342a1ed8be26153629beedafce894d425e8b7812103c5e3/68747470733a2f2f6769746875622d726561646d652d73746174732e76657263656c2e6170702f6170693f757365726e616d653d617a6b626279732673686f775f69636f6e733d74727565267468656d653d746f6b796f6e69676874 \"\u963f\u5179\u5361\u73ed\u6bd5\u4e1a\u751f\")\r\r\n\r\r\n[\u963f\u5179\u5361\u73ed\u6bd5\u4e1a\u751f](https://shequ.codemao.cn/user/11952313)\r\r\n\r\r\n## \u8bf4\u660e\r\r\n\r\r\n\u96c6\u6210[\u7f16\u7a0b\u732b](https://shequ.codemao.cn)\u7684API\uff0c\u7528\u7b80\u5355\u7684\u4ee3\u7801\uff0c\u5b9e\u73b0\u7f16\u7a0b\u732b\u548cpython\u8fde\u63a5\uff01\r\r\n\r\r\n## \u66f4\u65b0\u65e5\u5fd7\r\r\n\r\r\n`1.0.1`md\u6587\u6863\u66f4\u65b0\r\r\n\r\r\n`1.0.0`\u57fa\u7840\u529f\u80fd\r\r\n\r\r\n## \u6559\u7a0b\r\r\n\r\r\n### \u767b\u5f55\r\r\n\r\r\n```python\r\r\n\r\r\nfrom bcmapi import Account\r\r\n\r\r\n\r\r\n# \u5b9e\u4f8b\u5316\u4e00\u4e2a\u7528\u6237\r\r\n\r\r\nuser = Account(cookie='your_cookie')\r\r\n\r\r\n\r\r\n\r\r\n# \u83b7\u53d6\u7528\u6237\u4fe1\u606f\r\r\n\r\r\nprint(user.getnickname())\r\r\n\r\r\nprint(user.getid())\r\r\n\r\r\nprint(user.getusergold())\r\r\n\r\r\nprint(user.getrealname())\r\r\n\r\r\nprint(user.getrealsex())\r\r\n\r\r\nprint(user.getusername())\r\r\n\r\r\nprint(user.getusername())\r\r\n\r\r\nprint(user.getbirthday())\r\r\n\r\r\nprint(user.getdescription())\r\r\n\r\r\nprint(user.getphone())\r\r\n\r\r\nprint(user.getlevel())\r\r\n\r\r\n```\r\r\n\r\r\n### \u83b7\u53d6\u5176\u5b83\u7528\u6237\u4fe1\u606f\r\r\n\r\r\n```python\r\r\n\r\r\nfrom bcmapi import OtherAccount\r\r\n\r\r\n\r\r\n\r\r\n# \u5b9e\u4f8b\u5316\u4e00\u4e2a\u7528\u6237\r\r\n\r\r\nuser = OtherAccount(id=123456)\r\r\n\r\r\n\r\r\n\r\r\n# \u83b7\u53d6\u7528\u6237\u4fe1\u606f\r\r\n\r\r\nprint(user.getid())\r\r\n\r\r\nprint(user.getnickname())\r\r\n\r\r\nprint(user.getavatarurl())\r\r\n\r\r\nprint(user.getdescription())\r\r\n\r\r\nprint(user.getlevel())\r\r\n\r\r\nprint(user.getworkshopname())\r\r\n\r\r\nprint(user.getworkshoplevel())\r\r\n\r\r\nprint(user.getviewtimes())\r\r\n\r\r\nprint(user.getfanstotal())\r\r\n\r\r\nprint(user.getcollectedtotal())\r\r\n\r\r\nprint(user.getcollecttimes())\r\r\n\r\r\nprint(user.getlikedtotal())\r\r\n\r\r\nprint(user.getattentiontotal())\r\r\n\r\r\nprint(user.getdoing())\r\r\n\r\r\nprint(user.getotherinfo('doing'))\r\r\n\r\r\n```\r\r\n\r\r\n### \u83b7\u53d6\u5176\u5b83\u5de5\u4f5c\u5ba4\u4fe1\u606f\r\r\n\r\r\n```python\r\r\n\r\r\nfrom bcmapi import OtherWorkShop\r\r\n\r\r\n\r\r\n\r\r\n# \u5b9e\u4f8b\u5316\u4e00\u4e2a\u5de5\u4f5c\u5ba4\r\r\n\r\r\nworkshop = OtherWorkShop(id=123456)\r\r\n\r\r\n\r\r\n\r\r\n# \u83b7\u53d6\u5de5\u4f5c\u5ba4\u4fe1\u606f\r\r\n\r\r\nprint(workshop.getid())\r\r\n\r\r\nprint(workshop.getname())\r\r\n\r\r\nprint(workshop.getdescription())\r\r\n\r\r\nprint(workshop.getlevel())\r\r\n\r\r\nprint(workshop.getpreviewurl())\r\r\n\r\r\nprint(workshop.getcreatedtime())\r\r\n\r\r\nprint(workshop.getotherinfo('name'))\r\r\n\r\r\n```\r\r\n\r\r\n### \u66f4\u65b0\u81ea\u5df1\u7684\u5de5\u4f5c\u5ba4\u4fe1\u606f\r\r\n\r\r\n```python\r\r\n\r\r\nfrom bcmapi import WorkShop\r\r\n\r\r\n\r\r\n\r\r\n# \u5b9e\u4f8b\u5316\u4e00\u4e2a\u5de5\u4f5c\u5ba4\r\r\n\r\r\nworkshop = WorkShop(cookie='your_cookie')\r\r\n\r\r\n\r\r\n\r\r\n# \u66f4\u65b0\u5de5\u4f5c\u5ba4\u4fe1\u606f\r\r\n\r\r\nprint(workshop.update_workshop(123456, name='new_name', preview_url='new_preview_url', description='new_description'))\r\r\n\r\r\n```\r\r\n",
"bugtrack_url": null,
"license": null,
"summary": "\u96c6\u6210\u7f16\u7a0b\u732b\u7684API",
"version": "1.0.1",
"project_urls": null,
"split_keywords": [
"python",
" \u7f16\u7a0b\u732b",
" codemao",
" api"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "25c771a93579385eafa79c6b15005316d03d26d8ad4ae950e25902cc29b665a7",
"md5": "7bbfd9b1adee74a435b5cba6f4408bdc",
"sha256": "bcbe413e3d44ec83e313270270621482a70c51176cc11dc965aae5be7df7df09"
},
"downloads": -1,
"filename": "bcmapi-1.0.1.tar.gz",
"has_sig": false,
"md5_digest": "7bbfd9b1adee74a435b5cba6f4408bdc",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 2477,
"upload_time": "2024-05-01T05:53:30",
"upload_time_iso_8601": "2024-05-01T05:53:30.676815Z",
"url": "https://files.pythonhosted.org/packages/25/c7/71a93579385eafa79c6b15005316d03d26d8ad4ae950e25902cc29b665a7/bcmapi-1.0.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-01 05:53:30",
"github": false,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"lcname": "bcmapi"
}