def hub.part
import ezx@1.11.0.0/src/ez/named.bend as Namedimport Base
import ezx@1.11.0.0/src/pkg/pkg.bend as K
195# the name part of a `<name>@<version>`, what comes before its `@`. It is
196# a-z, 0-9 and `-`, so it is a TOML bare key as it is.
197def hub.part(+nv: String) -> String:
198 K.word(String.split(nv, '@'), 0n)