Skip to main content

"Unofficial Python Wrapper for the Datamuse API."

Project description

Build Status Build status Documentation Status License: GPLv3 Organization Views PRs Welcome GitHub pull-requests Language

pytekdatamuse.

TralahTek TralahM TralahM

Documentation

Documentation

Look at the Datamuse API Docs for a detailed description.

How to Install

# In terminal do:
$ pip install pytekdatamuse

Usage

You can use the cli script

$ tekdatamuse define hypotheses
hypotheses
N 	 a tentative theory about the natural world; a concept that is not yet verified but that if true would explain certain facts or phenomena
N 	 a proposal intended to explain certain facts or observations
N 	 a message expressing an opinion based on incomplete evidence

From python scripts

import tekdatamuse
api=tekdatamuse.Datamuse()
# words
words=api.words(sp="early",md="d")

# get synonyms
syns=api.synonyms("look")

# get antonyms
antonyms=api.antonyms("look")

# get holonyms
holonyms=api.holonyms("look")

# get hypernyms
hypernyms=api.hypernyms("look")

# get hyponyms
hyponyms=api.hyponyms("look")

# get meronyms
meronyms=api.meronyms("look")

# get homophones
homophones=api.homophones("look")

# get rhymes
rhymes=api.rhymes("look")

# get approximate rhymes
approx_rhymes=api.approx_rhymes("look")

# get popular adjectives modifying a noun
noun_modifiers=api.noun_modifiers("look")

# get popular nouns modified by the  adjective
adj_modifiers=api.adj_modifiers("look")

# get word definition
define=api.define("hypotheses")

# autocomplete
completions=api.autocomplete("boo",max=20)

# followers
followers=api.followers("early")

# predecessors
predecessors=api.predecessors("early")

# right_context
right_context=api.right_context("early")

# left_context
left_context=api.left_context("early")

# triggers
triggers=api.triggers("early")

# means_like
means_like=api.means_like("early")

# sounds_like
sounds_like=api.sounds_like("early")

# spelled_like
spelled_like=api.spelled_like("early")

Building from Source for Developers

$ git clone https://github.com/TralahM/pytekdatamuse.git
$ cd pytekdatamuse

Contributing

See the Contributing File

See the Pull Request File

Support

LICENCE

Read the license here

Self-Promotion

TralahM TralahM

Blog

TralahTek

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

pytekdatamuse-0.0.3.tar.gz (21.1 kB view details)

Uploaded Source

Built Distribution

pytekdatamuse-0.0.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

Details for the file pytekdatamuse-0.0.3.tar.gz.

File metadata

  • Download URL: pytekdatamuse-0.0.3.tar.gz
  • Upload date:
  • Size: 21.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for pytekdatamuse-0.0.3.tar.gz
Algorithm Hash digest
SHA256 30d85ddd4ca80a25a3b9c46729dadb3f4d90c526d5c417209cb98440223a31ff
MD5 f89d3dd34e6619acb73fc3dbd26fdf4f
BLAKE2b-256 d062388a4f4e5dc9168c424eac5e995b38f7b0f2a37c84612acd56f4d83d0b10

See more details on using hashes here.

File details

Details for the file pytekdatamuse-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pytekdatamuse-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 19.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for pytekdatamuse-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e1a33baec2bbb337cd6344734a3873e9d104c54a154ab99698352c101a28fd7b
MD5 bdadf800790125bb0281bd0fb1a7e931
BLAKE2b-256 f81d2a626824e20df64b3f7a3f2b809068d0c503ddb542a797be9e0182843a8e

See more details on using hashes here.

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