Features
- (P0) Parse XBRL instance documents
- (P0) Parse XBRL linkbases
- (P2) Calculation linkbase
- (P2) Definition linkbase
- (P1) Label linkbase
- (P0) Presentation linkbase
- (P0) Parse XBRL schemas
Classes
XBRL Instance
Document
class XBRL(list):
"""An XBRL instance document"""
...
Fact
class Fact(dict):
"""An XBRL fact: concept, context, value"""
...
Concept
class Concept(dict):
"""An XBRL concept"""
...
Context
class Context(dict):
"""An XBRL context: company, segment, period"""
...
class Period(dict):
"""An XBRL period: start date, end date"""
...
Value
class Value(dict):
"""An XBRL value: amount, unit"""
...
class Unit(dict):
"""An XBRL unit"""
...
XBRL Linkbase
Linkbase
class Linkbase(list):
"""An XBRL linkbase"""
...
class CalculationLinkbase(Linkbase):
"""An XBRL calculation linkbase"""
...
class DefinitionLinkbase(Linkbase):
"""An XBRL definition linkbase"""
...
class LabelLinkbase(Linkbase):
"""An XBRL label linkbase"""
...
class PresentationLinkbase(Linkbase):
"""An XBRL Presentation linkbase"""
...
Link
class Link(dict):
"""An XBRL link"""
...
class CalculationLink(Link):
"""An XBRL calculation link"""
...
class DefinitionLink(Link):
"""An XBRL definition link"""
...
class LabelLink(Link):
"""An XBRL label link"""
...
class PresentationLink(Link):
"""An XBRL Presentation link"""
...
Usage
XBRL Instance
brka = XBRL(file='brka-20151231.xml')
brka = XBRL('BRKA', 2015)
brka = XBRL('BRKA', 2015, 'FY')
brka = XBRL(file='brka-20160331.xml')
brka = XBRL('BRKA', 2016, 'Q1')
facts = list(brka)
contexts = list(brka.contexts)
units = list(brka.units)
XBRL Linkbase
brka_cal = CalculationLinkbase(file='brka-20151231_cal.xml')
brka_cal = CalculationLinkbase('BRKA', 2015)
brka_cal = CalculationLinkbase('BRKA', 2015, 'FY')
brka_def = DefinitionLinkbase(file='brka-20151231_def.xml')
brka_def = DefinitionLinkbase('BRKA', 2015)
brka_def = DefinitionLinkbase('BRKA', 2015, 'FY')
brka_lab = LabelLinkbase(file='brka-20151231_lab.xml')
brka_lab = LabelLinkbase('BRKA', 2015)
brka_lab = LabelLinkbase('BRKA', 2015, 'FY')
brka_pre = PresentationLinkbase(file='brka-20151231_pre.xml')
brka_pre = PresentationLinkbase('BRKA', 2015)
brka_pre = PresentationLinkbase('BRKA', 2015, 'FY')
Metadata
Release files for xbrl 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| xbrl-0.0.1.tar.gz | 3.6 kB | Without provenance | Details for xbrl-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| xbrl-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for xbrl-0.0.1-py3-none-any.whl |
Total release size: 6.4 kB
Release files / xbrl-0.0.1.tar.gz
| Download URL | xbrl-0.0.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
60d1d352b2f91e50bbdc941620a1d2b29ee785eea757a86aa36303c801b9f6fd
|
|
BLAKE2b-256 checksum How to use checksums |
64b478e5a101c4fa0098618f201c9b8041bf1c4525a8b2eefc9fa4951a41d744
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
|
Release files / xbrl-0.0.1-py3-none-any.whl
| Download URL | xbrl-0.0.1-py3-none-any.whl |
|---|---|
| Size | 2.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1bb30a550d7676a43e38b349b3bce6dc2268e45e3d9e60128e3cdd57e37467c
|
|
BLAKE2b-256 checksum How to use checksums |
4624e807f2511c8f4f66f2e5abcfbb99d90b4435480211e26e6de7377c22f4b1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.5
|
Security for xbrl 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.