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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file Oxford.py-0.0.4.tar.gz.
File metadata
- Download URL: Oxford.py-0.0.4.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b640032c903a1b7718b20919a6837e7d695a8f88321819dce86a3a7413c8080
|
|
| MD5 |
6e92310fc57986afa049f93e094048e0
|
|
| BLAKE2b-256 |
5522800f408186b19b9fd6cc87c333629568bdefb6c772bb6995053a1e649b08
|
File details
Details for the file Oxford.py-0.0.4-py3-none-any.whl.
File metadata
- Download URL: Oxford.py-0.0.4-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
61be5d22ddca595c315defba75580b8a4f3bc96a634d7e6e19ef8e50453e55c9
|
|
| MD5 |
93d1e1fc65b1558b0105de86d0b41ac7
|
|
| BLAKE2b-256 |
51024148fcfd3162d3f67ba1407467fed8d0e66c2c8ba8e21ec0cade72a3d68b
|