Skip to main content

sc4py

License Python QA Coverage Publish Docs pre-commit

Utilities for date/time, environment parsing, dynamic class loading, percentages, string-to-bool conversion, choice tuples, in-memory ZIP reading, and advanced string masking/validation (CPF/CNPJ, DVs, etc).

See each package's documentation for details and usage examples.

Masks utilities (CPF/CNPJ, DVs, etc)

from sc4py.masks import apply_mask, validate_masked_value, validate_mask, validate_mod11, validate_dv_by_mask

# Apply a mask
print(apply_mask('12345678901', '###.###.###-##'))  # '123.456.789-01'

# Validate masked value
print(validate_masked_value('12345678901', '###.###.###-##'))  # '123.456.789-01'

# Validate mask
validate_mask('###.###-##')

# Validate mod11 DV
validate_mod11('12345678909', 11, 2)

# Validate value and DV by mask
print(validate_dv_by_mask('12345678909', '#########00'))  # '12345678909'

Installation

pip install sc4py

Security

Please report vulnerabilities according to SECURITY.md.

Author

Kelson da Costa Medeiros kelsoncm@gmail.com

Release files for sc4py 1.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sc4py 1.1.9
File Size Uploaded
sc4py-1.1.9.tar.gz 14.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sc4py 1.1.9
File Interpreter ABI Platform
sc4py-1.1.9-py3-none-any.whl Python 3 none any Details

Total release size:25.8 kB

Release files / sc4py-1.1.9.tar.gz

Download URL sc4py-1.1.9.tar.gz
Size 14.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d3c9ecd2800c76d2fbcae8718691f4ab1e223b2fe164ab73c099276dd8c1881d
BLAKE2b-256 checksum
How to use checksums
ac63d59d228f095ce44f4daa6c110f4a60153512cad27d800379235c600055a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release files / sc4py-1.1.9-py3-none-any.whl

Download URL sc4py-1.1.9-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bbb73f568af86fd851fccd6fc50afb184ddb9da3b4764e295e856eaa32a57709
BLAKE2b-256 checksum
How to use checksums
7e714854b73fda48f6a148f9f906a859f58b64634426e9b9c3babb0a421295d8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 25, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

1.1.9 This release

2 release files

1.1.7

2 release files

1.1.6

2 release files

0.1.5

2 release files

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page