Python Wrapper for Wikipedia
Project description
Wikipedia API
This package provides python API for accessing Wikipedia.
Installation
pip install mailgunv3
Usage
domain = 'example.com'
mg = MailGunV3(domain,
'key-asdfghjkl',
'pubkey-asdfghjkl')
res1 = (mg.
mailinglist('mlA-{}@{}'.format(random.randint(0, 10), domain)).
create('Test Mailing List').
delete())
print(repr(res1))
res2 = (mg.
mailinglist('mlB-{}@{}'.format(random.randint(0, 10), domain)).
create('Test Mailing List').
update(
name='New Name',
description='New Description').
get())
print(repr(res2))
res3 = (mg.
mailinglist('newsletter-dev@' + domain).
members())
print(repr(res3))
res4 = (mg.
mailinglist('newsletter-dev@' + domain).
member('a01-{}@{}'.format(random.randint(0, 1000), domain)).
create(
name='Foo Bar',
params={'a': 1, 'b': 2}).
get())
print(repr(res4))
res5 = (mg.
mailinglist('newsletter-dev@' + domain).
member('a01-{}@{}'.format(random.randint(0, 1000), domain)).
update(
name='Foo Bar - EDIT',
params={'a': 1, 'b': 2}).
get())
print(repr(res5))
res6 = (mg.
mailinglist('newsletter-dev@' + domain).
members())
print(repr(res6))
res7 = (mg.
mailinglist('newsletter-dev@' + domain).
member('a01@' + domain).
delete())
print(repr(res7))
External Links
Changelog
0.2
Playing with documentation
0.1
Initial commit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Wikipedia-API-0.1.3.tar.gz
(5.1 kB
view details)
File details
Details for the file Wikipedia-API-0.1.3.tar.gz.
File metadata
- Download URL: Wikipedia-API-0.1.3.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c48a01fb7df198b76303c7832d8ccf3102bac188683f0c4d6df451acbed880b
|
|
| MD5 |
8f0ace707efc287e0393ed32c2aa0c8a
|
|
| BLAKE2b-256 |
3ca756ae6fe14cd40d8e0e69b2bed5fee4b2c8a4d0fe1c97d7799017619a6552
|