Skip to main content

Flask-Collect -- Collect static files in Flask application

Project description

Author: Kirill Klenov
License: BSD
Description: Flask-Collect

.. _description:

**Flask-Collect** is an extension for Flask that helps collecting static files.

Serving static files with *Flask* -- bad idea for production, this tool will
help you collect them in one command. It checks application and blueprints for
static files and copy them to specific folder (saves related paths).

.. _badges:

.. image::
:alt: Build Status

.. image::
:alt: Coverals

.. image::
:alt: Version

.. image::
:alt: Downloads

.. _documentation:

**Docs are available at** **Pull
requests with documentation enhancements and/or fixes are awesome and most

.. _contents:

.. contents::

.. _requirements:


- python (2.6, 2.7, 3.3)
- Flask_ >= 0.10.1

.. _installation:


**Flask-Collect** should be installed using pip: ::

pip install Flask-Collect

.. _setup:


Flask-Collect settings (default values): ::

# Target static dir

Initialize Flask-Collect extension: ::

from flask_collect import Collect


collect = Collect()

If you use Flask-Script_, activate Flask-Collect commands: ::

from flask_collect import Collect

manager = Manager()

collect = Collect()

If you configure Flask via a factory function::

from flask_collect import Collect


def create_app():
app = Flask()
collect = Collect()

return app

.. _usage:

Use Flask-Collect

From any python script: ::


with Flask-Script_: ::

$ ./ collect

with Flask>=0.11: ::

$ flask collect

.. _bugtracker:

Bug tracker

If you have any suggestions, bug reports or annoyances please report them
to the issue tracker at

.. _contributing:


Maintainer: Kirill Klenov (

Also see the `CONTRIBUTORS.rst


Development of flask-collect happens at github:

.. _license:


Licensed under a `BSD license`_.

.. _links:

.. _BSD license:
.. _klen:
.. _SQLAlchemy:
.. _Flask:
.. _Flask-Script:

Keywords: flask,static,deploy
Platform: Any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Natural Language :: Russian
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-Collect-1.3.2.tar.gz (8.1 kB view hashes)

Uploaded source

Built Distribution

Flask_Collect-1.3.2-py2.py3-none-any.whl (11.7 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page