Skip to main content

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

pytekdatamuse.

TralahTek TralahM TralahM

Documentation

The cli script provides 22 subcommands to avail the various functionalities offered by the API.

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 --help
$ tekdatamuse [subcommand] --help
$ 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

Metadata

Release files for pytekdatamuse 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytekdatamuse 0.1.0
File Size Uploaded
pytekdatamuse-0.1.0.tar.gz 21.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytekdatamuse 0.1.0
File Interpreter ABI Platform
pytekdatamuse-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 41.6 kB

Release files / pytekdatamuse-0.1.0.tar.gz

Download URL pytekdatamuse-0.1.0.tar.gz
Size 21.8 kB
Tags Source
SHA-256 checksum
How to use checksums
dff481d219311d0d9c17e6cad21bc37e6470242a04518ed43c2d120afdc992fb
BLAKE2b-256 checksum
How to use checksums
ac8d9616b83ba48783aa6d04f359f41b4a588e3da6c80902e874f2d0a05f7e57
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / pytekdatamuse-0.1.0-py3-none-any.whl

Download URL pytekdatamuse-0.1.0-py3-none-any.whl
Size 19.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ba7a50a8c9d969b723cd3bfd711c2596bcba55091b6232ed70cf0ecc64a883b8
BLAKE2b-256 checksum
How to use checksums
8fa67111fecd92825b8011d9951075251bc6a3349b88a72b384baa0713221b9d
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page