apache / libcloud

Apache Libcloud is a Python library which hides differences between different cloud provider APIs and allows you to manage different cloud resources through a unified and easy to use API.
https://libcloud.apache.org
Apache License 2.0
2.04k stars 925 forks source link

urlparse fails with AZURE_BLOBS #1985

Open mvpatel2000 opened 8 months ago

mvpatel2000 commented 8 months ago

Summary

As libcloud uses _ in scheme name, many popular libraries, eg urllib, fail to parse the URIs generated.

In [1]: from urllib.parse import urlparse

In [2]: urlparse('AZURE_BLOBS://data')
Out[2]: ParseResult(scheme='', netloc='', path='AZURE_BLOBS://data', params='', query='', fragment='')