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 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:

  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.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for fake_store_api_wrapper_jopgood-0.1.tar.gz
Algorithm Hash digest
SHA256 e38f278dd9edded4b46200e7ed806ffebcc6a44ec4e681b76fd799b6bf417819
MD5 4ff005e1ada069c5a17b7187d1bcc6eb
BLAKE2b-256 f14755880e483d5e3baad342e66562f9a3aebcfa05500241a42463dafa9a7e71

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for fake_store_api_wrapper_jopgood-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ccadb8dcf89714ff4b4079c3c852e913d6395ca2b23d16ececee5e1eed9eada0
MD5 c099484860fd69d180e4b21ce13c1f46
BLAKE2b-256 3a3d55af7fab5c906b9d6a185e33f0d5b50a49f72e435f2320f3771cc311d3bc

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