Skip to main content

📦 serverchan (for ftqq)

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

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

参考具体用法官方API

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

Check out the example!

Installation

pip install serverchan

demo

from serverchan import ServerChan
from serverchan.channel import Channels

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

response = serverchan.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.

Metadata

Release files for serverchan 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for serverchan 0.1.1
File Size Uploaded Provenance Actions
serverchan-0.1.1.tar.gz 17.4 kB Without provenance Details for serverchan-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for serverchan 0.1.1
File Interpreter ABI Platform Actions
serverchan-0.1.1-py3-none-any.whl Python 3 none any Details for serverchan-0.1.1-py3-none-any.whl

Total release size: 34.3 kB

Release files / serverchan-0.1.1.tar.gz

Download URL serverchan-0.1.1.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0cb1042b968ae5f73ba074a8e23ae018796cb663b9faf14753bd34938c2b7526
BLAKE2b-256 checksum
How to use checksums
142819906a3042857c8dc0aa0f4c04818492b929078c1814057e8b2fa63e73d1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Release files / serverchan-0.1.1-py3-none-any.whl

Download URL serverchan-0.1.1-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19259dd64fa57da23046e7aac9ac48f1aebf57c22c9088c861b36b7c9d2be5f2
BLAKE2b-256 checksum
How to use checksums
7229f20a900b7c3a43e4850185db40b5ca2b620276819c445f2a967538f5ccab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.11

Security for serverchan 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page