fsspec / fsspec/filesystem_spec

How to assemble urlpath from given fs or protocol?

Open
#898 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1.4k
Forks
490
Avg merge
2d 3h
Merged PRs (30d)
38

Description

Does fsspec provide any API to assemble urlpath or local path from given fs or protocol?
e.g

def get_path(protocol, file_path):
    # decide which pattern to use
    # return "/xxx/xxx" or "protocol://xxx/xxx"

path1 = get_path('file', "xxx/xxx")
# path1:    /xxx/xxx
path2 = get_path('s3', "xxx/xxx")
# path2:    s3://xxx/xxx

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing fsspec's existing filesystem and URL/path interfaces, then define the supported local and protocol-qualified outputs shown in the examples; done means an agreed API covering both cases.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.