Skip to main content

async-mediawiki

An asynchronous python libary to get mediawiki content

Codacy Badge BCH compliance FOSSA Status Code style: black

Installation

It requires Python 3.6 or above and aiohttp

pip3 install async-mediawiki

Development Version:

pip3 install git+https://github.com/Gelbpunkt/async-mediawiki

Usage

import async_mediawiki as mw

wiki = mw.Wiki("wiki api url here") #make a Wiki object which is the key to the library
wiki = mw.Wiki.wikipedia("en") #alternate constructor for Wikipedia Wikis
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 = 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

License

FOSSA Status

Metadata

Release files for async-mediawiki 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for async-mediawiki 0.2.0
File Size Uploaded Provenance Actions
async_mediawiki-0.2.0.tar.gz 4.1 kB Without provenance Details for async_mediawiki-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for async-mediawiki 0.2.0
File Interpreter ABI Platform Actions
async_mediawiki-0.2.0-py3-none-any.whl Python 3 none any Details for async_mediawiki-0.2.0-py3-none-any.whl

Total release size: 9.6 kB

Release files / async_mediawiki-0.2.0.tar.gz

Download URL async_mediawiki-0.2.0.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
65c3546689cec945a480ba35099d6cc188811be255eb4aff4a0ca3aaa9b17c83
BLAKE2b-256 checksum
How to use checksums
e1646877b8d4f5b0de0646e91d93ecdf630045a934b64bf0ccbdc0eb59044d0c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

Release files / async_mediawiki-0.2.0-py3-none-any.whl

Download URL async_mediawiki-0.2.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7ea6d2357e4753a7050f3d94ffc1ad75f78468a9657515df4fe7d9e80752c5e8
BLAKE2b-256 checksum
How to use checksums
ac0583100ae2c0d53c8423282ef7933e588c59e4eb76e23098ce2d91ee701432
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.11.0 pkginfo/1.4.2 requests/2.13.0 setuptools/39.2.0 requests-toolbelt/0.8.0 tqdm/4.23.4 CPython/3.6.6

Security for async-mediawiki 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page