SDK Configuration
After installing the Ocular SDK, you’ll need to configure it with your API credentials. This guide covers all available configuration options.Basic Configuration
All you need to get started is your API key. Everything else has sensible defaults.
Direct Initialization
This is the simplest way to get started with the SDK for testing and development.
Configuration Parameters
Understanding these parameters will help you optimize the SDK for your specific use case.
Most users will only need to set the API key. The default values work well for standard use cases.
Complete Example
Environment Variables
Using environment variables is the recommended approach for production deployments.
Using With Python dotenv
This approach combines the security of environment variables with the convenience of a configuration file.
.env file with the python-dotenv package: