Skip to content

feat: add Polars expression plugin for CPF, CNPJ, CEP#7

Merged
fullzer4 merged 1 commit into
mainfrom
feat/polars-plugin
May 11, 2026
Merged

feat: add Polars expression plugin for CPF, CNPJ, CEP#7
fullzer4 merged 1 commit into
mainfrom
feat/polars-plugin

Conversation

@fullzer4
Copy link
Copy Markdown
Owner

Adds a new plugin under plugins/polars that exposes stdbr-core validation, formatting and symbol removal as native Polars expressions.

The plugin compiles as a cdylib loaded directly by the Polars engine, operating on Arrow buffers without GIL overhead or data copying.

Usage:
import polars_stdbr
df.with_columns(pl.col("cpf").stdbr.cpf_is_valid())

Expressions: cpf_is_valid, cpf_format, cpf_remove_symbols, cnpj_is_valid, cnpj_format, cnpj_remove_symbols,
cep_is_valid, cep_format, cep_remove_symbols.

Adds a new plugin under plugins/polars that exposes stdbr-core
validation, formatting and symbol removal as native Polars expressions.

The plugin compiles as a cdylib loaded directly by the Polars engine,
operating on Arrow buffers without GIL overhead or data copying.

Usage:
  import polars_stdbr
  df.with_columns(pl.col("cpf").stdbr.cpf_is_valid())

Expressions: cpf_is_valid, cpf_format, cpf_remove_symbols,
cnpj_is_valid, cnpj_format, cnpj_remove_symbols,
cep_is_valid, cep_format, cep_remove_symbols.
@fullzer4 fullzer4 self-assigned this May 11, 2026
@fullzer4 fullzer4 merged commit f1fef84 into main May 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant