Skip to main content

Python library for interacting with sona Linku (the lipu Linku API)

Project description

seloLinkuPason

Python API wrapper for sona Linku

selo Linku Pason is an unoficial API wrapper for lipu Linku. lipu Linku is an open-source, collabarative toki pona dictionary. Please note that this code is awful and very much uncommented. This was made in an afternoon and is not intended to be used for anything serious, it’s just for fun. I am not affiliated with the Linku team, full credit goes to them for making such an awesome tool, and making it free for anyone to use.

Instalation

To install, run:

pip install selo-linku

Usage

Import:

import selo_linku as selo
linku = selo.apiv1()

You can use .reload() to reload cache data:

linku.reload()

You can use .getwordfromtp() to get a word object from it's toki pona spelling:

toki = linku.getwordfromtp(word="toki", sandbox=True)
print(toki.name)
> toki
print(toki.definitions['en'])
> communicate, say, think; conversation, story; language

You can find more info at the docs

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

selo_linku-0.0.1.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

selo_linku-0.0.1-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page