📦 serverchain (for ftqq)
简单封装ftqq提供的api,仓库地址 serverchain
非官方版本,具体可以查看仓库源码
参考具体用法官方API
目的在于方便脚本调用,减少重复代码
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
- What is setup.py? on Stack Overflow
- Official Python Packaging User Guide
- The Hitchhiker's Guide to Packaging
- Cookiecutter template for a Python package
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.
Metadata
Release files for serverchain 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| serverchain-0.1.1.tar.gz | 16.7 kB | Without provenance | Details for serverchain-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| serverchain-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for serverchain-0.1.1-py3-none-any.whl |
Total release size: 33.4 kB
Release files / serverchain-0.1.1.tar.gz
| Download URL | serverchain-0.1.1.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6842d89c159bde86a95331939deb4af0280aa1aa3f2d68d2dea30fc45d1dfe0e
|
|
BLAKE2b-256 checksum How to use checksums |
33906976bb855fdc5ae6e2a0b0b847a6f0139a069ca3c2026e80e9679c71a7db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Release files / serverchain-0.1.1-py3-none-any.whl
| Download URL | serverchain-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d9a5b1f78ce6ce9ba5e809a5bc471df39402b14a886998a718bf98211dc91665
|
|
BLAKE2b-256 checksum How to use checksums |
e9ac78c9663406383406077d8af54803950819ea99fc35444216b053e1643f9e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.17
|
Security for serverchain 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.