Giter Club home page Giter Club logo

fsharp.data.toolbox's Introduction

FSharp.Data.Toolbox

F# Data Toolbox is a library for various data access APIs based on FSharp.Data. The library currently includes the Twitter and Sas type providers. NuGet Status

Maintainer(s)

The default maintainer account for projects under "fsprojects" is @fsprojectsgit - F# Community Project Incubation Space (repo management)

fsharp.data.toolbox's People

Contributors

adicirstei avatar andrewrybka avatar arestenko avatar bisihdami avatar davidegcosta avatar dmicic avatar dmitrygudkov avatar dsyme avatar evelinag avatar fsprojectsgit avatar nhirschey avatar patrick-mackay avatar reedcopsey avatar sergey-tihon avatar teramonagi avatar tpetricek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fsharp.data.toolbox's Issues

Nuget installs version of FSharp.Data that doesn't work

I installed FSharp.Data.Toolbox.Twitter.03 from Nuget, and it added the package FSharp.Data.FSharp.Data.2.0.7. But this version of FSharp.Data doesn't work with this version of FSharp.Data.Toolbox.Twitter. It produces the runtime error:

"System.TypeLoadException: Could not load type 'FSharp.Data.Runtime.BaseTypes.IJsonDocument' from assembly 'FSharp.Data, Version=2.0.7.0, Culture=neutral, PublicKeyToken=null'. at FSharp.Data.Toolbox.Twitter.Utils.requestAppOnlyToken(String consumerKey, String consumerSecret)"

To fix, I installed FSharp.Data by itself from Nuget first. This gave me FSharp.Data.2.1.1, which appears to work with FSharp.Data.Toolbox.Twitter.03.

Collections incorrectly appear nested

Here's some sample XML, simplified from what you get back when calling Azure's service management API.

Note how the TP correctly understands that Locations are nested and shows a collection of Locations. However, it does not do the same for AvailableServices and it's shown twice (i.e. AvailableServices.AvailableServices.)

GitHub issues keeps removing the XML so I've linked to it here: https://gist.github.com/isaacabraham/31ce34c49b7e9ac6620b

with that XML you can do stuff like: -

type locationXml = XmlTypeProvider < sample xml >
let locationData = locationXml.GetSample()
locationData.Locations.[0].AvailableServices.AvailableServices.[0]

Building API reference fails

with the following error:

Microsoft.FSharp.Compiler.ErrorLogger+UnresolvedPathReferenceNoRange:  Exception of type 'Microsoft.FSharp.Compiler.ErrorLogger+UnresolvedPathReferenceNoRange' was thrown.
    at Microsoft.FSharp.Compiler.Tast.CcuThunk.EnsureDerefable(String[] requiring
Path) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\tast.fs:line 3035
at Microsoft.FSharp.Compiler.Tast.NonLocalEntityRef.TryDeref(Boolean canError) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\tast.fs:line 2452
at Microsoft.FSharp.Compiler.Tast.EntityRef.get_Deref() in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\tast.fs:line 2537
at Microsoft.FSharp.Compiler.Tastops.stripTyEqnsA(TcGlobals g, Boolean canShortcut, TType ty) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\tastops.fs:line 616
at Microsoft.FSharp.Compiler.Infos.GetSuperTypeOfType(TcGlobals g, ImportMapamap, range m, TType typ) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\infos.fs:line 49

FSharp.Data.Toolbox.dll requires sample json files(again)

Hi guys;

I tried to learn how to use Twitter API from F# language written in great modernized F# book "F# Deep Dives" chapter 5. Example codes which is shown below links works well.

On the other hand, it did not work when I downloaded the newest library from nuget.
I think that the same problem to issue 1 happens in F# Data 2.1.1 because the error message is the same.

New netstandard2.0 version on nuget?

Hi @tpetricek and @evelinag,

Can you put new builds of this on nuget.org? In particular, I would like the SAS type provider with the new date format uploaded.

I tool the liberty of updating the release notes. Perhaps the biggest user-facing change is the update to the new fsdocs version of FSharp.Formatting. I used the new default style which is mostly the same as before, minus the FsLab header images.

Thanks!

Thread was being aborted

I'm getting intermittent 'Thread was being aborted' exception when building Twitter project. Link to failed build.

F# Data Toolbox: Twitter type provider - single-threaded apartment

Referencing: http://fsprojects.github.io/FSharp.Data.Toolbox/TwitterProvider.html

When building a F# console application (as opposed to FSI) application-only authentication works just fine.

However
let connector = Twitter.Authenticate(key, secret)
fails with:

System.Threading.ThreadStateException was unhandled
Message: An unhandled exception of type 'System.Threading.ThreadStateException' occurred in System.Windows.Forms.dll
Additional information: ActiveX control '8856f961-340a-11d0-a96b-00c04fd705a2' cannot be instantiated because the current thread is not in a single-threaded apartment.

MNIST file format parser

@SpiegelSoft You mentioned this during your Vulpes talk at the F# user group. This project would be a good place for the MNIST parser. Currently, it only has Twitter connector, but the idea is to include a wide range of useful data-related stuff!

Towards an HDF5 type provider in FSharp.Data.Toolbox?

There are discussions about an HDF5 type provider, for example see the discussion and links here https://twitter.com/RodhernACT/status/662202241768665088

FSharp.Data.Toolbox would be a natural eventual landing home for this given the inclusion of an SAS type provider in this project already.

Here are some relevant resources. If you know of more please chime in below

  • You can find out more about HDF5 here https://www.hdfgroup.org/HDF5/
  • The HDF5 User Guide is long but very comprehensive
  • There is an existing wrapper of the HDF5 native binaries for .NET. This looks a little old (circa 2005?) and some users have reported some issue with using this wrapper. It's also not clear if the library is under active development.
  • There is also a relevant PowerShell adaptor for HDF5 that is more recent (circa 2011?) which uses PowerShell's "provider" model to give a file-system like embedding of the information space into the programming model. This may provide inspiration for what an HDF5 type provider for F# can look like.
  • Robert Nielsen (twitter) has done a prototype HDF5 provider and is looking at getting the source out onto github. Having the source out as a compiling project would be a great starting base for a next round of work on this. Robert has blogged about F# and the prototype HDF5 provider. The source is linked from the blog.
  • @memura is also interested in participating in this work and we're opening this issue as a place to discuss what the design of the type provider would be, e.g. what would be the experience of using typical HDF5 data files and what would it mean for the provider to be high performance, complete etc.
  • There is a python pandas reader for HDF5 that may act as inspiration. For example, Deedle may want to include HDF5 access. (Coincidentally, the other data formats being read by Pandas mentioned on that page may also be of interest for FSharp.Data and Deedle over time)
  • There is an HDF5 interface to R

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.