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.
- 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
AppLoggerclass according to their requirements.
- 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.
- Python 3.x
pipfor managing Python packages
-
Clone the repository:
git clone https://github.com/yourusername/wordwiz_api.git cd wordwiz_api -
Install dependencies: Ensure you have
pipinstalled and use the following command to install required dependencies:pip install -r requirements.txt
-
Configuration: Modify
config.pyto set up any necessary configuration settings.
-
Start the server:
python main.py
-
Access the API: The API will be accessible at
http://127.0.0.1:8080by default. You can make API requests to this endpoint to fetch word definitions.
- Endpoint:
/wordwiz-api/v1/define - Method: GET
- Query Parameter:
word(the word you want to define)
curl "http://127.0.0.1:8080/wordwiz-api/v1/define?word=example"{
"word": "example",
"definition": "A representative form or pattern."
}- 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.
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
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.
