[proxy] web.archive.org← back | site home | direct (HTTPS) ↗ | proxy home | ◑ dark◐ light

F# Data: Library for Data Access

Tomas Petricek; Gustavo Guerra; Colin Bull

The F# Data library implements everything you need to access data in your F# applications and scripts. It contains F# type providers for working with structured file formats (CSV, HTML, JSON and XML) and for accessing the WorldBank data. It also includes helpers for parsing CSV, HTML and JSON files and for sending HTTP requests.

This library focuses on providing a simple, mostly read-only, access to the structured documents and other data sources. It does not aim to be a comprehensive collection of F# type providers (which can be used for numerous other purposes).

F# Data type providers in action

WorldBank

JSON

CSV

How to get F# Data

F# Data documentation and tutorials

F# type providers

The type providers for structured file formats infer the structure of a sample document (or a document containing multiple samples). The structure is then used to provide easy to use type-safe access to documents that follow the same structure. The library also implements a type provider for accessing data from the WorldBank.

Data access tools

In addition to the F# type providers, the library also defines several types that simplify data access. In particular, it includes tools for HTTP web requests and CSV, HTML, and JSON parsers with simple dynamic API. For more information about these types, see the following topics:

Tutorials

The above articles cover all key features of the F# Data library. However, if you're interested in more samples or more details, then the following tutorials contain additional examples that use multiple different features together:

Reference Documentation

There's also reference documentation available. Please note that everything under the FSharp.Data.Runtime namespace is not considered as part of the public API and can change without notice.

Contributing and license

The library is available under Apache 2.0. For more information see the License file in the GitHub repository. In summary, this means that you can use the library for commercial purposes, fork it, and modify it as you wish.

F# Data is made possible by the volunteer work of more than a dozen contributors and we're open to contributions from anyone. If you want to help out but don't know where to start, you can take one of the Up-For-Grabs issues, or help to improve the documentation.

The project is hosted on GitHub where you can report issues, fork the project and submit pull requests. If you're adding new public API's, please also contribute samples that can be turned into a documentation.