first commit
This commit is contained in:
@@ -0,0 +1 @@
|
||||
pip
|
||||
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2017 Grey Li
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -0,0 +1,81 @@
|
||||
Metadata-Version: 2.1
|
||||
Name: Flask-Dropzone
|
||||
Version: 1.6.0
|
||||
Summary: Upload files in Flask with Dropzone.js.
|
||||
Home-page: https://github.com/greyli/flask-dropzone
|
||||
Author: Grey Li
|
||||
Author-email: withlihui@gmail.com
|
||||
License: MIT
|
||||
Keywords: flask extension development upload
|
||||
Platform: any
|
||||
Classifier: Development Status :: 5 - Production/Stable
|
||||
Classifier: Environment :: Web Environment
|
||||
Classifier: Intended Audience :: Developers
|
||||
Classifier: License :: OSI Approved :: MIT License
|
||||
Classifier: Programming Language :: Python
|
||||
Classifier: Programming Language :: Python :: 2
|
||||
Classifier: Programming Language :: Python :: 2.7
|
||||
Classifier: Programming Language :: Python :: 3
|
||||
Classifier: Programming Language :: Python :: 3.4
|
||||
Classifier: Programming Language :: Python :: 3.5
|
||||
Classifier: Programming Language :: Python :: 3.6
|
||||
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
|
||||
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
||||
Requires-Dist: Flask
|
||||
|
||||
===============
|
||||
Flask-Dropzone
|
||||
===============
|
||||
|
||||
Flask-Dropzone packages `Dropzone.js
|
||||
<http://dropzonejs.com>`_ into an extension to add file upload support for Flask.
|
||||
It can create links to serve Dropzone from a CDN and works with no JavaScript code in your application.
|
||||
|
||||
NOTICE: This extension is built for simple usage, if you need more flexibility, please use Dropzone.js directly.
|
||||
|
||||
Basic Usage
|
||||
-----------
|
||||
|
||||
Step 1: Initialize the extension:
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
from flask_dropzone import Dropzone
|
||||
|
||||
dropzone = Dropzone(app)
|
||||
|
||||
|
||||
Step 2: In your `<head>` section of your base template add the following code::
|
||||
|
||||
<head>
|
||||
{{ dropzone.load_css() }}
|
||||
</head>
|
||||
<body>
|
||||
...
|
||||
{{ dropzone.load_js() }}
|
||||
</body>
|
||||
|
||||
You can assign the version of Dropzone.js through `version` argument, the default value is `5.2.0`.
|
||||
Step 3: Creating a Drop Zone with `create()`, and configure it with `config()`::
|
||||
|
||||
{{ dropzone.create(action='the_url_which_handle_uploads') }}
|
||||
...
|
||||
{{ dropzone.config() }}
|
||||
|
||||
Also to edit the action view to yours.
|
||||
|
||||
Beautify Dropzone
|
||||
-----------------
|
||||
|
||||
Style it according to your preferences through `style()` method::
|
||||
|
||||
{{ dropzone.style('border: 2px dashed #0087F7; margin: 10%; min-height: 400px;') }}
|
||||
|
||||
More Detail
|
||||
-----------
|
||||
|
||||
Go to `Documentation
|
||||
<https://flask-dropzone.readthedocs.io/en/latest/>`_ , which you can check for more
|
||||
details.
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
Flask_Dropzone-1.6.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4
|
||||
Flask_Dropzone-1.6.0.dist-info/LICENSE.txt,sha256=urWe6H0ZCLXr2ZalRweug84-k_8wYWjAXq28Xc9aWsg,1085
|
||||
Flask_Dropzone-1.6.0.dist-info/METADATA,sha256=0OUcmvmRPA74UU4P14a3eM4NColYn5GI5JXwMRq_Ni4,2365
|
||||
Flask_Dropzone-1.6.0.dist-info/RECORD,,
|
||||
Flask_Dropzone-1.6.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
||||
Flask_Dropzone-1.6.0.dist-info/WHEEL,sha256=Z-nyYpwrcSqxfdux5Mbn_DQ525iP7J2DG3JgGvOYyTQ,110
|
||||
Flask_Dropzone-1.6.0.dist-info/top_level.txt,sha256=tnmF1XttbqOTalmDk8Ple8B9lemHMKPzXFl96tCdVKE,15
|
||||
flask_dropzone/__init__.py,sha256=nC4V2_-dfU-VweN2kDMQri99Rjo4s8GMN6jTGAyppvo,20991
|
||||
flask_dropzone/__pycache__/__init__.cpython-311.pyc,,
|
||||
flask_dropzone/__pycache__/utils.cpython-311.pyc,,
|
||||
flask_dropzone/static/dropzone.min.css,sha256=C1uHyYDGrQDAk1IbmtnkXnXT_u3PkM9wh0hkpLMhy8U,9718
|
||||
flask_dropzone/static/dropzone.min.js,sha256=k394u1_NWzM2OVjwVumG22a0prnevsijOBBv3JrDlx4,42791
|
||||
flask_dropzone/utils.py,sha256=3DloM9U_-YL5ty0S12UXG2GhdYVF1QlL38MtbtOAqpg,728
|
||||
@@ -0,0 +1,6 @@
|
||||
Wheel-Version: 1.0
|
||||
Generator: bdist_wheel (0.36.2)
|
||||
Root-Is-Purelib: true
|
||||
Tag: py2-none-any
|
||||
Tag: py3-none-any
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
flask_dropzone
|
||||
Reference in New Issue
Block a user