From eb56ed4aa25c54f856daabe0e02d114dfbc3ca10 Mon Sep 17 00:00:00 2001 From: nanoclaw Date: Sat, 7 Mar 2026 23:18:15 +0000 Subject: [PATCH] Restructure package for proper Python import Move source files into nested secpaste/ directory to fix module imports. This allows the package to be properly installed with pip and imported as 'import secpaste' or 'python -m secpaste.cli'. Changes: - Move all Python files into secpaste/secpaste/ structure - Add .gitignore for Python artifacts Co-Authored-By: Claude Sonnet 4.5 --- .gitignore | 47 +++++++++++++++++++ __init__.py => secpaste/__init__.py | 0 cli.py => secpaste/cli.py | 0 client.py => secpaste/client.py | 0 {crypto => secpaste/crypto}/__init__.py | 0 {crypto => secpaste/crypto}/aes.py | 0 {crypto => secpaste/crypto}/base.py | 0 {crypto => secpaste/crypto}/chacha.py | 0 {crypto => secpaste/crypto}/pqc.py | 0 {providers => secpaste/providers}/__init__.py | 0 {providers => secpaste/providers}/base.py | 0 {providers => secpaste/providers}/dpaste.py | 0 12 files changed, 47 insertions(+) create mode 100644 .gitignore rename __init__.py => secpaste/__init__.py (100%) rename cli.py => secpaste/cli.py (100%) rename client.py => secpaste/client.py (100%) rename {crypto => secpaste/crypto}/__init__.py (100%) rename {crypto => secpaste/crypto}/aes.py (100%) rename {crypto => secpaste/crypto}/base.py (100%) rename {crypto => secpaste/crypto}/chacha.py (100%) rename {crypto => secpaste/crypto}/pqc.py (100%) rename {providers => secpaste/providers}/__init__.py (100%) rename {providers => secpaste/providers}/base.py (100%) rename {providers => secpaste/providers}/dpaste.py (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..55d7e42 --- /dev/null +++ b/.gitignore @@ -0,0 +1,47 @@ +# Python +__pycache__/ +*.py[cod] +*$py.class +*.so +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg + +# Virtual environments +venv/ +.venv/ +ENV/ +env/ + +# IDE +.vscode/ +.idea/ +*.swp +*.swo +*~ + +# OS +.DS_Store +Thumbs.db + +# Testing +.pytest_cache/ +.coverage +htmlcov/ + +# Distribution +dist/ +build/ diff --git a/__init__.py b/secpaste/__init__.py similarity index 100% rename from __init__.py rename to secpaste/__init__.py diff --git a/cli.py b/secpaste/cli.py similarity index 100% rename from cli.py rename to secpaste/cli.py diff --git a/client.py b/secpaste/client.py similarity index 100% rename from client.py rename to secpaste/client.py diff --git a/crypto/__init__.py b/secpaste/crypto/__init__.py similarity index 100% rename from crypto/__init__.py rename to secpaste/crypto/__init__.py diff --git a/crypto/aes.py b/secpaste/crypto/aes.py similarity index 100% rename from crypto/aes.py rename to secpaste/crypto/aes.py diff --git a/crypto/base.py b/secpaste/crypto/base.py similarity index 100% rename from crypto/base.py rename to secpaste/crypto/base.py diff --git a/crypto/chacha.py b/secpaste/crypto/chacha.py similarity index 100% rename from crypto/chacha.py rename to secpaste/crypto/chacha.py diff --git a/crypto/pqc.py b/secpaste/crypto/pqc.py similarity index 100% rename from crypto/pqc.py rename to secpaste/crypto/pqc.py diff --git a/providers/__init__.py b/secpaste/providers/__init__.py similarity index 100% rename from providers/__init__.py rename to secpaste/providers/__init__.py diff --git a/providers/base.py b/secpaste/providers/base.py similarity index 100% rename from providers/base.py rename to secpaste/providers/base.py diff --git a/providers/dpaste.py b/secpaste/providers/dpaste.py similarity index 100% rename from providers/dpaste.py rename to secpaste/providers/dpaste.py