Chapter 4. Programming with Fluidinfo
Client Libraries
The easiest way to make use of Fluidinfo in your own programming projects is to use an existing client library. There are many open source libraries available in many different languages. A comprehensive list can be found on Fluidinfo’s developer page. Such client libraries can be categorized in two ways:
Asynchronous versus synchronous clients[22]
Thin layers just above the HTTP API versus programmer-friendly abstractions (for example, an object-oriented mapping to Fluidinfo)
This chapter and the two that follow introduce three libraries that illustrate the categories described above:
- fluidinfo.py
A blocking client that provides a bare-minimum client library for Fluidinfo’s HTTP API (presented in this chapter)
- FOM (the Fluid Object Mapper)
A blocking, object-oriented abstraction for using Fluidinfo (presented in Chapter 5)
- fluidinfo.js
An asynchronous library that provides both low-level interactions with the API and high-level functions that abstract common tasks (presented in Chapter 6)
Although there is a danger that programs built upon synchronous libraries can become unresponsive while they wait for responses from Fluidinfo,[23] it does mean that the code written with these libraries is easy to read and understand.
Alternatively, if you’d like to use the API directly, you should refer to Chapter 7, which explains and illustrates the raw HTTP-based API in detail.
Introducing fluidinfo.py
The fluidinfo.py library is a very thin wrapper ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access