Skip to content

Class peagen.common.PathOrURI

peagen.common.PathOrURI

Bases: str

A very thin wrapper that normalises user input:

* '~/foo'      -> 'file:///home/user/foo'
* 'C:\bar'    -> 'file:///C:/bar'
* 's3://...'   -> unchanged
* 'file://...' -> unchanged