LangChain toolkit for PermitBase — U.S. residential building permit data API (1980–present)
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langchain_permitbase-0.1.0.tar.gz.
File metadata
- Download URL: langchain_permitbase-0.1.0.tar.gz
- Upload date:
- Size: 5.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
772663d97cfcdeb73f78dae7b38ee2d90cce5ef2b26dfcb7e5c599c0ed9174d5
|
|
| MD5 |
434637fa791c067a258f38449b862c0a
|
|
| BLAKE2b-256 |
9a29aabc9d1c4acb8fb3d7f5eace48a08d0fcdb4d607448babd3b663f80544c2
|
File details
Details for the file langchain_permitbase-0.1.0-py3-none-any.whl.
File metadata
- Download URL: langchain_permitbase-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d5ff7346bb9b474550c4c8da9550474d07cc3da03670821a27fbbbee8341e58
|
|
| MD5 |
90b4425f1b43dbae7a69439c62adca0e
|
|
| BLAKE2b-256 |
e4ea6a7dc317be4ac98a2810aa0c13806ef6a1e07931b16a4e67d7131e8022fc
|