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 -i https://test.pypi.org/simple/ fake-store-api-wrapper-jopgood
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.3.tar.gz
.
File metadata
- Download URL: fake_store_api_wrapper_jopgood-0.3.tar.gz
- Upload date:
- Size: 5.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.12.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | aadb49000e3699251720d72e0dac03db1857103f5c22525fcacb41c282af8c29 |
|
MD5 | c6378c77e3ddaf68fe9d7eaa2aa66bcb |
|
BLAKE2b-256 | c83f4d54ffad75c53e56cf787091f284bfe58720ac401743aeb0c167b5f84ed0 |
File details
Details for the file fake_store_api_wrapper_jopgood-0.3-py3-none-any.whl
.
File metadata
- Download URL: fake_store_api_wrapper_jopgood-0.3-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 | 1c773133d1ad390344abaa627ff376a10ce77324bfd910946778afd3ba32d763 |
|
MD5 | d06a544bd8f5e99f316c2df86fa99bbe |
|
BLAKE2b-256 | 6bf07a7fdbc0b66cd36248b923e52b77691824ec0563914e18eba9c4a6ce5726 |