stringcalc 0.1.0a0__tar.gz → 0.1.0a2__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.
Files changed (33) hide show
  1. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/PKG-INFO +2 -2
  2. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/cli.rst +8 -0
  3. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/index.md +55 -55
  4. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/pyproject.toml +4 -2
  5. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/stringcalc/__init__.py +1 -1
  6. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/stringcalc/_version.py +2 -2
  7. stringcalc-0.1.0a2/stringcalc/data/__init__.py +3 -0
  8. stringcalc-0.1.0a2/stringcalc/data/aquila-nng.csv +32 -0
  9. stringcalc-0.1.0a2/stringcalc/data/daddario-stp.csv +622 -0
  10. stringcalc-0.1.0a2/stringcalc/data/daddario-tension.csv +654 -0
  11. stringcalc-0.1.0a2/stringcalc/data/ghs.csv +560 -0
  12. stringcalc-0.1.0a2/stringcalc/data/stringjoy.csv +134 -0
  13. stringcalc-0.1.0a2/stringcalc/data/worth.csv +11 -0
  14. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/.gitignore +0 -0
  15. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/LICENSE +0 -0
  16. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/README.md +0 -0
  17. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/api.rst +0 -0
  18. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/cli_gauge-suggest_tb23nw.svg +0 -0
  19. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/cli_gauge-suggest_tb23nw_d.svg +0 -0
  20. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/conf.py +0 -0
  21. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/dev.md +0 -0
  22. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/examples/compare-data.md +0 -0
  23. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/examples/gauge-suggest.md +0 -0
  24. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/examples/pythagoras-ratios.md +0 -0
  25. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/examples/tension-plot.md +0 -0
  26. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/panel.rst +0 -0
  27. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/docs/prior-art.md +0 -0
  28. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/stringcalc/cli.py +0 -0
  29. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/stringcalc/frets.py +0 -0
  30. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/stringcalc/py.typed +0 -0
  31. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/stringcalc/tension.py +0 -0
  32. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/tests/test_frets.py +0 -0
  33. {stringcalc-0.1.0a0 → stringcalc-0.1.0a2}/tests/test_string.py +0 -0
@@ -1,7 +1,7 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: stringcalc
3
- Version: 0.1.0a0
4
- Dynamic: Summary
3
+ Version: 0.1.0a2
4
+ Summary: Instrument string calculations
5
5
  Project-URL: Home, https://github.com/zmoon/stringcalc
6
6
  Project-URL: Source, https://github.com/zmoon/stringcalc
7
7
  Project-URL: Documentation, https://stringcalc.readthedocs.io
@@ -6,6 +6,14 @@ For example, ``stringcalc gauge --suggest`` can be used to suggest strings.
6
6
  ``-T``, ``-L``, ``-P`` (tension, scale length, pitch)
7
7
  can be specified more than once to get results for multiple strings.
8
8
 
9
+ With `uv <https://docs.astral.sh/uv/>`__, you can install ``stringcalc`` globally with::
10
+
11
+ uv tool install stringcalc[cli]
12
+
13
+ or run it in an ephemeral environment with::
14
+
15
+ uvx stringcalc[cli]
16
+
9
17
  .. click:: stringcalc.cli:_typer_click_object
10
18
  :prog: stringcalc
11
19
  :nested: full
@@ -1,55 +1,55 @@
1
- # stringcalc
2
-
3
- Calculations for instrument strings.
4
-
5
- - {doc}`Python library <api>`
6
- - {doc}`Command-line interface <cli>`
7
- - {doc}`panel`
8
- - ...
9
-
10
- ## Installation
11
-
12
- stringcalc is available [on PyPI](https://pypi.org/project/stringcalc/):
13
-
14
- ```
15
- pip install stringcalc
16
- ```
17
-
18
- For the CLI, include the `cli` extra:
19
-
20
- ```
21
- pip install stringcalc[cli]
22
- ```
23
-
24
- ## Examples
25
-
26
- ```{nb-exec-table}
27
-
28
- ```
29
-
30
- ```{toctree}
31
- :hidden:
32
-
33
- panel.rst
34
- ```
35
-
36
- ```{toctree}
37
- :caption: Examples
38
- :hidden:
39
-
40
- examples/compare-data.md
41
- examples/gauge-suggest.md
42
- examples/tension-plot.md
43
- examples/pythagoras-ratios.md
44
- ```
45
-
46
- ```{toctree}
47
- :caption: Reference
48
- :hidden:
49
-
50
- api.rst
51
- cli.rst
52
- prior-art.md
53
- GitHub <https://github.com/zmoon/stringcalc>
54
- dev.md
55
- ```
1
+ # stringcalc
2
+
3
+ Calculations for instrument strings.
4
+
5
+ - {doc}`Python library <api>`
6
+ - {doc}`Command-line interface <cli>`
7
+ - {doc}`panel`
8
+ - ...
9
+
10
+ ## Installation
11
+
12
+ stringcalc is available [on PyPI](https://pypi.org/project/stringcalc/):
13
+
14
+ ```
15
+ pip install stringcalc
16
+ ```
17
+
18
+ For the CLI, include the `cli` extra:
19
+
20
+ ```
21
+ pip install stringcalc[cli]
22
+ ```
23
+
24
+ ## Examples
25
+
26
+ ```{nb-exec-table}
27
+
28
+ ```
29
+
30
+ ```{toctree}
31
+ :hidden:
32
+
33
+ panel.rst
34
+ ```
35
+
36
+ ```{toctree}
37
+ :caption: Examples
38
+ :hidden:
39
+
40
+ examples/compare-data.md
41
+ examples/gauge-suggest.md
42
+ examples/tension-plot.md
43
+ examples/pythagoras-ratios.md
44
+ ```
45
+
46
+ ```{toctree}
47
+ :caption: Reference
48
+ :hidden:
49
+
50
+ api.rst
51
+ cli.rst
52
+ prior-art.md
53
+ GitHub <https://github.com/zmoon/stringcalc>
54
+ dev.md
55
+ ```
@@ -1,5 +1,5 @@
1
1
  [build-system]
2
- requires = ["hatchling", "hatch-vcs"]
2
+ requires = ["hatchling", "hatch-vcs", "hatch-docstring-description"]
3
3
  build-backend = "hatchling.build"
4
4
 
5
5
  [project]
@@ -65,6 +65,8 @@ source = "vcs"
65
65
  [tool.hatch.build.hooks.vcs]
66
66
  version-file = "stringcalc/_version.py"
67
67
 
68
+ [tool.hatch.metadata.hooks.docstring-description]
69
+
68
70
  [tool.hatch.build.targets.sdist]
69
71
  exclude = [
70
72
  ".flake8",
@@ -72,7 +74,7 @@ exclude = [
72
74
  ".pre-commit-config.yaml",
73
75
  ".readthedocs.yaml",
74
76
  ".github/",
75
- "data/",
77
+ "/data/",
76
78
  "panel/",
77
79
  ]
78
80
 
@@ -1,5 +1,5 @@
1
1
  """
2
- Calculations for instrument strings
2
+ Instrument string calculations
3
3
  """
4
4
 
5
5
  try:
@@ -28,7 +28,7 @@ version_tuple: VERSION_TUPLE
28
28
  commit_id: COMMIT_ID
29
29
  __commit_id__: COMMIT_ID
30
30
 
31
- __version__ = version = '0.1.0a0'
32
- __version_tuple__ = version_tuple = (0, 1, 0, 'a0')
31
+ __version__ = version = '0.1.0a2'
32
+ __version_tuple__ = version_tuple = (0, 1, 0, 'a2')
33
33
 
34
34
  __commit_id__ = commit_id = None
@@ -0,0 +1,3 @@
1
+ """
2
+ String data files.
3
+ """
@@ -0,0 +1,32 @@
1
+ id,gauge,gauge_nylon_web,gauge_carbon_web,gauge_nylon_pdf,gauge_carbon_pdf,gauge_d,gauge_da_nylon
2
+ 36NNG,0.0142,0.0157,0.0118,0.0157,0.0118,0.0287,0.0162
3
+ 38NNG,0.015,0.0165,0.0126,0.0165,0.013,0.0299,0.0171
4
+ 40NNG,0.0157,0.0173,0.0134,0.0181,0.0138,0.0311,0.018
5
+ 42NNG,0.0165,0.0181,0.0142,0.0187,0.0146,0.0323,0.0189
6
+ 44NNG,0.0173,0.0189,0.015,0.0197,0.015,0.0335,0.0198
7
+ 46NNG,0.0181,0.0205,0.0157,0.0207,0.0157,0.0346,0.0207
8
+ 48NNG,0.0189,0.0213,0.0157,0.0213,0.0165,0.0358,0.0216
9
+ 50NNG,0.0197,0.022,0.0165,0.022,0.0173,0.037,0.0225
10
+ 52NNG,0.0205,0.0228,0.0173,0.0226,0.0181,0.0382,0.0234
11
+ 54NNG,0.0213,0.0236,0.0181,0.0236,0.0185,0.0394,0.0243
12
+ 56NNG,0.022,0.0244,0.0189,0.0246,0.0189,0.0409,0.0252
13
+ 58NNG,0.0228,0.0252,0.0197,0.0256,0.0197,0.0425,0.0261
14
+ 60NNG,0.0236,0.026,0.0205,0.0266,0.0205,0.0441,0.027
15
+ 62NNG,0.0244,0.0268,0.0205,0.0276,0.0213,0.0457,0.0279
16
+ 64NNG,0.0252,0.0276,0.0213,0.0285,0.022,0.0472,0.0288
17
+ 66NNG,0.026,0.0287,0.022,0.0295,0.0224,0.0488,0.0297
18
+ 68NNG,0.0268,0.0287,0.0228,0.0305,0.0236,0.0504,0.0306
19
+ 70NNG,0.0276,0.0299,0.0236,0.0315,0.0244,0.052,0.0315
20
+ 73NNG,0.0287,0.0311,0.0244,0.0325,0.0252,0.0535,0.0328
21
+ 76NNG,0.0299,0.0335,0.0252,0.0335,0.026,0.0551,0.0342
22
+ 79NNG,0.0311,0.0346,0.0268,0.0344,0.0268,0.0571,0.0355
23
+ 82NNG,0.0323,0.0358,0.0276,0.0364,0.0283,0.0591,0.0369
24
+ 85NNG,0.0335,0.037,0.0287,0.0374,0.0291,0.061,0.0382
25
+ 88NNG,0.0346,0.0382,0.0299,0.0384,0.0299,0.063,0.0396
26
+ 91NNG,0.0358,0.0394,0.0311,0.0394,0.0311,0.065,0.0409
27
+ 94NNG,0.037,0.0409,0.0311,0.0409,0.0327,0.0669,0.0423
28
+ 97NNG,0.0382,0.0421,0.0323,,0.0335,0.0689,0.0436
29
+ 100NNG,0.0394,0.0437,0.0335,,0.035,0.0709,0.045
30
+ 104NNG,0.0409,0.0453,0.0346,,0.0358,0.0728,0.0468
31
+ 108NNG,0.0425,0.0472,,,,0.0748,0.0486
32
+ 112NNG,0.0441,0.0488,,,,0.0768,0.0504