Metadata-Version: 2.1
Name: Flask-Collect-Invenio
Version: 1.4.0
Summary: Flask-Collect-Invenio -- Collect static files in Flask application 
Home-page: http://github.com/inveniosoftware/Flask-Collect-Invenio
Author: Kirill Klenov
Author-email: horneds@gmail.com
License: BSD
Keywords: flask,static,deploy
Platform: any
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python
Classifier: Framework :: Flask
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Utilities
Requires-Dist: Flask (>=0.10.1)
Provides-Extra: all
Requires-Dist: Sphinx (>=3) ; extra == 'all'
Requires-Dist: black (>=21.9b0) ; extra == 'all'
Requires-Dist: check-manifest (>=0.42) ; extra == 'all'
Requires-Dist: coverage (<6,>=5.3) ; extra == 'all'
Requires-Dist: pytest (<7,>=6) ; extra == 'all'
Requires-Dist: pytest-cov (>=2.10.1) ; extra == 'all'
Requires-Dist: pytest-flask (>=1.0.0) ; extra == 'all'
Requires-Dist: pytest-isort (>=1.2.0) ; extra == 'all'
Requires-Dist: pytest-pycodestyle (>=2.2.0) ; extra == 'all'
Requires-Dist: pytest-pydocstyle (>=2.2.0) ; extra == 'all'
Provides-Extra: docs
Requires-Dist: Sphinx (>=3) ; extra == 'docs'
Provides-Extra: tests
Requires-Dist: black (>=21.9b0) ; extra == 'tests'
Requires-Dist: check-manifest (>=0.42) ; extra == 'tests'
Requires-Dist: coverage (<6,>=5.3) ; extra == 'tests'
Requires-Dist: pytest (<7,>=6) ; extra == 'tests'
Requires-Dist: pytest-cov (>=2.10.1) ; extra == 'tests'
Requires-Dist: pytest-flask (>=1.0.0) ; extra == 'tests'
Requires-Dist: pytest-isort (>=1.2.0) ; extra == 'tests'
Requires-Dist: pytest-pycodestyle (>=2.2.0) ; extra == 'tests'
Requires-Dist: pytest-pydocstyle (>=2.2.0) ; extra == 'tests'

Flask-Collect-Invenio
#####################

.. _description:

**Flask-Collect-Invenio** is a fork and drop-in replacement of the original
**Flask-Collect** extension with adjustments to make it compatible with Flask 2.x.

Even though serving static files with *Flask* is a bad idea in a production
environment, this tool will help you collect them in one command.
It checks application and blueprints for static files and copies them to a
specific folder (saves related paths).

.. _badges:

.. image:: https://img.shields.io/pypi/v/flask-collect-invenio.svg?style=flat-square
    :target: https://pypi.python.org/pypi/flask-collect-invenio
    :alt: Version

.. image:: https://img.shields.io/pypi/dm/flask-collect-invenio.svg?style=flat-square
    :target: https://pypi.python.org/pypi/flask-collect-invenio
    :alt: Downloads

.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/psf/black


.. _documentation:

**Docs are available at** http://flask-collect-invenio.readthedocs.org/. **Pull
requests with documentation enhancements and/or fixes are awesome and most
welcome.**

.. _contents:

.. contents::


.. _requirements:

Requirements
=============

- Python 3.6+
- Flask_ >= 0.10.1


.. _installation:

Installation
============

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

    pip install Flask-Collect-Invenio


.. _setup:

Setup
=====

Flask-Collect-Invenio settings (default values): ::

    # Target static dir
    COLLECT_STATIC_ROOT = <APP.ROOT_PATH>/static
    COLLECT_STORAGE = 'flask_collect.storage.file'

Initialize Flask-Collect-Invenio extension: ::

    from flask_collect import Collect

    ...

    collect = Collect()
    collect.init_app(app)

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

    from flask_collect import Collect

    ...
    manager = Manager()
    ...

    collect = Collect()
    collect.init_app(app)
    collect.init_script(manager)

If you configure Flask via a factory function::

    from flask_collect import Collect

    ...

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

        return app


.. _usage:

Use Flask-Collect-Invenio
=========================

From any python script: ::

    collect.collect(verbose=True)

with Flask-Script_: ::

    $ ./manage.py 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 https://github.com/inveniosoftware/Flask-Collect-Invenio/issues


.. _contributing:

Contributors
============

Original Author: Kirill Klenov (horneds@gmail.com)

Also see the `CONTRIBUTORS.rst
<https://github.com/inveniosoftware/Flask-Collect-Invenio/blob/develop/CONTRIBUTORS.rst>`_
file.

Contributing
============

Development of flask-collect-invenio happens at github:
https://github.com/inveniosoftware/Flask-Collect-Invenio


.. _license:

License
=======

Licensed under a `BSD license`_.


.. _links:

.. _BSD license: http://www.linfo.org/bsdlicense.html
.. _klen: http://klen.github.com/
.. _SQLAlchemy: http://www.sqlalchemy.org/
.. _Flask: http://flask.pocoo.org/
.. _Flask-Script: http://github.com/rduplain/flask-script


