Skip to main content

Pricewise-Hardware

PyPI version License: MIT Downloads LinkedIn

A Python package designed to assist users in making informed purchasing decisions for servers, RAM, and flash storage during market price fluctuations.

Features

  • Hardware Recommendations: Get tailored hardware configurations based on your specific needs.
  • Price Trend Analysis: Understand market price trends to make informed decisions.
  • Optimal Purchasing Strategies: Receive data-driven advice to secure the best value for your investments.
  • Flexible LLM Integration: Use any LangChain-compatible LLM for processing.

Installation

pip install pricewise_hardware

Usage

Basic Usage

from pricewise_hardware import pricewise_hardware

user_input = "I need a server with 64GB RAM and 1TB SSD, my budget is $2000."
response = pricewise_hardware(user_input)
print(response)

Using a Custom LLM

You can use any LangChain-compatible LLM by passing it to the pricewise_hardware function.

Example with OpenAI

from langchain_openai import ChatOpenAI
from pricewise_hardware import pricewise_hardware

llm = ChatOpenAI()
response = pricewise_hardware(user_input, llm=llm)
print(response)

Example with Anthropic

from langchain_anthropic import ChatAnthropic
from pricewise_hardware import pricewise_hardware

llm = ChatAnthropic()
response = pricewise_hardware(user_input, llm=llm)
print(response)

Example with Google

from langchain_google_genai import ChatGoogleGenerativeAI
from pricewise_hardware import pricewise_hardware

llm = ChatGoogleGenerativeAI()
response = pricewise_hardware(user_input, llm=llm)
print(response)

Using LLM7 API Key

By default, the package uses the ChatLLM7 from langchain_llm7. If you want to use a specific API key, you can pass it directly or set it as an environment variable.

Using Environment Variable

export LLM7_API_KEY="your_api_key"

Passing API Key Directly

from pricewise_hardware import pricewise_hardware

user_input = "I need a server with 64GB RAM and 1TB SSD, my budget is $2000."
response = pricewise_hardware(user_input, api_key="your_api_key")
print(response)

Parameters

  • user_input (str): The user input text to process.
  • llm (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default ChatLLM7 will be used.
  • api_key (Optional[str]): The API key for LLM7. If not provided, the environment variable LLM7_API_KEY will be used.

Rate Limits

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you need higher rate limits, you can get a free API key by registering at LLM7.

Issues

If you encounter any issues, please report them on the GitHub issues page.

Author

Metadata

Release files for pricewise-hardware 2025.12.21185315

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pricewise-hardware 2025.12.21185315
File Size Uploaded
pricewise_hardware-2025.12.21185315.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pricewise-hardware 2025.12.21185315
File Interpreter ABI Platform
pricewise_hardware-2025.12.21185315-py3-none-any.whl Python 3 none any Details

Total release size: 13.9 kB

Release files / pricewise_hardware-2025.12.21185315.tar.gz

Download URL pricewise_hardware-2025.12.21185315.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
52c1be80f51ca2beb6508e98125ff6726bb81cc765251254c576e73cd057a38b
BLAKE2b-256 checksum
How to use checksums
e5764a7fca9d1c6000787832e7b369cdfbb54ec9000f37c8892352331e645a8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / pricewise_hardware-2025.12.21185315-py3-none-any.whl

Download URL pricewise_hardware-2025.12.21185315-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e1ed6c2a5d4bb07eedd1966cc7d8d5043f3610e21c7c97a0950ef677082ba780
BLAKE2b-256 checksum
How to use checksums
ffff170c31e5d1016a8279251e8eebff7cb60cb20ea4409cac1fbf3791eca2d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.21185315 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page