sferriol-python 0.6.0__tar.gz → 0.7.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (19) hide show
  1. {sferriol_python-0.6.0/sferriol_python.egg-info → sferriol_python-0.7.1}/PKG-INFO +1 -1
  2. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/__init__.py +9 -0
  3. {sferriol_python-0.6.0 → sferriol_python-0.7.1/sferriol_python.egg-info}/PKG-INFO +1 -1
  4. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/LICENSE +0 -0
  5. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/README.md +0 -0
  6. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/pyproject.toml +0 -0
  7. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/setup.cfg +0 -0
  8. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/setup.py +0 -0
  9. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/_asyncio.py +0 -0
  10. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/dictionary/__init__.py +0 -0
  11. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/env.py +0 -0
  12. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/json.py +0 -0
  13. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/net.py +0 -0
  14. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/object.py +0 -0
  15. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol/python/os.py +0 -0
  16. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol_python.egg-info/SOURCES.txt +0 -0
  17. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol_python.egg-info/dependency_links.txt +0 -0
  18. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol_python.egg-info/requires.txt +0 -0
  19. {sferriol_python-0.6.0 → sferriol_python-0.7.1}/sferriol_python.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sferriol-python
3
- Version: 0.6.0
3
+ Version: 0.7.1
4
4
  Summary: python utilities
5
5
  Home-page: https://gitlab.in2p3.fr/sferriol-ip2i/sferriol-python
6
6
  Author: Sylvain Ferriol
@@ -58,3 +58,12 @@ def module_name_from_file(fpath):
58
58
  Return The module name of the associated python file.
59
59
  """
60
60
  return pathlib.Path(fpath).stem
61
+
62
+
63
+ def update_methods(obj, functions):
64
+ """
65
+ Update object methods by bounding new functions to instance obj
66
+ """
67
+ for func in functions:
68
+ name = func.__name__
69
+ setattr(obj, name, types.MethodType(func, obj))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sferriol-python
3
- Version: 0.6.0
3
+ Version: 0.7.1
4
4
  Summary: python utilities
5
5
  Home-page: https://gitlab.in2p3.fr/sferriol-ip2i/sferriol-python
6
6
  Author: Sylvain Ferriol
File without changes