vocably2anki 0.1.0__tar.gz → 0.1.1__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.
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/PKG-INFO +8 -2
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/README.md +6 -0
- vocably2anki-0.1.1/pyproject.toml +12 -0
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/v2a.py +6 -2
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/vocably2anki.egg-info/PKG-INFO +8 -2
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/vocably2anki.egg-info/SOURCES.txt +1 -0
- vocably2anki-0.1.1/vocably2anki.egg-info/entry_points.txt +2 -0
- vocably2anki-0.1.0/pyproject.toml +0 -9
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/setup.cfg +0 -0
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/vocably2anki.egg-info/dependency_links.txt +0 -0
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/vocably2anki.egg-info/requires.txt +0 -0
- {vocably2anki-0.1.0 → vocably2anki-0.1.1}/vocably2anki.egg-info/top_level.txt +0 -0
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: vocably2anki
|
3
|
-
Version: 0.1.
|
4
|
-
Summary:
|
3
|
+
Version: 0.1.1
|
4
|
+
Summary: Converts an exported vocably deck to a simpler format suitable for Anki import
|
5
5
|
Requires-Python: >=3.12
|
6
6
|
Description-Content-Type: text/markdown
|
7
7
|
Requires-Dist: arguably>=1.3.0
|
@@ -24,3 +24,9 @@ positional arguments:
|
|
24
24
|
options:
|
25
25
|
-h, --help show this help message and exit
|
26
26
|
```
|
27
|
+
|
28
|
+
or
|
29
|
+
```
|
30
|
+
> uvx v2a -h
|
31
|
+
...
|
32
|
+
```
|
@@ -0,0 +1,12 @@
|
|
1
|
+
[project]
|
2
|
+
name = "vocably2anki"
|
3
|
+
version = "0.1.1"
|
4
|
+
description = "Converts an exported vocably deck to a simpler format suitable for Anki import"
|
5
|
+
readme = "README.md"
|
6
|
+
requires-python = ">=3.12"
|
7
|
+
dependencies = [
|
8
|
+
"arguably>=1.3.0",
|
9
|
+
]
|
10
|
+
|
11
|
+
[project.scripts]
|
12
|
+
v2a = "v2a:main"
|
@@ -8,7 +8,7 @@ def convert(
|
|
8
8
|
input: Path, output: str, vocably_separator: str = "\t", anki_separator: str = ": "
|
9
9
|
):
|
10
10
|
"""
|
11
|
-
|
11
|
+
Converts a Vocably export file to Anki deck
|
12
12
|
|
13
13
|
Args:
|
14
14
|
input: the input Vocably file
|
@@ -26,6 +26,7 @@ def convert(
|
|
26
26
|
with open(input, encoding="utf-8") as f:
|
27
27
|
first = True
|
28
28
|
for line in f.readlines():
|
29
|
+
# ignore header line
|
29
30
|
if first:
|
30
31
|
first = False
|
31
32
|
continue
|
@@ -44,6 +45,9 @@ def convert(
|
|
44
45
|
finally:
|
45
46
|
out.close()
|
46
47
|
|
48
|
+
# entrypoint specified in project.scripts in pyproject.toml
|
49
|
+
def main():
|
50
|
+
arguably.run(name="v2a")
|
47
51
|
|
48
52
|
if __name__ == "__main__":
|
49
|
-
|
53
|
+
main()
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: vocably2anki
|
3
|
-
Version: 0.1.
|
4
|
-
Summary:
|
3
|
+
Version: 0.1.1
|
4
|
+
Summary: Converts an exported vocably deck to a simpler format suitable for Anki import
|
5
5
|
Requires-Python: >=3.12
|
6
6
|
Description-Content-Type: text/markdown
|
7
7
|
Requires-Dist: arguably>=1.3.0
|
@@ -24,3 +24,9 @@ positional arguments:
|
|
24
24
|
options:
|
25
25
|
-h, --help show this help message and exit
|
26
26
|
```
|
27
|
+
|
28
|
+
or
|
29
|
+
```
|
30
|
+
> uvx v2a -h
|
31
|
+
...
|
32
|
+
```
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|