Skip to main content

Surrogate Final BH properties.

Project description


Create social share component in Jinja2 template based on share.js <>_.

Get Started

Installation is easy:

.. code:: bash

$ pip install flask-share

Initialize the extension:

.. code:: python

from flask_share import Share
share = Share(app)

Also support for factory pattern:

.. code:: python

from flask_share import Share
share = Share()

def create_app():
    app = Flask(__name__)


Here is a simple demo to demonstrate how to create a share component in template:

.. code:: html

<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Flask-Share Demo</title>
    {{ share.load() }}
    <h1>Hello, Flask-Share!</h1>
    <p>Maecenas tincidunt lacus at velit. Phasellus in felis. Praesent
    id massa id nisl venenatis lacinia. Integer ac neque. Morbi ut odio.
    Nullam varius. Sed vel enim sit amet nunc viverra dapibus. Nullam
    varius. In hac habitasse platea dictumst.</p>
    {{ share.create(title='Share with: ') }}

And here is what you get:

.. figure::

Before you ask, the share component is highly customizable.


  • Documentation <>_
  • PyPI <>_


We welcome all kinds of contributions. You can run test like this:

.. code:: bash

$ python test


Maintainer: Grey Li <>_

See also the list of contributors <>_ who participated in this project.


This project is licensed under the MIT License (see the LICENSE file for details).

Project details

Download files

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

Files for surfinBH, version 0.0.4.dev2
Filename, size File type Python version Upload date Hashes
Filename, size surfinBH-0.0.4.dev2-py2-none-any.whl (12.4 kB) File type Wheel Python version py2 Upload date Hashes View
Filename, size surfinBH-0.0.4.dev2.tar.gz (10.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page