Metadata-Version: 2.4
Name: sc4net
Version: 1.2.0
Summary: Shortcuts for use with Python stdlib HTTP and FTP
Author-email: Kelson da Costa Medeiros <kelsoncm@gmail.com>
License: # License
        
        ## The MIT License (MIT)
        
        Copyright (c) 2019 kelsoncm
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/kelsoncm/python-sc4net
Project-URL: Bug Tracker, https://github.com/kelsoncm/python-sc4net/issues
Project-URL: Download, https://github.com/kelsoncm/python-sc4net/releases/
Project-URL: Docs, https://kelsoncm.github.io/python-sc4net/
Keywords: shortcuts,http,ftp,stdlib
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE.md
Provides-Extra: dev
Requires-Dist: pre-commit>=4.6.0; extra == "dev"
Requires-Dist: black>=26.3.1; extra == "dev"
Requires-Dist: ruff>=0.15.11; extra == "dev"
Requires-Dist: doc8>=2.0.0; extra == "dev"
Requires-Dist: pytest>=9.0.3; extra == "dev"
Requires-Dist: pytest-cov>=7.1.0; extra == "dev"
Requires-Dist: python-dotenv>=1.2.2; extra == "dev"
Requires-Dist: pytest-coverage-gate>=1.0.3; extra == "dev"
Requires-Dist: responses>=0.26.0; extra == "dev"
Requires-Dist: pytest-xdist>=3.8.0; extra == "dev"
Requires-Dist: pyftpdlib>=2.2.0; extra == "dev"
Dynamic: license-file

# sc4net

[![License](https://img.shields.io/badge/License-MIT-lemon.svg)](https://opensource.org/licenses/MIT)
[![Python](https://img.shields.io/pypi/pyversions/sc4net.svg)](https://pypi.org/project/sc4net/)
[![QA](https://github.com/kelsoncm/python-sc4net/actions/workflows/qa.yml/badge.svg)](https://github.com/kelsoncm/python-sc4net/actions/workflows/qa.yml)
[![Coverage](https://codecov.io/gh/kelsoncm/python-sc4net/branch/main/graph/badge.svg)](https://codecov.io/gh/kelsoncm/python-sc4net)
[![Publish](https://github.com/kelsoncm/python-sc4net/actions/workflows/publish.yml/badge.svg)](https://github.com/kelsoncm/python-sc4net/actions/workflows/publish.yml)
[![Docs](https://github.com/kelsoncm/python-sc4net/actions/workflows/docs.yml/badge.svg)](https://kelsoncm.github.io/python-sc4net/)
[![pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit)](https://github.com/pre-commit/pre-commit)

Network helpers for HTTP(S) and FTP downloads, with convenience JSON and ZIP readers.

## Installation

```bash
pip install sc4net
```

## Security

Please report vulnerabilities according to [SECURITY.md](SECURITY.md).

## How to contribute

```bash
git clone git@github.com:kelsoncm/sc4.git ~/projetos/PESSOAL/sc4net
code ~/projetos/PESSOAL/sc4net
```

## Pre-commit

This repository uses [pre-commit](https://pre-commit.com/) to run quality checks
before each commit and coverage regression checks before each push.

Setup:

```bash
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:

```bash
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 `pytest --cov=sc4net --cov-report=xml` to produce `coverage.xml`
  2. [`pytest-coverage-gate`](https://github.com/kelsoncm/pytest-coverage-gate)
     reads `coverage.xml`, compares against `.coverage-baseline`
     (2 decimal places), blocks the push on regression and updates the
     baseline on improvement
* **GitHub Actions only**: `semgrep` SAST
