Oxford API wrapper
Project description
Oxford.py
What is this package for?
This package wrappers Oxford api. Why? The oxford api returns large amount of dict
which hard to read so we decided to simplify it for the oxforfd api users. This package is open source CONTRIBUTE HERE
Get your API key and App ID from https://developer.oxforddictionaries.com/
Uses:
This package works asynchronous.
Oxford.api_request
This returns that whole massive dict so if you want to work with this you can.
import asyncio
from oxford.wrapper import Oxford
x = Oxford(your_app_id, your_app_key, language ='en-gb')
async def main():
data = await x.api_request('People')
return data
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
Oxford.get_word_defination()
import asyncio
from oxford.wrapper import Oxford
x = Oxford(your_app_id, your_app_key, language ='en-gb')
async def main():
data = await x.get_word_defination('People')
return data
loop = asyncio.get_event_loop()
loop.run_until_complete(main())
And much more, I'll leave them to you to explore :)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Oxford.py-0.0.4.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for Oxford.py-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61be5d22ddca595c315defba75580b8a4f3bc96a634d7e6e19ef8e50453e55c9 |
|
MD5 | 93d1e1fc65b1558b0105de86d0b41ac7 |
|
BLAKE2b-256 | 51024148fcfd3162d3f67ba1407467fed8d0e66c2c8ba8e21ec0cade72a3d68b |