Coder Social home page Coder Social logo

Comments (5)

oxinabox avatar oxinabox commented on August 26, 2024 1

Using DataDeps with this should be trivial.

something like (not tested so maybe has typos)

using DataDeps

function __init__()
    register(DataDep("Queryverse Tests", 
        "Testing data for queryverse", 
        "https://raw.githubusercontent.com/davidanthoff/CSVFiles.jl/master/test/data.csv"
    ))
end

df = load(datadep"Queryverse Tests/data.csv") |> DataFrame

In fact,
one of the examples on my blog
is using DataDeps with ExcelFiles.jl which is part of queryverse right?

from queryverse.jl.

oxinabox avatar oxinabox commented on August 26, 2024

I guess I am missing why this wants to actually be part of queryverse, or FileIO.jl

Queryverses in built functionality to work directly on URL is just a convenience for when it is convenient (small data, or single use scripts).
Beyond that the user can just use other packages for external cached fetching,
and such packages are going to address a wider range of surrounding issues than trying to capture this functionality as an extension to the existing convenience functionality.

To be clear,
Is it just a docs thing?
to improve discoverability across the Julia ecosystem?

from queryverse.jl.

femtotrader avatar femtotrader commented on August 26, 2024

Yes I think for DataDeps a doc effort is required into Queryverse to give it some highlight.

from queryverse.jl.

femtotrader avatar femtotrader commented on August 26, 2024

But I think some parameters of DataDep (such as Message) should be optional

from queryverse.jl.

femtotrader avatar femtotrader commented on August 26, 2024

With RemoteFiles.jl, it can be achieved using

using Queryverse
using RemoteFiles
data = RemoteFile("https://raw.githubusercontent.com/davidanthoff/CSVFiles.jl/master/test/data.csv")
download(data)
df = load(path(data)) |> DataFrame

but maybe a better API should be defined.

julia> load(RemoteFile("https://raw.githubusercontent.com/davidanthoff/CSVFiles.jl/master/test/data.csv")) |> DataFrame
ERROR:
MethodError: no method matching load(::RemoteFiles.RemoteFile)
Closest candidates are:
  load(::Union{AbstractString, IO}, ::Any...; options...) at /Users/femto/.julia/v0.6/FileIO/src/loadsave.jl:113
  load(::FileIO.Formatted{F}, ::Any...; options...) where F at /Users/femto/.julia/v0.6/FileIO/src/loadsave.jl:167

maybe load function should be defined
see helgee/RemoteFiles.jl#3

from queryverse.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.