Python SDK
Streamline Narada integration with our Python SDK
You can also invoke Narada through our Python SDK, which provides a more streamlined and programmatic approach to browser automation. The SDK eliminates many of the manual setup steps by automatically handling browser initialization, extension activation, and session management. This is particularly useful for developers who want to integrate Narada into larger automation workflows or prefer a code-first approach to browser automation.
How to Use the Python SDK
Install the SDK
Install the Narada Python SDK using pip:
Initialize Narada Client
Create a Python script and initialize the Narada client:
This will open a new Chrome browser, open the extension side panel, and automatically retrieve the session ID for subsequent API requests.
Use the Session ID
After running the script above, you can use the retrieved session ID for your remote dispatch requests.
Continue with the Making Your First API Call guide to learn how to use this session ID with the remote dispatch API.
Benefits of the Python SDK
Automated Browser Setup
Automatically opens a Chrome browser and activates the Narada extension without manual intervention.
Session Management
Handles session ID retrieval and management, eliminating the need to manually navigate to the session page.
Simplified Integration
Reduces setup complexity from multiple manual steps to just a few lines of code.
Playwright Integration
Built with Playwright for reliable browser automation and extension interaction.
Next Steps
Now that you’ve installed Narada’s Python SDK to streamline the process of opening a Chrome browser, initializing Narada by opening the extension sidepanel and retrieving the session ID, you can:
- Learn how to make API requests using your session ID
- Explore the API Reference for detailed endpoint documentation
The Python SDK is particularly useful for automated workflows where you need to programmatically set up browser sessions for Narada automation tasks.