Skip to content

MoveInc/coding_exercise_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anagram Finder Python exercise

This notional exercise implements a basic API which returns all anagrams of a given word based on an internal word dictionary. At least, that's what it's supposed to do. Continue reading for more details.

Development

Scripts

  • python3 -m venv localenv - create local virtual env
  • source localenv/bin/activate - enable virtual env shell
  • pip install -r requirements.txt - install dependencies
  • pip install -r requirements_dev.txt - install development dependencies for testing
  • pytest - run unit tests
  • flask run - run local server

REST Service

After starting the server, the REST endpoint can be invoked using http://localhost:5000/?term=word where 'word' is the term to find anagrams for. The response should be a JSON payload containing a string array of all matching anagrams.

Problems

This project has the following issues:

  • The included unit test fails
  • The endpoint doesn't return correct results

Please ensure all problems are resolved as part of this exercise.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages