Skip to content

emads22/WordWiz-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WordWiz API

WordWiz_logo

Overview

WordWiz API is a web service used by the instant dictionary web app WordWiz, providing instant word definitions. This API allows you to integrate real-time word definitions into your applications effortlessly. With a robust backend, WordWiz API offers a reliable and scalable solution for language exploration. It's designed not only for use by WordWiz but also by other applications, offering a versatile solution for language exploration. The API is built using object-oriented programming (OOP) principles, ensuring modularity, extensibility, and maintainability of the codebase.

Features

  • Real-time Definitions: Fetch instant definitions for any English word via API requests.
  • Scalable and Robust: Built using JustPy, ensuring high performance and scalability.
  • Easy Integration: Simple and well-documented endpoints for seamless integration into your applications.
  • Custom Logger: Easily add a custom logger to track and manage application logs efficiently. Users are free to adjust custom logging settings by modifying the AppLogger class according to their requirements.

Technologies Used

  • justpy: A library for building interactive web applications.
  • pandas: A data manipulation and analysis library.
  • logging: A module for tracking events that happen when software runs.

Setup

Prerequisites

  • Python 3.x
  • pip for managing Python packages

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/wordwiz_api.git
    cd wordwiz_api
  2. Install dependencies: Ensure you have pip installed and use the following command to install required dependencies:

    pip install -r requirements.txt
  3. Configuration: Modify config.py to set up any necessary configuration settings.

Usage

Running the API Server

  1. Start the server:

    python main.py
  2. Access the API: The API will be accessible at http://127.0.0.1:8080 by default. You can make API requests to this endpoint to fetch word definitions.

Example API Request

  • Endpoint: /wordwiz-api/v1/define
  • Method: GET
  • Query Parameter: word (the word you want to define)

Example Request

curl "http://127.0.0.1:8080/wordwiz-api/v1/define?word=example"

Example Response

{
    "word": "example",
    "definition": "A representative form or pattern."
}

Files Description

  • config.py: Configuration settings for the API.
  • definition.py: Contains functions or classes related to word definitions.
  • main.py: Entry point to start the API server.
  • wordwiz_api.py: Contains the main API logic for handling word definition requests.

Contributing

Contributions are welcome! Here are some ways you can contribute to the project:

  • Report bugs and issues
  • Suggest new features or improvements
  • Submit pull requests with bug fixes or enhancements

Author

  • Emad   E>

License

This project is licensed under the MIT License, which grants permission for free use, modification, distribution, and sublicense of the code, provided that the copyright notice (attributed to emads22) and permission notice are included in all copies or substantial portions of the software. This license is permissive and allows users to utilize the code for both commercial and non-commercial purposes.

Please see the LICENSE file for more details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages