Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/google/osv.dev
/ sort_key
Method
sort_key
osv/ecosystems/pub.py:74–76 ·
view source on GitHub ↗
Sort key.
(self, version)
Source
from the content-addressed store, hash-verified
72
_API_PACKAGE_URL =
'https://pub.dev/api/packages/{package}'
73
74
def
sort_key(self, version):
75
""
"Sort key."
""
76
return
Version.from_string(version)
77
78
def
enumerate_versions(self,
79
package,
Callers
11
_match_versions
Function · 0.45
_match_events
Function · 0.45
_is_affected
Function · 0.45
sort_key
Function · 0.45
test_bug_post_put
Method · 0.45
test_sort_key
Method · 0.45
test_ubuntu
Method · 0.45
test_sort_key
Method · 0.45
test_packagist
Method · 0.45
test_sort_key
Method · 0.45
test_sort_key
Method · 0.45
Calls
1
from_string
Method · 0.45
Tested by
7
test_bug_post_put
Method · 0.36
test_sort_key
Method · 0.36
test_ubuntu
Method · 0.36
test_sort_key
Method · 0.36
test_packagist
Method · 0.36
test_sort_key
Method · 0.36
test_sort_key
Method · 0.36