Skip to main content

Network Security Automation Toolkit

Project description

fkin_anfu

安全服务效率工具

usage

cd fkin_anfu
python -m venv .venv
source .venv/bin/activate

依赖安装

pip install pip-tools
# 生成生产依赖
pip-compile requirements.in --output-file=requirements.txt

# 生成开发依赖(含测试工具)
pip-compile requirements-dev.in --output-file=requirements-dev.txt

pip install -r requirements.txt
pip install -r requirements-dev.txt

提交代码

使用pre-commit做代码风格检查, 已封装为_shortcut_action.sh简便执行;

# 安装1次
pip install pre-commit
pre-commit install
# 手动触发check
pre-commit run --all-files
git diff   # 确认无自动修改残留
# 手动添加文件修改
git add .
git commit -m "fix(XXXX): code quality passed by pre-commit"
# 手动执行test
pytest

pytest tests/utils/test_log_utils.py

build pip 包

# 安装build、package工具,只需要安装一次
pip install build twine
# 确保清理旧的构建缓存
rm -rf dist/ build/ *.egg-info

# 执行build
python -m build

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

fkin_anfu-0.1.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

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

fkin_anfu-0.1.0-py3-none-any.whl (25.0 kB view details)

Uploaded Python 3

File details

Details for the file fkin_anfu-0.1.0.tar.gz.

File metadata

  • Download URL: fkin_anfu-0.1.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for fkin_anfu-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe77f20cf907e074bf139697344fdca679d3adb32464e7b7a43e9baa4deb5c6a
MD5 4016418068d3561ad2b3b9691e24a92c
BLAKE2b-256 3b218bb2e72d097b7dda2e6c8bae130d2fc46da538987b169bca92ba7c11d9e9

See more details on using hashes here.

File details

Details for the file fkin_anfu-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fkin_anfu-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 25.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.2

File hashes

Hashes for fkin_anfu-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4cd36fb42f96eaa2210607f3c1a18e9e0a814bd6a4f4dfca8d2f0eaa317d9aa0
MD5 3cf9db0b58a819699676dd2cd7e89b3c
BLAKE2b-256 2d8387f7f49b93c0e28fb2a14e08d2e090e627522feb6c5bf17a40876527ae52

See more details on using hashes here.

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