A proposal for cases where an end user wants to use this library, but add additional functionality without the difficulty of monkey-patching or of permanently modifying the library (even within a single Python runtime).
My proposal is to add a (barely-documented) class mapping argument to the Client which is used whenever a library class is invoked (i.e. a method is called on it, including it's constructor).
💬 RFC
A proposal for cases where an end user wants to use this library, but add additional functionality without the difficulty of monkey-patching or of permanently modifying the library (even within a single Python runtime).
My proposal is to add a (barely-documented) class mapping argument to the
Client
which is used whenever a library class is invoked (i.e. a method is called on it, including it's constructor).See https://github.com/DerrickRice/unify-client-python/commit/a6b644c8efcbdc2cf6344603fdff732433e530d4
💻 Examples