In Sphinx I know that you can do it:
.. raw:: html
<div style="margin-top:10px;">
<iframe width="560" height="315" src="http://www.youtube.com/embed/_EjisXtMy_Y" frameborder="0" allowfullscreen></iframe>
</div>
In pypi, is there some way to do it?
How about a youtube video?
RST stands for ReStructured Text. It is the standard markup language used for documenting python packages. Sphinx is the Python package that generates an html website from RST files, and it is what we are using to generate this site.
For comments, add 2 periods .. followed by a newline and then your comment indented.
I don't think you can embbed random html on pypi and I'm glad you can't. Pypi should remain a Python Package Index, not a geocities clone.
If you really need to put a Youtube video on your package page you can put an image with a link to the Youtube video using standard restructured text:
.. image:: http://example.com/image-with-the-first-frame.png
:target: http://www.youtube.com/your-video
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With