Metadata-Version: 2.1
Name: serverchain
Version: 0.1.1
Summary: unofficial sdk for serverchain by anysoft.
Home-page: https://github.com/anysoft/serverchain
Author: anysoft
Author-email: anysoft@yeah.net
License: MIT
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.6.0
Description-Content-Type: text/markdown
License-File: LICENSE


📦 serverchain (for ftqq)
=======================

简单封装[ftqq]提供的api，仓库地址 [serverchain] 

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

参考具体用法官方API

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

[Check out the example!][serverchain]

Installation
-----

```bash
pip install serverchain
```

demo
```python
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](https://packaging.python.org)
-   [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.

  [ftqq]: https://sct.ftqq.com/
  [serverchain]: https://github.com/anysoft/serverchain
  [PyPi]: https://docs.python.org/3/distutils/packageindex.html
  [Twine]: https://pypi.python.org/pypi/twine
  [image]: https://farm1.staticflickr.com/628/33173824932_58add34581_k_d.jpg
  [What is setup.py?]: https://stackoverflow.com/questions/1471994/what-is-setup-py
  [The Hitchhiker's Guide to Packaging]: https://the-hitchhikers-guide-to-packaging.readthedocs.io/en/latest/creation.html
  [Cookiecutter template for a Python package]: https://github.com/audreyr/cookiecutter-pypackage
