Skip to main content

Python library specific brazilian validations

Project description

sc4py

License: MIT Python Tests Coverage PyPI Deploy pre-commit

Utilities for date/time, environment parsing, dynamic class loading, percentages, string-to-bool conversion, choice tuples, and in-memory ZIP reading.

Package documentation

Installation

pip install sc4py

Security

Please report vulnerabilities according to SECURITY.md.

How to contribute

git clone git@github.com:kelsoncm/sc4.git ~/projetos/PESSOAL/sc4py
code ~/projetos/PESSOAL/sc4py

Pre-commit

This repository uses pre-commit to run quality checks before each commit and coverage regression checks before each push.

Setup:

python -m venv .venv
.venv\bin\activate
.\.venv\Scripts\Activate.ps1
pip install --upgrade pip uv
uv pip install --upgrade -e ".[dev]"
pre-commit install
pre-commit install --hook-type pre-push

Run manually:

pre-commit run --all-files
pre-commit run --hook-stage pre-push --all-files

Hooks:

  • pre-commit: black, isort, bandit, flake8 (with flake8-bandit)
  • pre-push:
    1. Runs python -m pytest --cov=sc4py --cov-report=xml -q to produce coverage.xml
    2. pytest-coverage-gate reads coverage.xml, compares against .coverage-baseline, blocks the push on regression and updates the baseline on improvement
  • GitHub Actions only: semgrep SAST

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sc4py-1.1.6.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sc4py-1.1.6-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file sc4py-1.1.6.tar.gz.

File metadata

  • Download URL: sc4py-1.1.6.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sc4py-1.1.6.tar.gz
Algorithm Hash digest
SHA256 b9d315c83e1ec82ea460cd8aec1cc35a135bdf734149f9e8017d2801e9053859
MD5 d4beaafb34f82e645cfff0457271bae8
BLAKE2b-256 34db7e6ab2147fd4bf8fb6200356323084c6a894557712265dac82014a14609c

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc4py-1.1.6.tar.gz:

Publisher: publish.yml on kelsoncm/python-sc4py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sc4py-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: sc4py-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for sc4py-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 365fcc86ef1d5183fc07838bcab7ed4cfa689a0b77aa7c5d914935568e43efa4
MD5 974a63898d11677374b20770a3eacff7
BLAKE2b-256 3a23957ca19793281384ff4d586a4fae8d226d32b47190c2d87408d5fc9b9ef1

See more details on using hashes here.

Provenance

The following attestation bundles were made for sc4py-1.1.6-py3-none-any.whl:

Publisher: publish.yml on kelsoncm/python-sc4py

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page