question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

open_url for opening non-git files

See original GitHub issue

There is get and get-url in cli, get-url can download files that are not necessary in dvc or git repo. And there is only open in dvc.api. It would be nice to have open_url, which operates like get-url

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
dberenbaumcommented, Nov 10, 2021

This seems related to a proposal from @efiop in https://github.com/iterative/dvc/issues/6494#issuecomment-906600254. If we make it so that dvc get can get either a repo file or any other URL, we could do something similar in the API.

1reaction
mike0svcommented, Oct 28, 2021

@pared I already tried to use api.get_url before I read it’s docs 😃 @efiop not sure. My case is that I know I have a file that is stored with dvc, but I only have it’s url (not to actual file on dvc remote). And api.open is tied to repo, so I need to extract it from my url somehow. And get-url seems to already have the same logic (if the file is there, download it, if not, do the dvc magic and get it from remote)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Open With to URL files in Windows 10 - Winaero
Here is how you can add the Open with context menu to URL files in Windows 10. Ready-to-use Registry files are included to...
Read more >
How to easily open files and URLs from the command line
Here's how to open files or URLs from the command line, on lots of different platforms (Windows, MacOS, Linux/Unix, and Cygwin).
Read more >
How to make one single .url open with a specific browser ...
It should be by right-clicking Desktop > New > Shortcut > enter the format as "C:\Program Files\Mozilla Firefox\firefox.exe" ...
Read more >
Open `file://` links with `app.openURL` - Drafts Community
Basically, I trying to write a Script Action that is supposed which should open a link to a local file on Mac, e.g....
Read more >
Open URLs, files, folders, or google text under the ... - GitHub
Open URL. Description. Quickly open files, folders, web URLs or other URLs from anywhere in Sublime Text. Install. Look for Open URL using...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found