vocably2anki 0.1.0__tar.gz → 0.1.2__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.
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vocably2anki
3
- Version: 0.1.0
4
- Summary: Add your description here
3
+ Version: 0.1.2
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
+ ```
@@ -15,4 +15,10 @@ positional arguments:
15
15
 
16
16
  options:
17
17
  -h, --help show this help message and exit
18
+ ```
19
+
20
+ or
21
+ ```
22
+ > uvx v2a -h
23
+ ...
18
24
  ```
@@ -0,0 +1,12 @@
1
+ [project]
2
+ name = "vocably2anki"
3
+ version = "0.1.2"
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
+ vocably2anki = "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
- converts a Vocably export file to Anki deck
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
- arguably.run()
53
+ main()
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: vocably2anki
3
- Version: 0.1.0
4
- Summary: Add your description here
3
+ Version: 0.1.2
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
+ ```
@@ -4,5 +4,6 @@ v2a.py
4
4
  vocably2anki.egg-info/PKG-INFO
5
5
  vocably2anki.egg-info/SOURCES.txt
6
6
  vocably2anki.egg-info/dependency_links.txt
7
+ vocably2anki.egg-info/entry_points.txt
7
8
  vocably2anki.egg-info/requires.txt
8
9
  vocably2anki.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ vocably2anki = v2a:main
@@ -1,9 +0,0 @@
1
- [project]
2
- name = "vocably2anki"
3
- version = "0.1.0"
4
- description = "Add your description here"
5
- readme = "README.md"
6
- requires-python = ">=3.12"
7
- dependencies = [
8
- "arguably>=1.3.0",
9
- ]
File without changes