import tornado.ioloop
import tornado.web
from qiniu_lite import Cow
cow = Cow('access key', 'secret key')
policy = cow.get_put_policy('bucket name')
class MainHandler(tornado.web.RequestHandler):
def get(self):
self.write('''
<html><body>
<form method="post" action="http://upload.qiniu.com/" enctype="multipart/form-data">
<input name="token" type="hidden" value="%s">
<input name="file" type="file" />
<input name="accept" type="hidden" />
<input type="submit" value="涓婁紶" />
</form>
</body></html>''' % policy.token())
if __name__ == "__main__":
application = tornado.web.Application([
(r"/", MainHandler),
])
application.listen(8888)
tornado.ioloop.IOLoop.instance().start()
Metadata
Release files for qiniu-lite 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| qiniu_lite-1.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Release files / qiniu_lite-1.0.1-py3-none-any.whl
| Download URL | qiniu_lite-1.0.1-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ef8a6d41501f47e2ba460d7d7088fb779417d684d5d84f745f043f1deb7aa7f0
|
|
BLAKE2b-256 checksum How to use checksums |
96bb0f41445e477b673083339f4b4b5c6ffc51ac2853568951c30ce51eae624f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for qiniu-lite 1.0.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.