dotmesh-io / python-sdk

dotmesh python sdk
Apache License 2.0
6 stars 1 forks source link

Add a parser for dot (/branch etc) names #3

Closed alaric-dotmesh closed 6 years ago

alaric-dotmesh commented 6 years ago

User interfaces often let users input strings to identify:

We use a standard syntax for this, the reference implementation of which is partly in the dm CLI (ParseNamespacedVolume in cmd/dm/pkg/remotes/api.go), partly in the procure mechanism (cloneName parsing in reallyProcureFilesystem in cmd/dotmesh-server/controller.go) and parseNamespacedVolumeWithSubvolumes ub cmd/dotmesh-server/utils.go.

Put a parser for it in the Python library, with different functions based on whether we expect just a dot name, or whether branches and/or subdots are also allowed.

lukemarsden commented 6 years ago

Added support for namespaces and names, bumping the rest of the work to https://github.com/dotmesh-io/python-sdk/issues/4