Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FERC XBRL to SQLite data extractor #21261

Merged
49 changes: 49 additions & 0 deletions recipes/arelle-release/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
{% set name = "arelle-release" %}
{% set version = "2.2.3" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/arelle-release-{{ version }}.tar.gz
sha256: 01148a0a7a5f393d403478a251f8c3c23b83503c6232423d58adb7f4ac0dfacd

build:
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps add:

build:
  # ... what's already there
  entry_points:
    - arelleCmdLine = arelle.CntlrCmdLine:main
    - arelleGUI = arelle.CntlrWinMain:main

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.


requirements:
host:
- python >=3.7
- setuptools-scm
- pip
run:
- python >=3.7
- certifi
- isodate ==0.*
- lxml ==4.*
- numpy ==1.*
- openpyxl ==3.*
- pyparsing ==3.*
- regex

test:
imports:
- arelle
commands:
- pip check
requires:
- pip

about:
home: https://pypi.org/project/arelle-release/
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps also add dev_url: https://github.com/Arelle/Arelle

Copy link
Member

@jakirkham jakirkham Dec 13, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

summary: An open source XBRL platform.
license: Apache-2.0
license_file:
- LICENSE.md

extra:
recipe-maintainers:
- zschira
52 changes: 52 additions & 0 deletions recipes/catalystcoop.ferc-xbrl-extractor/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{% set name = "catalystcoop.ferc-xbrl-extractor" %}
{% set version = "0.6.1" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.io/packages/source/{{ name[0] }}/{{ name }}/catalystcoop.ferc_xbrl_extractor-{{ version }}.tar.gz
sha256: cc501cc14e33579761736e7ed2f220f1cbc25c7c0306c4be10244babcc931181

build:
entry_points:
- xbrl_extract = ferc_xbrl_extractor.cli:main
noarch: python
script: {{ PYTHON }} -m pip install . -vv
number: 0

requirements:
host:
- python >=3.8,<3.11
- setuptools-scm
- pip
run:
- python >=3.8,<3.11
- pydantic >=1.9,<2
- coloredlogs >=14.0,<15.1
- arelle-release >=2.2,<2.3
- frictionless >=4.4,<5
- sqlalchemy >=1.4,<2
- pandas >=1.4,<1.5
- stringcase >=1.2.0,<1.3.dev0

test:
imports:
- ferc_xbrl_extractor
commands:
- pip check
- xbrl_extract --help
requires:
- pip

about:
home: https://github.com/catalyst-cooperative/ferc-xbrl-extract
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this appears to actually be:

https://github.com/catalyst-cooperative/ferc-xbrl-extractor  # not "extract"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, yes, will fix this.

summary: A tool for extracting data from FERC XBRL Filings.
dev_url: https://github.com/catalyst-cooperative/ferc-xbrl-extract
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if the home is already github, this doesn't add much

license: MIT
license_file: LICENSE.txt

extra:
recipe-maintainers:
- zschira