pluggy-extract
Headless daily extraction of Brazilian Open Finance data from the Pluggy API into a raw landing zone.
It reads accounts, transactions and investments for the items you already connected, and writes them verbatim as partitioned JSONL. Normalizing, deduplicating and enriching are deliberately left to whatever consumes the landing zone.
Pure Python, no framework: it runs the same from cron, Airflow, mage.ai or a notebook.
Install
uv add pluggy-extract # or: pip install pluggy-extract
Use
cp profiles.example.toml profiles.toml # fill in your item ids
export GRIZZO_PLUGGY_CLIENT_ID=...
export GRIZZO_PLUGGY_CLIENT_SECRET=...
pluggy-extract run --profile grizzo --date 2026-08-18 --out ./raw
run 20260818T060000Z-a1b2c3 profile=grizzo out=./raw
nubank ok ok=[item,accounts,transactions,investments]
!! itau needs_user ok=[item] -- update your password
parcial: 1/2 itens sem ressalvas (exit 2)
Exit codes: 0 all clean, 2 partial, 1 nothing extracted. They are distinct so an
orchestrator does not mark a day where 9 of 10 items succeeded as a total failure.
As a library
Fetching and writing are separate layers, so either can be used alone:
from pluggy_extract import PluggyClient, extract
client = PluggyClient(client_id, client_secret)
accounts = extract.extract_accounts(client, item_id) # plain dicts, no disk I/O
Output layout
raw/profile=grizzo/item=<uuid>/dataset=transactions/dt=2026-08-18/<run_id>.jsonl
Every line is one record wrapped in a provenance envelope:
{
"run_id": "20260818T060000Z-a1b2c3",
"extracted_at": "2026-08-18T06:00:12.482Z",
"extractor_version": "0.1.0",
"profile": "grizzo",
"item_id": "...",
"item_status": "UPDATED",
"endpoint": "/v2/transactions",
"params": {"accountId": "...", "dateFrom": "2026-07-19"},
"payload": { "...the Pluggy object, untouched..." }
}
item_status matters more than it looks: when a monthly Open Finance quota runs out, Pluggy
answers 200 with stale data and flags the item PARTIAL_SUCCESS. Without the status in
the envelope, nothing downstream can tell the difference.
Things worth knowing
- Pluggy already syncs once a day. This tool only reads; it never triggers an update.
Schedule it after the item's
nextAutoSyncAt, or you re-read yesterday's data. - Quotas are monthly and per CPF+institution, from Open Finance regulation, not Pluggy.
identityallows only 4/month, so it is excluded from the default datasets. - Transactions are re-read over a rolling 30-day window on every run. They mutate after creation (pending settles, descriptions get rewritten); the redundancy is how corrections are captured. Deduplicate by transaction id downstream.
- Credit cards are accounts (
type=CREDIT), not a separate endpoint. status=UPDATEDdoes not mean fresh — it means the last sync worked, which may have been weeks ago. WatchlastUpdatedAtandautoSyncDisabledAt.
Development
uv sync
uv run pytest
Tests are fully mocked with responses, and a network guard fails any test that tries to
open a real socket — this library talks to a financial API with real credentials, so a
forgotten mock must never leak into production.
License
Metadata
Release files for pluggy-extract 0.1.0
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 |
|---|---|---|---|---|
| pluggy_extract-0.1.0.tar.gz | 50.2 kB | Without provenance | Details for pluggy_extract-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pluggy_extract-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pluggy_extract-0.1.0-py3-none-any.whl |
Total release size: 74.8 kB
Release files / pluggy_extract-0.1.0.tar.gz
| Download URL | pluggy_extract-0.1.0.tar.gz |
|---|---|
| Size | 50.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18a4e366677908e0ded19dcddbdc10e2a34c37345730ceaba31dee4a0f575ac0
|
|
BLAKE2b-256 checksum How to use checksums |
1c69ca10c620331d520702bceecf8e19ac96a232d47d470fdb14b496633894e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pluggy_extract-0.1.0-py3-none-any.whl
| Download URL | pluggy_extract-0.1.0-py3-none-any.whl |
|---|---|
| Size | 24.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7eeb75b70b957558d432bf40eb793c2282d585ede80726928e3ff44c570d7ce7
|
|
BLAKE2b-256 checksum How to use checksums |
c8d0dd7c06595f60370cb1229fb3d5db9edbc7495b034a9a08c764c8ac1378a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pluggy-extract 0.1.0
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.