christophercrouzet / gorilla Goto Github PK
View Code? Open in Web Editor NEWConvenient approach to monkey patching.
License: MIT License
Convenient approach to monkey patching.
License: MIT License
Hi
Would it be possible to add an unregister_extensions() function? Or have the register_extensions function do a reload() of the packages passed into it? I think it would speed up developing with gorilla and help with troubleshooting
Thanks for the awesome module
Luke
Hi,
your gorilla project is now used by mlflow. Just thought you may want to mention it in your "Out there" part. (autolog functionality)
If the function has already been loaded in another module at the beginning, then after we do the monkey patch in the original module, that already loaded function's behavior in another module is still not changed.
Eg. mod1.py has func_a, func_a is imported in mod2.py. We monkey patch func_a in mod1.py, but before we do the modification, func_a is already imported into mod2.py for some reason. In this case, the func_a in mod2.py is not updated.
This is great and works really well for functions and classes, but what would be your recommended way to patch a global variable in a module please?
Do you plan to register the latest version with PyPI?
I would like to use gorilla.revert function.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.