Skip to main content

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:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/my-feature).
  3. Make your changes.
  4. Commit your changes (git commit -am 'Add new feature').
  5. Push to the branch (git push origin feature/my-feature).
  6. Create a new Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements

Support

If you encounter any issues or have questions about the Fake Store API Wrapper, please open an issue on GitHub.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fake_store_api_wrapper_jopgood-0.3.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file fake_store_api_wrapper_jopgood-0.3.tar.gz.

File metadata

File hashes

Hashes for fake_store_api_wrapper_jopgood-0.3.tar.gz
Algorithm Hash digest
SHA256 aadb49000e3699251720d72e0dac03db1857103f5c22525fcacb41c282af8c29
MD5 c6378c77e3ddaf68fe9d7eaa2aa66bcb
BLAKE2b-256 c83f4d54ffad75c53e56cf787091f284bfe58720ac401743aeb0c167b5f84ed0

See more details on using hashes here.

File details

Details for the file fake_store_api_wrapper_jopgood-0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for fake_store_api_wrapper_jopgood-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1c773133d1ad390344abaa627ff376a10ce77324bfd910946778afd3ba32d763
MD5 d06a544bd8f5e99f316c2df86fa99bbe
BLAKE2b-256 6bf07a7fdbc0b66cd36248b923e52b77691824ec0563914e18eba9c4a6ce5726

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page