MCPcopy 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_versionsFunction · 0.45
_match_eventsFunction · 0.45
_is_affectedFunction · 0.45
sort_keyFunction · 0.45
test_bug_post_putMethod · 0.45
test_sort_keyMethod · 0.45
test_ubuntuMethod · 0.45
test_sort_keyMethod · 0.45
test_packagistMethod · 0.45
test_sort_keyMethod · 0.45
test_sort_keyMethod · 0.45

Calls 1

from_stringMethod · 0.45

Tested by 7

test_bug_post_putMethod · 0.36
test_sort_keyMethod · 0.36
test_ubuntuMethod · 0.36
test_sort_keyMethod · 0.36
test_packagistMethod · 0.36
test_sort_keyMethod · 0.36
test_sort_keyMethod · 0.36