-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing scheme #14
Comments
You absolutely can, reference, using |
Thank, I learned more about Python. I found the schemas in the setup.py but didn't know how to edit during runtime. |
Ah! That's generally not the best way to do this, as it can represent an "import time side-effect" (ref: common mistakes; same content from a possibly non-Medium-powered, but rather ugly site). However, AL/№ 36: practicality beats purity. It's possible, but requires modifying an object within the URI package dynamically at runtime. This is the code that would provide the desired change: from uri.scheme import URLScheme
from uri.part.scheme import SchemePart
SchemePart.registry['amqp'] = URLScheme('amqp')
SchemePart.registry['amqps'] = URLScheme('amqps') The seeming duplication is due to the fact the generic |
Can't register another scheme without pull request
example: amqp:// and amqps://
really painful
The text was updated successfully, but these errors were encountered: