-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
68 lines (59 loc) · 1.64 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
"""
Install
```````
.. code::bash
pip install qiniufs
Usage
`````
.. code:: python
# init
bucket_name = "your-qiniu-bucket-name"
prefix_url = "your-qiniu-domain"
fs = QiniuFS(bucket_name, access_key, secret_key, prefix_url)
# upload
mime = data.mimetype
r, d = fs.upload_data(data, mime=mime)
if r and d:
key = d.get('key')
url = fs.get_url(d.get('key'))
# delete
r = fs.delete_file(key)
if r:
print "success"
Links
`````
* `github <https://github.com/blindspoter/qiniufs>`_
"""
from setuptools import setup
setup(
name='qiniufs',
version='1.0.2',
url='https://github.com/blindspoter/qiniufs',
license='MIT',
author='kevinchen',
author_email='wqchen.xjtuer@gmail.com',
keywords='qiniu for flask',
description='qiniu file uploader for flask!',
long_description=__doc__,
py_modules=['qiniufs'],
platforms='any',
install_requires=[
'qiniu==7.1.7'
],
classifiers=[
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.6',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Software Development :: Libraries :: Python Modules'
],
)