A Python Client SDK for the Linkup API
Project description
🚀 Linkup Python SDK
A Python SDK for the Linkup API, allowing easy integration with Linkup's services. 🐍
🌟 Features
- ✅ Simple and intuitive API client.
- 🔍 Supports both standard and deep search queries.
- 🔒 Handles authentication and request management.
📦 Installation
Install the SDK using pip
:
pip install linkup-sdk
🛠️ Usage
Setting Up Your Environment
-
🔑 Obtain an API Key:
Sign up on Linkup to get your API key.
-
⚙️ Set the API Key as an Environment Variable:
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 instanceos.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") ...
📋 Example
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
response = client.search(query="What are the 3 major events in the life of Abraham Lincoln ?")
print(response)
See the examples/
directory for more examples and documentation.
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
Built Distribution
File details
Details for the file linkup_sdk-0.1.3.tar.gz
.
File metadata
- Download URL: linkup_sdk-0.1.3.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4fe0acad36e071d6a58733f18d872868a09e5733266787433bb8748ba125eb2 |
|
MD5 | 5d3b079f1478c3817511537fc198be06 |
|
BLAKE2b-256 | f10b84e78ff734889fd6d70ff3c5d6d44f746b099bf94b6409429946a4198a29 |
Provenance
The following attestation bundles were made for linkup_sdk-0.1.3.tar.gz
:
Publisher:
publish-to-pypi.yml
on LinkupPlatform/linkup-python-sdk
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
linkup_sdk-0.1.3.tar.gz
- Subject digest:
a4fe0acad36e071d6a58733f18d872868a09e5733266787433bb8748ba125eb2
- Sigstore transparency entry: 149092841
- Sigstore integration time:
- Predicate type:
File details
Details for the file linkup_sdk-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: linkup_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25be42dd6337e2781b53ee7566917070c8872ff6c5ff76852144e9512bc12b96 |
|
MD5 | 5a1dfc8d24251d062064a10565973fa7 |
|
BLAKE2b-256 | 3f5110657ce497cac7edc697b253cd7349d75a75cd21e4b59223085005d3836d |
Provenance
The following attestation bundles were made for linkup_sdk-0.1.3-py3-none-any.whl
:
Publisher:
publish-to-pypi.yml
on LinkupPlatform/linkup-python-sdk
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
linkup_sdk-0.1.3-py3-none-any.whl
- Subject digest:
25be42dd6337e2781b53ee7566917070c8872ff6c5ff76852144e9512bc12b96
- Sigstore transparency entry: 149092845
- Sigstore integration time:
- Predicate type: