Here's a peak of the completely reworked API for the v0.6 release, in which it:

Finally has a(n optional) range (from=INDEX, to=INDEX), which if omitted will give the whole thing (if it's not too big)

Supports multiple formats: Base JSON, JSON (file), CSV (file), TSV (file)

Supports multiple datasets at once, for all formats

Supports a bunch of indexes such as height, date index, tx index, tx in index, ... and later month index, year index, ...

I've basically answered all the feature requests that I got

Stay tuned for more updates about the v0.6 and its release

PR: https://github.com/kibo-money/kibo/pull/15

#Bitcoin is hope 🕊️

Reply to this note

Please Login to reply.

Discussion

Another neat thing is that I completely rebuilt the backend (if kibo were at a 1.X.X version the v0.6 would be the equivalent of a v2.0.0) and so datasets are stored in a completely different way, from compressed binary "objects" to pure bytes as vecs (arrays)

Which means that you can parse them with other languages if you want, there is no need to call an API locally anymore

Here's an example where we're reading the 21 first values of a height to timestamp vec and then displaying the date using Python

nostr:nevent1qvzqqqqqqypzp963hhzdztlkunxxkcd3qtm3u3z77fzmeqct7s90v4n2dgjxzd7xqyfhwumn8ghj7ur4wfcxcetsv9njuetn9uq3wamnwvaz7tmjv4kxz7fwwpexjmtpdshxuet59uq35amnwvaz7tmjv4kxz7fwd45ku6tzdak8gtnfdenx7tcqyphf9nazxayuzsv44d7xkmf8xdkpjwtwf90nthfyjvh2phm84d88jnsaajj