MCPcopy Index your code
hub / github.com/agent0ai/agent-zero / get_installed_version

Function get_installed_version

update_reqs.py:4–8  ·  view source on GitHub ↗
(package_name)

Source from the content-addressed store, hash-verified

2import re
3
4def get_installed_version(package_name):
5 try:
6 return pkg_resources.get_distribution(package_name).version
7 except pkg_resources.DistributionNotFound:
8 return None
9
10def update_requirements():
11 with open('requirements.txt', 'r') as f:

Callers 1

update_requirementsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected