Skip to main content

unofficial sdk for serverchain by anysoft.

Project description

📦 serverchain (for ftqq)

简单封装ftqq提供的api,仓库地址 serverchain

非官方版本,具体可以查看仓库源码

参考具体用法官方API

目的在于方便脚本调用,减少重复代码

Check out the example!

Installation

pip install serverchain

demo

from serverchain import ServerChian
from serverchain.channel import Channels

# secret = 'SCU114xxxxx'
secret = 'SCTxxxx'
serverchain = ServerChian(secret)
response = serverchain.push(title="test", desp='just for test')
print(response.text)
print(response.text.encode().decode('unicode_escape'))

response = serverchain.push(title="test1", desp='just for test1', channel='{}|{}'.format(Channels.WECHAT_SERVICE_ACCOUNT, Channels.PUSHDEER))
print(response.text)
print(response.text.encode().decode('unicode_escape'))

To Do

  • Tests via $ setup.py test (if it's concise).

Pull requests are encouraged!

More Resources

License

agpl-3.0

This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.

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

serverchain-0.1.1.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

serverchain-0.1.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file serverchain-0.1.1.tar.gz.

File metadata

  • Download URL: serverchain-0.1.1.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for serverchain-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6842d89c159bde86a95331939deb4af0280aa1aa3f2d68d2dea30fc45d1dfe0e
MD5 2c7340c2505cd3e1270af57816958858
BLAKE2b-256 33906976bb855fdc5ae6e2a0b0b847a6f0139a069ca3c2026e80e9679c71a7db

See more details on using hashes here.

File details

Details for the file serverchain-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: serverchain-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.17

File hashes

Hashes for serverchain-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9a5b1f78ce6ce9ba5e809a5bc471df39402b14a886998a718bf98211dc91665
MD5 b5ad73f38b425e006c0e5c62ef7ccc8b
BLAKE2b-256 e9ac78c9663406383406077d8af54803950819ea99fc35444216b053e1643f9e

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