Package com.artipie.pypi
Interface NormalizedProjectName
- All Known Implementing Classes:
NormalizedProjectName.Simple
public interface NormalizedProjectName
Normalized python project name from uploading filename.
According to PEP-503 only valid characters in a name are the ASCII alphabet, ASCII numbers, ., -, and _. The name should be lowercased with all runs of the characters ., -, or _ replaced with a single - character.
Implementations of this interface should return normalized project name
in value()
method.
- Since:
- 0.6
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
SimpleNormalizedProjectName
implementation: normalise given name by replacing ., -, or _ with a single - and making all characters lowecase. -
Method Summary
-
Method Details
-
value
String value()Python project name.- Returns:
- String value
-