Pdfminer.six is a python package for extracting information from PDF documents.
Check out the source on github.
Hugo Shortcodes
Example
vimeo
DisplayUsing the preceding
vimeo
example, the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup.
youtube
The
youtube
shortcode embeds a responsive video player for YouTube videos. Only the ID of the video is required, e.g.:https:<span class="hljs-comment">//www.youtube.com/watch?v=w7Ft2ymGmfc</span>
Example
youtube
InputCopy the YouTube video ID that follows
v=
in the video’s URL and pass it to theyoutube
shortcode:example-youtube-input.md{{<span class="xml"><span class="hljs-tag">< <span class="hljs-attr">youtube</span> <span class="hljs-attr">w7Ft2ymGmfc</span> ></span></span>}}
Furthermore, you can automatically start playback of the embedded video by setting the
autoplay
parameter totrue
. Remember that you can’t mix named and unnamed parameters, so you’ll need to assign the yet unnamed video id to the parameterid
:example-youtube-input-with-autoplay.md{{<span class="xml"><span class="hljs-tag">< <span class="hljs-attr">youtube</span> <span class="hljs-attr">id</span>=<span class="hljs-string">"w7Ft2ymGmfc"</span> <span class="hljs-attr">autoplay</span>=<span class="hljs-string">"true"</span> ></span></span>}}
Example
youtube
OutputUsing the preceding
youtube
example, the following HTML will be added to your rendered website’s markup:example-youtube-output.html<span class="p"><</span><span class="nt">div</span> <span class="na">style</span><span class="o">=</span><span class="s">"position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;"</span><span class="p">></span> <span class="p"><</span><span class="nt">iframe</span> <span class="na">src</span><span class="o">=</span><span class="s">"https://www.youtube.com/embed/w7Ft2ymGmfc?autoplay=1"</span> <span class="na">style</span><span class="o">=</span><span class="s">"position: absolute; top: 0; left: 0; width: 100%; height: 100%; border:0;"</span> <span class="na">allowfullscreen</span> <span class="na">title</span><span class="o">=</span><span class="s">"YouTube Video"</span><span class="p">></span><span class="p"><</span><span class="p">/</span><span class="nt">iframe</span><span class="p">></span> <span class="p"><</span><span class="p">/</span><span class="nt">div</span><span class="p">></span>
Example
youtube
DisplayUsing the preceding
youtube
example (withoutautoplay="true"
), the following simulates the displayed experience for visitors to your website. Naturally, the final display will be contingent on your stylesheets and surrounding markup. The video is also include in the Quick Start of the Hugo documentation.
The Markdown elements outlined in John Gruber’s design document.
Blockquotes with Multiple Paragraphs
Blockquotes can contain multiple paragraphs. Add a
>
on the blank lines between the paragraphs.> Dorothy followed her through many of the beautiful rooms in her castle. > > The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
Links
To create a link, enclose the link text in brackets (e.g.,
[Duck Duck Go]
) and then follow it immediately with the URL in parentheses (e.g.,(https://duckduckgo.com)
).My favorite search engine is [Duck Duck Go](https://duckduckgo.com).
Python Envelope: Mailing for human beings.
Envelopes is a wrapper for Python’s email and smtplib modules. It aims to make working with outgoing e-mail in Python simple and fun.
from envelopes import Envelope, GMailSMTP envelope = Envelope( from_addr=(u'from@example.com', u'From Example'), to_addr=(u'to@example.com', u'To Example'), subject=u'Envelopes demo', text_body=u"I'm a helicopter!" ) envelope.add_attachment('/Users/bilbo/Pictures/helicopter.jpg') # Send the envelope using an ad-hoc connection... envelope.send('smtp.googlemail.com', login='from@example.com', password='password', tls=True) # Or send the envelope using a shared GMail connection... gmail = GMailSMTP('from@example.com', 'password') gmail.send(envelope)