Metadata-Version: 2.1
Name: async_mediawiki
Version: 0.1.0
Summary: Async Mediawiki Python libary
Home-page: https://github.com/Gelbpunkt/async-mediawiki
Author: Jens Reidel
Author-email: jens.reidel@gmail.com
License: MIT
Description: # async-mediawiki
        An asynchronous python libary to get mediawiki content
        
        [![BCH compliance](https://bettercodehub.com/edge/badge/Gelbpunkt/async-mediawiki?branch=master)](https://bettercodehub.com/)
        
        # Installation
        
        It requires Python 3.6 or above and aiohttp
        
        `pip3 install async-mediawiki`
        
        # Usage
        ```python
        import async_mediawiki as mw
        
        wiki = mw.Wiki("wiki api url here") #make a Wiki object which is the key to the library
        await wiki.create_account("test", "pass1234") #create an account in the wiki
        await wiki.login("test", "pass1234") #login with the newly made user
        await wiki.get_random_pages(3) #get a list of pages
        
        page = await wiki.get_page("Mediawiki") #get a specific page
        print(await page.html) #print the pure page html
        print(await page.markdown) #print the pure page markdown (wiki code)
        print(await page.text) #print the page's text (library handled filtering of the HTML)
        
        await page.edit("That's a nice lib!") #edit the page, automatically uses the logged in user or anonymous
        await wiki.close() #the Wiki object also supports a context manager (async with) to close automatically
        ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
