enpass-escape 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,75 @@
1
+ name: Publish Python Package
2
+
3
+ on:
4
+ push:
5
+ tags:
6
+ - '*'
7
+
8
+ jobs:
9
+ unit_test:
10
+ runs-on: ubuntu-22.04
11
+ steps:
12
+ - uses: actions/checkout@v4
13
+ - name: Set up Python
14
+ uses: actions/setup-python@v5
15
+ with:
16
+ python-version: '3.11'
17
+ - name: Install dependencies
18
+ run: pip install . && pip install pytest
19
+ - name: Run tests
20
+ run: pytest tests/unittest
21
+
22
+ build:
23
+ runs-on: ubuntu-22.04
24
+ needs: unit_test
25
+ steps:
26
+ - uses: actions/checkout@v4
27
+ - name: Set up Python
28
+ uses: actions/setup-python@v5
29
+ with:
30
+ python-version: '3.11'
31
+ - name: Install build dependencies
32
+ run: pip install build
33
+ - name: Build package
34
+ run: python -m build
35
+ - name: Upload Build Artifacts
36
+ uses: actions/upload-artifact@v4
37
+ with:
38
+ name: build-artifact
39
+ path: dist/
40
+
41
+ release:
42
+ if: startsWith(github.ref, 'refs/tags/')
43
+ runs-on: ubuntu-22.04
44
+ needs: [unit_test, build]
45
+ environment:
46
+ name: pypi
47
+ url: https://pypi.org/p/enpass-escape
48
+ permissions:
49
+ id-token: write # Mandatory for trusted publishing
50
+ contents: read
51
+ steps:
52
+ - name: Download Build Artifacts
53
+ uses: actions/download-artifact@v4
54
+ with:
55
+ path: dist
56
+
57
+ - name: Prepare Distribution Files
58
+ run: |
59
+ mkdir -p dist_files
60
+ if [ -d "dist/build-artifact" ] && [ "$(ls -A dist/build-artifact)" ]; then
61
+ mv dist/build-artifact/*.whl dist_files/ || echo "No wheel files found"
62
+ mv dist/build-artifact/*.tar.gz dist_files/ || echo "No tar.gz files found"
63
+ else
64
+ echo "Error: Expected artifact directory not found or empty"
65
+ ls -la dist/ # Debug: show what's in the dist directory
66
+ exit 1
67
+ fi
68
+ rm -rf dist
69
+ mv dist_files dist
70
+
71
+ - name: List Distribution Files
72
+ run: ls -la dist
73
+
74
+ - name: Publish to PyPI
75
+ uses: pypa/gh-action-pypi-publish@release/v1
@@ -0,0 +1,173 @@
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+
9
+ # Distribution / packaging
10
+ .Python
11
+ build/
12
+ develop-eggs/
13
+ dist/
14
+ downloads/
15
+ eggs/
16
+ .eggs/
17
+ lib/
18
+ lib64/
19
+ parts/
20
+ sdist/
21
+ var/
22
+ wheels/
23
+ share/python-wheels/
24
+ *.egg-info/
25
+ .installed.cfg
26
+ *.egg
27
+ MANIFEST
28
+
29
+ # PyInstaller
30
+ # Usually these files are written by a python script from a template
31
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
32
+ *.manifest
33
+ *.spec
34
+
35
+ # Installer logs
36
+ pip-log.txt
37
+ pip-delete-this-directory.txt
38
+
39
+ # Unit test / coverage reports
40
+ htmlcov/
41
+ .tox/
42
+ .nox/
43
+ .coverage
44
+ .coverage.*
45
+ .cache
46
+ nosetests.xml
47
+ coverage.xml
48
+ *.cover
49
+ *.py,cover
50
+ .hypothesis/
51
+ .pytest_cache/
52
+ cover/
53
+
54
+ # Translations
55
+ *.mo
56
+ *.pot
57
+
58
+ # Django stuff:
59
+ *.log
60
+ local_settings.py
61
+ db.sqlite3
62
+ db.sqlite3-journal
63
+
64
+ # Flask stuff:
65
+ instance/
66
+ .webassets-cache
67
+
68
+ # Scrapy stuff:
69
+ .scrapy
70
+
71
+ # Sphinx documentation
72
+ docs/_build/
73
+
74
+ # PyBuilder
75
+ .pybuilder/
76
+ target/
77
+
78
+ # Jupyter Notebook
79
+ .ipynb_checkpoints
80
+
81
+ # IPython
82
+ profile_default/
83
+ ipython_config.py
84
+
85
+ # pyenv
86
+ # For a library or package, you might want to ignore these files since the code is
87
+ # intended to run in multiple environments; otherwise, check them in:
88
+ # .python-version
89
+
90
+ # pipenv
91
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
93
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
94
+ # install all needed dependencies.
95
+ #Pipfile.lock
96
+
97
+ # UV
98
+ # Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
100
+ # commonly ignored for libraries.
101
+ #uv.lock
102
+
103
+ # poetry
104
+ # Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105
+ # This is especially recommended for binary packages to ensure reproducibility, and is more
106
+ # commonly ignored for libraries.
107
+ # https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108
+ #poetry.lock
109
+
110
+ # pdm
111
+ # Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
112
+ #pdm.lock
113
+ # pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
114
+ # in version control.
115
+ # https://pdm.fming.dev/latest/usage/project/#working-with-version-control
116
+ .pdm.toml
117
+ .pdm-python
118
+ .pdm-build/
119
+
120
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
121
+ __pypackages__/
122
+
123
+ # Celery stuff
124
+ celerybeat-schedule
125
+ celerybeat.pid
126
+
127
+ # SageMath parsed files
128
+ *.sage.py
129
+
130
+ # Environments
131
+ .env
132
+ .venv
133
+ env/
134
+ venv/
135
+ ENV/
136
+ env.bak/
137
+ venv.bak/
138
+
139
+ # Spyder project settings
140
+ .spyderproject
141
+ .spyproject
142
+
143
+ # Rope project settings
144
+ .ropeproject
145
+
146
+ # mkdocs documentation
147
+ /site
148
+
149
+ # mypy
150
+ .mypy_cache/
151
+ .dmypy.json
152
+ dmypy.json
153
+
154
+ # Pyre type checker
155
+ .pyre/
156
+
157
+ # pytype static type analyzer
158
+ .pytype/
159
+
160
+ # Cython debug symbols
161
+ cython_debug/
162
+
163
+ # PyCharm
164
+ # JetBrains specific template is maintained in a separate JetBrains.gitignore that can
165
+ # be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
166
+ # and can be added to the global gitignore or merged into this file. For a more nuclear
167
+ # option (not recommended) you can uncomment the following to ignore the entire idea folder.
168
+ #.idea/
169
+
170
+ # PyPI configuration file
171
+ .pypirc
172
+
173
+ uv.lock
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Alexander Kell
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,122 @@
1
+ Metadata-Version: 2.4
2
+ Name: enpass-escape
3
+ Version: 0.1.0
4
+ Summary: Since Enpass doesn't make it so easy to escape, this tool helps you to export your data in other Password Managers formats.
5
+ Author-email: ake2l <other@ke2.de>
6
+ License: MIT License
7
+
8
+ Copyright (c) 2025 Alexander Kell
9
+
10
+ Permission is hereby granted, free of charge, to any person obtaining a copy
11
+ of this software and associated documentation files (the "Software"), to deal
12
+ in the Software without restriction, including without limitation the rights
13
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
14
+ copies of the Software, and to permit persons to whom the Software is
15
+ furnished to do so, subject to the following conditions:
16
+
17
+ The above copyright notice and this permission notice shall be included in all
18
+ copies or substantial portions of the Software.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
27
+
28
+ Keywords: enpass,password-manager,escape,export,import,cli
29
+ Classifier: Development Status :: 3 - Alpha
30
+ Classifier: Intended Audience :: End Users/Desktop
31
+ Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
32
+ Classifier: Programming Language :: Python :: 3.11
33
+ Classifier: Programming Language :: Python :: 3.12
34
+ Classifier: Topic :: Security
35
+ Classifier: Topic :: Utilities
36
+ Requires-Python: >=3.11
37
+ Description-Content-Type: text/markdown
38
+ License-File: LICENSE
39
+ Requires-Dist: typer[all]
40
+ Dynamic: license-file
41
+
42
+ # Enpass-Escape
43
+
44
+ A lightweight Python CLI to migrate passwords from Enpass to Apple Passwords format. Supports both CSV and JSON exports, preserves TOTP/2FA secrets, and consolidates extra fields into notes.
45
+
46
+ ## 🚀 Features
47
+
48
+ - Converts Enpass CSV or JSON export to Apple Passwords import CSV
49
+ - Preserves TOTP/2FA secrets with proper otpauth URI formatting
50
+ - Maintains titles, URLs, usernames, passwords, and notes
51
+ - Combines any additional fields into organized notes
52
+ - Zero external dependencies except Typer for the CLI interface
53
+
54
+ ## 📋 Prerequisites
55
+
56
+ - Python 3.11 or higher
57
+
58
+ ## 🛠️ Installation
59
+
60
+ Install from PyPI:
61
+
62
+ ```bash
63
+ pip install enpass-escape
64
+ ```
65
+
66
+ Or install development version:
67
+
68
+ ```bash
69
+ git clone https://github.com/ake2l/enpass-apple-migrator.git
70
+ cd enpass-apple-migrator
71
+ pip install -e .
72
+ ```
73
+
74
+ ## 💻 Usage
75
+
76
+ > **Note:** The Enpass CSV export does not support all fields completely (e.g., TOTP, notes, extra fields). For best results, it is recommended to use the **JSON export** from Enpass!
77
+
78
+ Run the `enpass-escape` command with your Enpass export and desired output path:
79
+
80
+ ```bash
81
+ # CSV-to-CSV
82
+ enpass-escape enpass-export.csv export-apple-passwords.csv
83
+
84
+ # JSON-to-CSV
85
+ enpass-escape export.json apple-output.csv
86
+
87
+ # View help
88
+ enpass-escape --help
89
+ ```
90
+
91
+ The output CSV will have the header:
92
+
93
+ ```csv
94
+ Title,URL,Username,Password,OTPAuth URL,Notes
95
+ ```
96
+
97
+ ### Input Formats
98
+
99
+ - **JSON (recommended)**: Enpass JSON export (recommended for complete data export)
100
+ - **CSV**: Standard Enpass CSV export (limited field support)
101
+
102
+ ### Output Format
103
+
104
+ Apple Passwords import CSV with the following columns:
105
+
106
+ ```csv
107
+ Title,URL,Username,Password,Notes,OTPAuth URL
108
+ ```
109
+
110
+ ## 🔒 Security Considerations
111
+
112
+ - All processing is local; no network calls
113
+ - No data is stored or cached
114
+ - No external dependencies other than Typer
115
+
116
+ ## 🤝 Contributing
117
+
118
+ Contributions welcome! Open an issue or submit a pull request.
119
+
120
+ ## 📝 License
121
+
122
+ MIT License. See [LICENSE](LICENSE) for details.
@@ -0,0 +1,81 @@
1
+ # Enpass-Escape
2
+
3
+ A lightweight Python CLI to migrate passwords from Enpass to Apple Passwords format. Supports both CSV and JSON exports, preserves TOTP/2FA secrets, and consolidates extra fields into notes.
4
+
5
+ ## 🚀 Features
6
+
7
+ - Converts Enpass CSV or JSON export to Apple Passwords import CSV
8
+ - Preserves TOTP/2FA secrets with proper otpauth URI formatting
9
+ - Maintains titles, URLs, usernames, passwords, and notes
10
+ - Combines any additional fields into organized notes
11
+ - Zero external dependencies except Typer for the CLI interface
12
+
13
+ ## 📋 Prerequisites
14
+
15
+ - Python 3.11 or higher
16
+
17
+ ## 🛠️ Installation
18
+
19
+ Install from PyPI:
20
+
21
+ ```bash
22
+ pip install enpass-escape
23
+ ```
24
+
25
+ Or install development version:
26
+
27
+ ```bash
28
+ git clone https://github.com/ake2l/enpass-apple-migrator.git
29
+ cd enpass-apple-migrator
30
+ pip install -e .
31
+ ```
32
+
33
+ ## 💻 Usage
34
+
35
+ > **Note:** The Enpass CSV export does not support all fields completely (e.g., TOTP, notes, extra fields). For best results, it is recommended to use the **JSON export** from Enpass!
36
+
37
+ Run the `enpass-escape` command with your Enpass export and desired output path:
38
+
39
+ ```bash
40
+ # CSV-to-CSV
41
+ enpass-escape enpass-export.csv export-apple-passwords.csv
42
+
43
+ # JSON-to-CSV
44
+ enpass-escape export.json apple-output.csv
45
+
46
+ # View help
47
+ enpass-escape --help
48
+ ```
49
+
50
+ The output CSV will have the header:
51
+
52
+ ```csv
53
+ Title,URL,Username,Password,OTPAuth URL,Notes
54
+ ```
55
+
56
+ ### Input Formats
57
+
58
+ - **JSON (recommended)**: Enpass JSON export (recommended for complete data export)
59
+ - **CSV**: Standard Enpass CSV export (limited field support)
60
+
61
+ ### Output Format
62
+
63
+ Apple Passwords import CSV with the following columns:
64
+
65
+ ```csv
66
+ Title,URL,Username,Password,Notes,OTPAuth URL
67
+ ```
68
+
69
+ ## 🔒 Security Considerations
70
+
71
+ - All processing is local; no network calls
72
+ - No data is stored or cached
73
+ - No external dependencies other than Typer
74
+
75
+ ## 🤝 Contributing
76
+
77
+ Contributions welcome! Open an issue or submit a pull request.
78
+
79
+ ## 📝 License
80
+
81
+ MIT License. See [LICENSE](LICENSE) for details.
File without changes