
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
A Python SDK for the Linkup API, allowing easy integration with Linkup's services. 🐍
Simply install the Linkup Python SDK using pip
:
pip install linkup-sdk
🔑 Obtain an API Key:
Sign up on Linkup to get your API key.
⚙️ Set-up the API Key:
Option 1: Export the LINKUP_API_KEY
environment variable in your shell before using the Python
SDK.
export LINKUP_API_KEY='YOUR_LINKUP_API_KEY'
Option 2: Set the LINKUP_API_KEY
environment variable directly within Python, using for
instance os.environ
or python-dotenv with a
.env
file (python-dotenv
needs to be installed separately in this case), before creating the
Linkup Client.
import os
from linkup import LinkupClient
os.environ["LINKUP_API_KEY"] = "YOUR_LINKUP_API_KEY"
# or dotenv.load_dotenv()
client = LinkupClient()
...
Option 3: Pass the Linkup API key to the Linkup Client when creating it.
from linkup import LinkupClient
client = LinkupClient(api_key="YOUR_LINKUP_API_KEY")
...
All search queries can be used with two very different modes:
depth="standard"
, the search will be straightforward and fast, suited for relatively simple
queries (e.g. "What's the weather in Paris today?")depth="deep"
, the search will use an agentic workflow, which makes it in general slower,
but it will be able to solve more complex queries (e.g. "What is the company profile of LangChain
accross the last few years, and how does it compare to its concurrents?")from linkup import LinkupClient
# Initialize the client (API key can be read from the environment variable or passed as an argument)
client = LinkupClient()
# Perform a search query
search_response = client.search(
query="What are the 3 major events in the life of Abraham Lincoln?",
depth="deep", # "standard" or "deep"
output_type="sourcedAnswer", # "searchResults" or "sourcedAnswer" or "structured"
structured_output_schema=None, # must be filled if output_type is "structured"
)
print(search_response)
See the examples/
directory for more examples and documentation, for instance on how to use Linkup
entrypoints using asynchronous functions.
FAQs
A Python Client SDK for the Linkup API
We found that linkup-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.