U.S. Bureau of Labor Statistics connector for the parsimony framework
Project description
parsimony-bls
US Bureau of Labor Statistics connector — labor market, employment, inflation (CPI), and producer price time series.
Part of the parsimony-connectors monorepo. Distributed standalone on PyPI as parsimony-bls.
Connectors
| Name | Kind | Description |
|---|---|---|
bls_fetch |
fetch | Fetch a single BLS time series by series_id between two years. |
enumerate_bls |
enumerator | Enumerate popular BLS series across all surveys via the /surveys and /timeseries/popular endpoints. |
Install
pip install parsimony-bls
Pulls in parsimony-core>=0.4,<0.5 automatically. Verify discovery:
python -c "from parsimony import discover; print([p.name for p in discover.iter_providers()])"
Configuration
The API key is optional — the plugin works without one but registering gives you higher rate limits.
export BLS_API_KEY="<your-key>" # optional
Register for a free key at https://data.bls.gov/registrationEngine/.
Quick start
import asyncio
from parsimony_bls import CONNECTORS
async def main():
connectors = CONNECTORS.bind_env()
# LNS14000000 = US unemployment rate (seasonally adjusted)
result = await connectors["bls_fetch"](
series_id="LNS14000000",
start_year="2020",
end_year="2024",
)
print(result.data.head())
asyncio.run(main())
For multi-plugin composition (autoloads everything installed):
from parsimony import discover
connectors = discover.load_all().bind_env()
Provider
- Homepage: https://www.bls.gov
- Developer portal: https://www.bls.gov/developers/
- Series browser: https://data.bls.gov/
License
See LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file parsimony_bls-0.5.0.tar.gz.
File metadata
- Download URL: parsimony_bls-0.5.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3142aec7e4a9c6d65c6de005909dfaaa7ff16842d0341bdf6e47ae1e9d5beb2c
|
|
| MD5 |
7ff3744c494a78cdb0537c254cc3f54e
|
|
| BLAKE2b-256 |
f853cb804030a269867fd24489052d0dc885c8a4300698a32accf91dca343290
|
Provenance
The following attestation bundles were made for parsimony_bls-0.5.0.tar.gz:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_bls-0.5.0.tar.gz -
Subject digest:
3142aec7e4a9c6d65c6de005909dfaaa7ff16842d0341bdf6e47ae1e9d5beb2c - Sigstore transparency entry: 1453262968
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file parsimony_bls-0.5.0-py3-none-any.whl.
File metadata
- Download URL: parsimony_bls-0.5.0-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
df35ae2c28ddd47c2b20aaf95bc84e24220158db02d5f2a1e3198e783a8c3c69
|
|
| MD5 |
92c4960963ffcc1c6c67fae315533921
|
|
| BLAKE2b-256 |
450ab7021bcba83ea463585b295f113e99fdc238934265876bcb80399378749a
|
Provenance
The following attestation bundles were made for parsimony_bls-0.5.0-py3-none-any.whl:
Publisher:
release.yml on ockham-sh/parsimony-connectors
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
parsimony_bls-0.5.0-py3-none-any.whl -
Subject digest:
df35ae2c28ddd47c2b20aaf95bc84e24220158db02d5f2a1e3198e783a8c3c69 - Sigstore transparency entry: 1453263011
- Sigstore integration time:
-
Permalink:
ockham-sh/parsimony-connectors@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/ockham-sh
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@db37b495a6c7b7c5a4e5bfdfa5b5b4d74ac4b1b6 -
Trigger Event:
workflow_dispatch
-
Statement type: