Python and Django SDK for Cloudinary, a cloud-based image and video management service with comprehensive transformation, optimization, and delivery capabilities
Overall
score
94%
Build a Python utility that manages configuration for a cloud-based media service. The utility must load credentials from environment variables and provide a simple way to verify the configuration is set up correctly.
Create a module config_manager.py that implements the following functionality:
File: test_config.py { .test-file }
Setup:
import os
os.environ['CLOUDINARY_URL'] = 'cloudinary://123456789012345:abcdefghijklmnopqrstuvwxyz123456@test-cloud'Expected behavior:
File: test_config.py { .test-file }
Setup:
import os
# Clear any existing Cloudinary configuration
for key in list(os.environ.keys()):
if key.startswith('CLOUDINARY'):
del os.environ[key]Expected behavior:
File: test_config.py { .test-file }
Setup:
# No environment variables setExpected behavior:
Python SDK for cloud-based media management service providing upload, transformation, and delivery capabilities.
Install with Tessl CLI
npx tessl i tessl/pypi-cloudinarydocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10