langchain-permitbase
LangChain toolkit for PermitBase — the U.S. residential building permit data API.
45 years of history (1980–present) · Place-level · SF/MF differentiated · All 50 states + DC
Installation
pip install langchain-permitbase
Quick Start
from langchain_permitbase import PermitBaseToolkit
# Get a free key at https://permitbase.org
toolkit = PermitBaseToolkit(api_key="pb_live_your_key")
tools = toolkit.get_tools()
# Pass to any LangChain agent
from langchain.agents import AgentExecutor, create_openai_tools_agent
agent = create_openai_tools_agent(llm, tools, prompt)
Or use the convenience function:
from langchain_permitbase import get_permitbase_tools
tools = get_permitbase_tools(api_key="pb_live_your_key")
Tools Included
| Tool | Description |
|---|---|
annual_permits |
Year-by-year permit totals with SF/MF split and cycle labels |
permit_trends |
Time-series with 5-year rolling average and YoY change |
permit_rankings |
Top places ranked by volume or MF share |
permit_cycles |
11 housing cycles (1980–present) with peak/trough analysis |
state_permit_summary |
All 50 states + DC aggregated with peak year |
Environment Variable
Instead of passing api_key directly, set:
export PERMITBASE_API_KEY=pb_live_your_key
Links
Metadata
Release files for langchain-permitbase 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 | |
|---|---|---|---|
| langchain_permitbase-0.1.0.tar.gz | 5.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| langchain_permitbase-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / langchain_permitbase-0.1.0.tar.gz
| Download URL | langchain_permitbase-0.1.0.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
772663d97cfcdeb73f78dae7b38ee2d90cce5ef2b26dfcb7e5c599c0ed9174d5
|
|
BLAKE2b-256 checksum How to use checksums |
9a29aabc9d1c4acb8fb3d7f5eace48a08d0fcdb4d607448babd3b663f80544c2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / langchain_permitbase-0.1.0-py3-none-any.whl
| Download URL | langchain_permitbase-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d5ff7346bb9b474550c4c8da9550474d07cc3da03670821a27fbbbee8341e58
|
|
BLAKE2b-256 checksum How to use checksums |
e4ea6a7dc317be4ac98a2810aa0c13806ef6a1e07931b16a4e67d7131e8022fc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|