langchain-adapterspot
LangChain tools for the AdapterSpot Power Supply Identifier API.
AdapterSpotLabelReader: send a photo of a power adapter label (or the rating plate on a device) and get the output voltage, current, wattage, connector type and polarity back as JSON, plus the power supply that fits.AdapterSpotPowerSupplyFinder: give the ratings (at least two of volts, amps and watts, optionally connector and polarity) and get the matching power supplies.
The label reader combines an AI vision model with the AdapterSpot connector library and catalog of verified power supplies for network and NAS equipment.
Full guide: https://adapterspot.com/en/api/langchain/
Install
pip install langchain-adapterspot
API key
Get a free key at https://adapterspot.com/en/api/ (10 label reads per month; power-supply lookups are free), then:
export ADAPTERSPOT_API_KEY="as_live_..."
You can also pass api_key="..." to each tool.
Use the tools directly
from langchain_adapterspot import AdapterSpotLabelReader, AdapterSpotPowerSupplyFinder
reader = AdapterSpotLabelReader()
print(reader.invoke({"image": "adapter-label.jpg"})) # local path, http(s) URL or data URL
finder = AdapterSpotPowerSupplyFinder()
print(finder.invoke({"voltage": 12, "current": 5, "connector": "5.5x2.1"}))
Both tools return a JSON string. Errors (missing key, quota used up, unreadable photo) come back as a readable message instead of an exception, so an agent can react to them.
Use them in an agent
from langchain.agents import create_agent
from langchain_adapterspot import AdapterSpotLabelReader, AdapterSpotPowerSupplyFinder
agent = create_agent(
model="anthropic:claude-sonnet-5-5",
tools=[AdapterSpotLabelReader(), AdapterSpotPowerSupplyFinder()],
)
result = agent.invoke(
{"messages": [{"role": "user", "content": "Which power supply do I need? The label photo is ./nas-adapter.jpg"}]}
)
print(result["messages"][-1].content)
Output (label reader)
{
"readable": true,
"confidence": "high",
"output": {"voltage_v": 12, "current_a": 5, "power_w": 60, "computed_field": null, "polarity": "center_positive"},
"connector": {"id": null, "name": null, "printed": null, "seen_in_photo": "not_visible"},
"match": {"exact": false, "power_supplies": [{"name": "Synology DS211j power supply (12V DC, 60W)", "voltage_v": 12, "current_a": 5, "url": "https://adapterspot.com/en/synology-ds211j-power-supply/", "ships_to": ["BE", "NL"]}]},
"usage": {"month": "2026-11", "label_reads_used": 1, "label_reads_quota": 10, "label_reads_left": 9}
}
See the API docs for every field.
Development
pip install -e ".[test]"
pytest
License
MIT. Maintained by AdapterSpot (Clear Solutions BV, Essen, Belgium). Support: info@adapterspot.com
Metadata
Release files for langchain-adapterspot 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| langchain_adapterspot-0.1.0.tar.gz | 7.0 kB | With provenance | Details for langchain_adapterspot-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| langchain_adapterspot-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for langchain_adapterspot-0.1.0-py3-none-any.whl |
Total release size: 13.6 kB
Release files / langchain_adapterspot-0.1.0.tar.gz
| Download URL | langchain_adapterspot-0.1.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
405eb1eb0dfec9160a4c1b658e3e1a39200e26631ee3eb5e38602f2c0b937be4
|
|
BLAKE2b-256 checksum How to use checksums |
a38749f244c81889a2495c7ced3469133d09b2064d4807c65f292d50ae93ffff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logRelease files / langchain_adapterspot-0.1.0-py3-none-any.whl
| Download URL | langchain_adapterspot-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2b275db91bd6a1a747da8b0354d7c74e4c313dc8c1af92492d1b042f52bde44d
|
|
BLAKE2b-256 checksum How to use checksums |
609244228b7695e8519fb52cd30b4d2490bec1f9f12b4408f69f5cc5e887dac4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logSecurity for langchain-adapterspot 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for langchain_adapterspot-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 17, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.