funcmaven_path#

maven_path(
coord: str,
) → str#

Convert a coordinate to its path inside a Maven repository.

Parameters:

coord (str) – The coordinate.

Returns:

The relative path, with forward slashes.

Raises:

ValueError – The coordinate is malformed.

Return type:

str

Example

>>> maven_path("net.fabricmc:fabric-loader:0.16.10")
'net/fabricmc/fabric-loader/0.16.10/fabric-loader-0.16.10.jar'