#!/usr/bin/env raku
use v6.d;

use Data::Importers;
use Data::Summarizers;
use Data::TypeSystem;

say '=' x 120;
say 'Using URL import';
say '-' x 120;

my $url = 'https://raw.githubusercontent.com/antononcube/Raku-LLM-Prompts/main/resources/prompt-stencil.json';
say data-import($url);

my $url2 = 'https://raw.githubusercontent.com/antononcube/Raku-Data-ExampleDatasets/main/resources/dfRdatasets.csv';
my $data = data-import($url2, headers => 'auto');

say $data.WHAT;
say deduce-type($data);

records-summary($data);

#========================================================================================================================
say '=' x 120;
say 'Using slurp';
say '-' x 120;

say slurp($url);

say '-' x 120;

records-summary slurp($url2, headers => 'auto');
