Skip to main content

Python wrapper for shanbay.com

Project description

python-shanbay

提供一系列操纵扇贝网 (www.shanbay.com) 的 API

Build Pypi version Pypi downloads

Features

  • send/reply message

  • manage team

  • support shanbay api v1

Installation

To install python-shanbay, simply:

$ pip install shanbay

Basic Usage

>>> from shanbay import Shanbay, Message
>>> shanbay = Shanbay('username', 'password')
>>> shanbay.login()
True
>>> message = Message(shanbay)
>>> message.send_message(['mozillazg'], 'hello', 'hello')
True

Changelog

0.3.0 (2014-07-19)

  • 封装 新版扇贝官方 API

  • 修复”扇贝更改小组成员页面的 URL 导致无法获取组员信息”

0.2.1 (2014-06-24)

  • 修复 team.info 无法处理打卡率是 0% 的情况

  • 登录成功时,shanbay.login() 的返回值改为 True

0.2.0 (2014-06-09)

  • 删除 shanbay.API, 因为扇贝网不再支持 API v0.8, 并且新的 API 尚未释出

  • 各 api 接口移除 @property 装饰器

0.1.1 (2014-05-15)

  • 新增站内消息 api

  • 新增小组管理 api

  • 调整 api 接口

具体用法可以参考 tests/ 以及 python-shanbay-team-assistant

0.1.0 (2014-03-31)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

shanbay-0.3.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

shanbay-0.3.0-py2.py3-none-any.whl (10.8 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file shanbay-0.3.0.tar.gz.

File metadata

  • Download URL: shanbay-0.3.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for shanbay-0.3.0.tar.gz
Algorithm Hash digest
SHA256 61d5bfbdb7029f6e3e854435a867f8a0e020178c7ea5d365234741c87f012107
MD5 1a76391225252ea1a7fd72e9f18f895f
BLAKE2b-256 1d6c0ff5eee5e9d25243e539075eaf9925084ae5ec25339eb158acf1c3d0e46c

See more details on using hashes here.

File details

Details for the file shanbay-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for shanbay-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 ea01e106c8f04c56be711a03a078bfcd49ae712931a55f53caaefe071ba950ae
MD5 e02837f8ff393b8cacd763e76084fe6e
BLAKE2b-256 72e80d5357b7a3542d984c4145743ea60e3d27acd72bcf5801e3c19067efe20b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page