Skip to main content

LangChain tools for Orizn Visa API — 39,585 passport-destination pairs in 15 languages

Project description

langchain-orizn

LangChain tools for the Orizn Visa API — check visa requirements for 39,585 passport-destination pairs in 15 languages.

Install

pip install langchain-orizn

Quick start

from langchain_orizn import OriznQuickVisaCheckTool, OriznVisaCheckTool

# No API key needed for quick checks
quick = OriznQuickVisaCheckTool()
print(quick.invoke({"passport": "FRA", "destination": "JPN"}))

# Full details (needs API key)
import os
os.environ["ORIZN_API_KEY"] = "your-key"
full = OriznVisaCheckTool()
print(full.invoke({"passport": "FRA", "destination": "JPN", "lang": "fr"}))

Use with a LangChain agent

from langchain_openai import ChatOpenAI
from langgraph.prebuilt import create_react_agent

tools = [OriznQuickVisaCheckTool(), OriznVisaCheckTool(api_key="your-key")]
agent = create_react_agent(ChatOpenAI(model="gpt-4o"), tools)

result = agent.invoke({"messages": [("user", "Do I need a visa to go from Brazil to Japan?")]})

Available tools

Tool Description API Key
OriznVisaCheckTool Full visa details with documents, process & tips Required
OriznQuickVisaCheckTool Quick yes/no visa check Not needed

Supported languages

en, fr, es, pt, de, ja, ko, zh, ru, it, ar, hi, th, vi, tl

Links

License

MIT

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

langchain_orizn-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

langchain_orizn-0.1.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file langchain_orizn-0.1.1.tar.gz.

File metadata

  • Download URL: langchain_orizn-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for langchain_orizn-0.1.1.tar.gz
Algorithm Hash digest
SHA256 ddf847d11bcce4c4525ab1248c0c46af7161868835f80f99718707b4f9fcea66
MD5 d98c65da8f02af711df4626eab79f050
BLAKE2b-256 dcb612c16e2d5bccf6e64776b32320c8d2729fba40cb6145a55dda1628fbd032

See more details on using hashes here.

File details

Details for the file langchain_orizn-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for langchain_orizn-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ad33ef473986c12ad7170f2360c1874b24b86c9bc6d5fd2eb83e2659d080f87a
MD5 66a3ef6a0d9e7aa88f805ac0eb910637
BLAKE2b-256 f54bd3ae4594f8b21a9599622ce4d5eb09d51ae810263eb560638c270f199524

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page