Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ilevn/aiodictcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aiodictcc

An asnycio-based wrapper for Dict.cc.

Installation

pip install aiodictcc

For the latest development version:

pip install git+https://github.com/ilevn/aiodictcc

Example

import asyncio
from aiodictcc import Translate

# Create a new instance of the API wrapper.
trans = Translate()
loop = asyncio.get_event_loop()

async def main():
    to_translate = input("Search: ")
    # Get translation for `to translate` en -> de.
    translated = await trans.get_translation(to_translate, "en", "de")
    # Returns a list of tuples.
    print(translated)

loop.run_until_complete(main())

About

An asyncio-based wrapper for dict.cc

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages