1. 10 May, 2019 4 commits
  2. 29 Mar, 2019 1 commit
  3. 26 Mar, 2019 4 commits
  4. 22 Mar, 2019 2 commits
  5. 21 Mar, 2019 10 commits
  6. 19 Mar, 2019 4 commits
  7. 18 Mar, 2019 3 commits
  8. 15 Mar, 2019 7 commits
    • Marc Abramowitz's avatar
      Add beautifulsoup4 (w/ soupsieve) · c4e1a414
      Marc Abramowitz authored
      Example:
      
      If you do:
      
      ```js
      languagePluginLoader.then(() => {
        // pyodide is now ready to use...
        pyodide.loadPackage('beautifulsoup4').then(() => {
          pyodide.runPython(`
      text = """
      <div>
        <!-- These are animals -->
        <p class="a">Cat</p>
        <p class="b">Dog</p>
        <p class="c">Mouse</p>
      </div>
      """
      
      from bs4 import BeautifulSoup
      import soupsieve
      soup = BeautifulSoup(text, 'html.parser')
      
      print(soup.select('p:is(.a, .c)'))
          `);
        });
      });
      ```
      
      then the output is:
      
      ```
      [<p class="a">Cat</p>, <p class="c">Mouse</p>]
      ```
      c4e1a414
    • Marc Abramowitz's avatar
      Add pygments package · ea09d500
      Marc Abramowitz authored
      ea09d500
    • Michael Droettboom's avatar
      Partially address #338: Provide simple method for interactive testing · 7441d525
      Michael Droettboom authored
      This adds a basic repl-like console webpage that can be used for
      testing of the local pyodide install.
      
      It removes the broken examples based on standalone iodide.
      7441d525
    • Michael Droettboom's avatar
      Merge pull request #340 from msabramo/bleach · 0a92640d
      Michael Droettboom authored
      Add bleach
      0a92640d
    • Marc Abramowitz's avatar
      Add docutils · d14eee11
      Marc Abramowitz authored
      Example: If you do this:
      
      ```js
      languagePluginLoader.then(() => {
        // pyodide is now ready to use...
        pyodide.loadPackage('docutils').then(() => {
          pyodide.runPython(`
      import docutils.core
      
      print(docutils.core.publish_string("\`Python <http://www.python.org/>\`_ is **cool**!", writer_name='html5', settings_overrides={'embed_stylesheet': False}).decode('utf-8'))
          `);
        });
      });
      ```
      
      then the output is:
      
      ```
      <!DOCTYPE html>
      <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
      <head>
      <meta charset="utf-8"/>
      <meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
      <title>&lt;string&gt;</title>
      <link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/minimal.css" type="text/css" />
      <link rel="stylesheet" href="/lib/python3.7/site-packages/docutils/writers/html5_polyglot/plain.css" type="text/css" />
      </head>
      <body>
      <div class="document">
      <p><a class="reference external" href="http://www.python.org/">Python</a> is <strong>cool</strong>!</p>
      </div>
      </body>
      </html>
      ```
      d14eee11
    • Michael Droettboom's avatar
      Bump version: 0.8.2 → 0.9.0 · 89eca5f5
      Michael Droettboom authored
      89eca5f5
    • Marc Abramowitz's avatar
      Add bleach · e92ba1c9
      Marc Abramowitz authored
      for sanitizing HTML. Example:
      
      ```js
      languagePluginLoader.then(() => {
        // pyodide is now ready to use...
        pyodide.loadPackage('bleach').then(() => {
          pyodide.runPython(`
      import bleach
      
      print(bleach.clean('There is good stuff <script>and bad stuff</script> in here.'))
          `);
        });
      });
      ```
      
      leads to the output:
      
      ```
      There is good stuff &lt;script&gt;and bad stuff&lt;/script&gt; in here.
      ```
      e92ba1c9
  9. 14 Mar, 2019 3 commits
  10. 13 Mar, 2019 2 commits