gmarmstrong / Python Datamuse
Licence: mit
Python 3 wrapper for the Datamuse API
Stars: ✭ 47
Programming Languages
python
139335 projects - #7 most used programming language
Projects that are alternatives of or similar to Python Datamuse
Vestaboard
An API Wrapper for Vestaboards written in Python
Stars: ✭ 23 (-51.06%)
Mutual labels: pypi, api-wrapper
mojang
A wrapper for the Mojang API and Minecraft website
Stars: ✭ 19 (-59.57%)
Mutual labels: pypi, api-wrapper
Jetson stats
📊 Simple package for monitoring and control your NVIDIA Jetson [Xavier NX, Nano, AGX Xavier, TX1, TX2]
Stars: ✭ 908 (+1831.91%)
Mutual labels: pypi
Senpai
💨Making communication📞easier and faster🚅for all 👦 + 👧 + 👴 + 👶 + 🐮 + 🐦 + 🐱
Stars: ✭ 43 (-8.51%)
Mutual labels: pypi
Phonemes
Jason Riggle's chart of phonological features in JSON format + extras
Stars: ✭ 33 (-29.79%)
Mutual labels: linguistics
Apipie
Transform api declaration to js object for frontend. Inspired by VueRouter, koa-middleware and axios.
Stars: ✭ 29 (-38.3%)
Mutual labels: api-wrapper
Golang Tmdb
This is a Golang wrapper for working with TMDb API. It aims to support version 3.
Stars: ✭ 36 (-23.4%)
Mutual labels: api-wrapper
Github Trending Cli
A Python package which lists trending repositories and developers from Github
Stars: ✭ 15 (-68.09%)
Mutual labels: pypi
Lexicon
Manipulate DNS records on various DNS providers in a standardized way.
Stars: ✭ 1,028 (+2087.23%)
Mutual labels: pypi
Nem Php
NEM Blockchain NIS API Wrapper and Software Development Kit for PHP
Stars: ✭ 32 (-31.91%)
Mutual labels: api-wrapper
Plyer
Plyer is a platform-independent Python wrapper for platform-dependent APIs
Stars: ✭ 949 (+1919.15%)
Mutual labels: api-wrapper
Stashapicsharp
[Atlassian] Bitbucket Server/Stash API wrapper built in C#
Stars: ✭ 28 (-40.43%)
Mutual labels: api-wrapper
Psychopy
For running psychology and neuroscience experiments
Stars: ✭ 1,020 (+2070.21%)
Mutual labels: linguistics
Socli
Stack overflow command line client. Search and browse stack overflow without leaving the terminal 💻
Stars: ✭ 911 (+1838.3%)
Mutual labels: pypi
Guiscrcpy
A full fledged GUI integration for the most award winning open-source android screen mirroring system -- scrcpy located on https://github.com/genymobile/scrcpy/ by @rom1v
Stars: ✭ 960 (+1942.55%)
Mutual labels: pypi
Frisbee
🐕 Modern fetch-based alternative to axios/superagent/request. Great for React Native.
Stars: ✭ 1,038 (+2108.51%)
Mutual labels: api-wrapper
python-datamuse
Python wrapper and scripts for the Datamuse API.
Available on PyPI at https://pypi.python.org/pypi/python-datamuse. You can
install this library with pip3 install python-datamuse
.
Changelog
Version 1.3.* (2019-09-20)
- Add optional arguments to
suggest
method - Document and test suggestion method
- (1.3.1): Update README example
- (1.3.1): Remove WORD_PARAMS
-
(1.3.1): Document
words
method
Version 1.2.* (2018-10-23)
- Raise Python version to 3.6
- Mock the Datamuse API for tests
- Restructure project files
- Set README as PyPI long description
- (1.2.1): Fix README formatting on PyPI
Version 1.1.0 (2018-02-18)
- Changed to Python 3
- Uploaded to PyPI, added instructions for PyPI installation
- Changed README example to reflect PyPI packaging
- Set up Travis CI
- Temporarily removed pandas
- Changed mode of scripts to executable
Example
>>> import datamuse
>>> api = datamuse.Datamuse()
>>> api.words(rel_rhy='ninth', max=5) # words that rhyme with "ninth"
[]
>>> api.words(rel_rhy='orange', max=5) # words that rhyme with "orange"
[{'word': 'door hinge', 'score': 74, 'numSyllables': 2}]
>>> api.words(rel_jja='yellow', max=5) # things often described as "yellow"
[{'word': 'fever', 'score': 1001}, {'word': 'color', 'score': 1000}, {'word': 'flowers', 'score': 999}, {'word': 'light', 'score': 998}, {'word': 'colour', 'score': 997}]
>>> api.suggest(s='foo', max_results=10) # completion suggestions for "foo"
[{'word': 'food', 'score': 3888}, {'word': 'foot', 'score': 3041}, {'word': 'fool', 'score': 1836}, {'word': 'football', 'score': 1424}, {'word': 'footage', 'score': 1328}, {'word': 'footprint', 'score': 1082}, {'word': 'foolish', 'score': 967}, {'word': 'foof', 'score': 930}, {'word': 'footing', 'score': 786}, {'word': 'foolproof', 'score': 697}]
Note that the default number of results is set to 100. You can set the default
max
to something else using the set_max_default
method, e.g.
api.set_max_default(300)
. Datamuse only returns 1000 results max.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].