XbrlXML.jl

Package for parsing XBRL
Author robfs
Popularity
9 Stars
Updated Last
8 Months Ago
Started In
February 2022

XbrlXML.jl

forthebadge

Stable Dev Build Status Coverage Genie Downloads

A pure Julia implementation of the py-xbrl Python package by Manuel Schmidt.

Installation

julia> using Pkg

julia> Pkg.add("XbrlXML")

Usage

julia> using XbrlXML

julia> cache = HttpCache("/Users/robsimms/cache/")
/Users/robsimms/cache/

julia> header!(cache, "User-Agent" => "You, yourname@domain.com")
Dict{String, String} with 1 entry:
  "User-Agent" => "You, yourname@domain.com"

julia> url = "https://www.sec.gov/Archives/edgar/data/0000789019/000156459021002316/msft-10q_20201231.htm";

julia> xbrl = parseinstance(cache, url)
msft-10q_20201231.htm with 1574 facts

julia> msft = facts(xbrl);

julia> msft[4]
EntityCommonStockSharesOutstanding: 7,542,215,767

Used By Packages

No packages found.