A small API wrapper for the Fake Store API.
Project description
Fake Store API Wrapper
Overview
The Fake Store API Wrapper is a Python library designed to simplify interaction with the Fake Store API. It provides a convenient interface for making API requests, handling responses, and processing data.
Features
- Easy-to-use interface for accessing Fake Store API endpoints.
- Support for retrieving products, categories, and cart data.
- Flexible parameter options for customizing API requests.
- JSON and XML response format support.
Installation
You can install the Fake Store API Wrapper using pip:
pip install fake_store_api_wrapper
Usage
Here's a basic example of how to use the Fake Store API Wrapper:
from fake_store_api_wrapper import FakeStoreAPI
# Create an instance of the API wrapper
api = FakeStoreAPI()
# Retrieve products in a specific category
products = api.products(category="jewelry", sort="asc", limit=10)
print("Products:", products)
# Retrieve carts in a specific date range
carts = api.carts(start_date="2019-02-05", end_date="2019-03-01", sort="asc", limit=10)
print("Carts:", carts)
For more detailed usage examples and API documentation, refer to the documentation.
Contributing
Contributions are welcome! If you'd like to contribute to the Fake Store API Wrapper, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature/my-feature
). - Make your changes.
- Commit your changes (
git commit -am 'Add new feature'
). - Push to the branch (
git push origin feature/my-feature
). - Create a new Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Acknowledgements
- Fake Store API - The API used in this wrapper.
- Requests - HTTP library for making requests in Python.
Support
If you encounter any issues or have questions about the Fake Store API Wrapper, please open an issue on GitHub.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file fake_store_api_wrapper_jopgood-0.1.tar.gz
.
File metadata
- Download URL: fake_store_api_wrapper_jopgood-0.1.tar.gz
- Upload date:
- Size: 5.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38f278dd9edded4b46200e7ed806ffebcc6a44ec4e681b76fd799b6bf417819 |
|
MD5 | 4ff005e1ada069c5a17b7187d1bcc6eb |
|
BLAKE2b-256 | f14755880e483d5e3baad342e66562f9a3aebcfa05500241a42463dafa9a7e71 |
File details
Details for the file fake_store_api_wrapper_jopgood-0.1-py3-none-any.whl
.
File metadata
- Download URL: fake_store_api_wrapper_jopgood-0.1-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccadb8dcf89714ff4b4079c3c852e913d6395ca2b23d16ececee5e1eed9eada0 |
|
MD5 | c099484860fd69d180e4b21ce13c1f46 |
|
BLAKE2b-256 | 3a3d55af7fab5c906b9d6a185e33f0d5b50a49f72e435f2320f3771cc311d3bc |