stringcalc 0.1.0.dev5__tar.gz → 0.1.0.dev10__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,133 +1,133 @@
1
- data/tension_chart_13934.pdf
2
- data/*.png
3
-
4
-
5
- # Byte-compiled / optimized / DLL files
6
- __pycache__/
7
- *.py[cod]
8
- *$py.class
9
-
10
- # C extensions
11
- *.so
12
-
13
- # Distribution / packaging
14
- .Python
15
- build/
16
- develop-eggs/
17
- dist/
18
- downloads/
19
- eggs/
20
- .eggs/
21
- lib/
22
- lib64/
23
- parts/
24
- sdist/
25
- var/
26
- wheels/
27
- pip-wheel-metadata/
28
- share/python-wheels/
29
- *.egg-info/
30
- .installed.cfg
31
- *.egg
32
- MANIFEST
33
-
34
- # PyInstaller
35
- # Usually these files are written by a python script from a template
36
- # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
- *.manifest
38
- *.spec
39
-
40
- # Installer logs
41
- pip-log.txt
42
- pip-delete-this-directory.txt
43
-
44
- # Unit test / coverage reports
45
- htmlcov/
46
- .tox/
47
- .nox/
48
- .coverage
49
- .coverage.*
50
- .cache
51
- nosetests.xml
52
- coverage.xml
53
- *.cover
54
- *.py,cover
55
- .hypothesis/
56
- .pytest_cache/
57
-
58
- # Translations
59
- *.mo
60
- *.pot
61
-
62
- # Django stuff:
63
- *.log
64
- local_settings.py
65
- db.sqlite3
66
- db.sqlite3-journal
67
-
68
- # Flask stuff:
69
- instance/
70
- .webassets-cache
71
-
72
- # Scrapy stuff:
73
- .scrapy
74
-
75
- # Sphinx documentation
76
- docs/_build/
77
-
78
- # PyBuilder
79
- target/
80
-
81
- # Jupyter Notebook
82
- .ipynb_checkpoints
83
-
84
- # IPython
85
- profile_default/
86
- ipython_config.py
87
-
88
- # pyenv
89
- .python-version
90
-
91
- # pipenv
92
- # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
- # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
- # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
- # install all needed dependencies.
96
- #Pipfile.lock
97
-
98
- # PEP 582; used by e.g. github.com/David-OConnor/pyflow
99
- __pypackages__/
100
-
101
- # Celery stuff
102
- celerybeat-schedule
103
- celerybeat.pid
104
-
105
- # SageMath parsed files
106
- *.sage.py
107
-
108
- # Environments
109
- .env
110
- .venv
111
- env/
112
- venv/
113
- ENV/
114
- env.bak/
115
- venv.bak/
116
-
117
- # Spyder project settings
118
- .spyderproject
119
- .spyproject
120
-
121
- # Rope project settings
122
- .ropeproject
123
-
124
- # mkdocs documentation
125
- /site
126
-
127
- # mypy
128
- .mypy_cache/
129
- .dmypy.json
130
- dmypy.json
131
-
132
- # Pyre type checker
133
- .pyre/
1
+ data/tension_chart_13934.pdf
2
+ data/*.png
3
+
4
+
5
+ # Byte-compiled / optimized / DLL files
6
+ __pycache__/
7
+ *.py[cod]
8
+ *$py.class
9
+
10
+ # C extensions
11
+ *.so
12
+
13
+ # Distribution / packaging
14
+ .Python
15
+ build/
16
+ develop-eggs/
17
+ dist/
18
+ downloads/
19
+ eggs/
20
+ .eggs/
21
+ lib/
22
+ lib64/
23
+ parts/
24
+ sdist/
25
+ var/
26
+ wheels/
27
+ pip-wheel-metadata/
28
+ share/python-wheels/
29
+ *.egg-info/
30
+ .installed.cfg
31
+ *.egg
32
+ MANIFEST
33
+
34
+ # PyInstaller
35
+ # Usually these files are written by a python script from a template
36
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
37
+ *.manifest
38
+ *.spec
39
+
40
+ # Installer logs
41
+ pip-log.txt
42
+ pip-delete-this-directory.txt
43
+
44
+ # Unit test / coverage reports
45
+ htmlcov/
46
+ .tox/
47
+ .nox/
48
+ .coverage
49
+ .coverage.*
50
+ .cache
51
+ nosetests.xml
52
+ coverage.xml
53
+ *.cover
54
+ *.py,cover
55
+ .hypothesis/
56
+ .pytest_cache/
57
+
58
+ # Translations
59
+ *.mo
60
+ *.pot
61
+
62
+ # Django stuff:
63
+ *.log
64
+ local_settings.py
65
+ db.sqlite3
66
+ db.sqlite3-journal
67
+
68
+ # Flask stuff:
69
+ instance/
70
+ .webassets-cache
71
+
72
+ # Scrapy stuff:
73
+ .scrapy
74
+
75
+ # Sphinx documentation
76
+ docs/_build/
77
+
78
+ # PyBuilder
79
+ target/
80
+
81
+ # Jupyter Notebook
82
+ .ipynb_checkpoints
83
+
84
+ # IPython
85
+ profile_default/
86
+ ipython_config.py
87
+
88
+ # pyenv
89
+ .python-version
90
+
91
+ # pipenv
92
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
93
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
94
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
95
+ # install all needed dependencies.
96
+ #Pipfile.lock
97
+
98
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
99
+ __pypackages__/
100
+
101
+ # Celery stuff
102
+ celerybeat-schedule
103
+ celerybeat.pid
104
+
105
+ # SageMath parsed files
106
+ *.sage.py
107
+
108
+ # Environments
109
+ .env
110
+ .venv
111
+ env/
112
+ venv/
113
+ ENV/
114
+ env.bak/
115
+ venv.bak/
116
+
117
+ # Spyder project settings
118
+ .spyderproject
119
+ .spyproject
120
+
121
+ # Rope project settings
122
+ .ropeproject
123
+
124
+ # mkdocs documentation
125
+ /site
126
+
127
+ # mypy
128
+ .mypy_cache/
129
+ .dmypy.json
130
+ dmypy.json
131
+
132
+ # Pyre type checker
133
+ .pyre/
@@ -8,10 +8,10 @@ repos:
8
8
  - id: check-yaml
9
9
 
10
10
  - repo: https://github.com/asottile/pyupgrade
11
- rev: "v3.3.1"
11
+ rev: "v3.4.0"
12
12
  hooks:
13
13
  - id: pyupgrade
14
- args: [--py38-plus]
14
+ args: [--py39-plus]
15
15
 
16
16
  - repo: https://github.com/PyCQA/isort
17
17
  rev: "5.12.0"
@@ -19,7 +19,7 @@ repos:
19
19
  - id: isort
20
20
 
21
21
  - repo: https://github.com/psf/black
22
- rev: "23.1.0"
22
+ rev: "23.3.0"
23
23
  hooks:
24
24
  - id: black
25
25
 
@@ -0,0 +1,34 @@
1
+ Metadata-Version: 2.1
2
+ Name: stringcalc
3
+ Version: 0.1.0.dev10
4
+ Summary: Calculations for instrument strings
5
+ Author-email: zmoon <zmoon92@gmail.com>
6
+ Requires-Python: ~=3.9
7
+ Description-Content-Type: text/markdown
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Requires-Dist: numpy >=1.21
10
+ Requires-Dist: pandas
11
+ Requires-Dist: pint >=0.22
12
+ Requires-Dist: pyabc2
13
+ Requires-Dist: rich ; extra == "cli"
14
+ Requires-Dist: typer ; extra == "cli"
15
+ Requires-Dist: ipython ; extra == "dev"
16
+ Requires-Dist: matplotlib ; extra == "doc"
17
+ Requires-Dist: mypy ; extra == "test"
18
+ Requires-Dist: pandas-stubs ; extra == "test"
19
+ Requires-Dist: pytest ; extra == "test"
20
+ Project-URL: Home, https://github.com/zmoon/stringcalc
21
+ Project-URL: Source, https://github.com/zmoon/stringcalc
22
+ Provides-Extra: cli
23
+ Provides-Extra: dev
24
+ Provides-Extra: doc
25
+ Provides-Extra: test
26
+
27
+ # stringcalc
28
+
29
+ *Calculations for [string instrument](https://en.wikipedia.org/wiki/String_instrument)s' strings*
30
+
31
+ [![CI workflow status](https://github.com/zmoon/stringcalc/actions/workflows/ci.yml/badge.svg)](https://github.com/zmoon/stringcalc/actions/workflows/ci.yml)
32
+ [![Version on PyPI](https://img.shields.io/pypi/v/stringcalc.svg)](https://pypi.org/project/stringcalc/)
33
+ [![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
34
+
@@ -0,0 +1,7 @@
1
+ # stringcalc
2
+
3
+ *Calculations for [string instrument](https://en.wikipedia.org/wiki/String_instrument)s' strings*
4
+
5
+ [![CI workflow status](https://github.com/zmoon/stringcalc/actions/workflows/ci.yml/badge.svg)](https://github.com/zmoon/stringcalc/actions/workflows/ci.yml)
6
+ [![Version on PyPI](https://img.shields.io/pypi/v/stringcalc.svg)](https://pypi.org/project/stringcalc/)
7
+ [![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
@@ -1,60 +1,50 @@
1
- # stringcalc
2
-
3
- *Calculations for [string instrument](https://en.wikipedia.org/wiki/String_instrument)s' strings*
4
-
5
- [![CI workflow status](https://github.com/zmoon/stringcalc/actions/workflows/ci.yml/badge.svg)](https://github.com/zmoon/stringcalc/actions/workflows/ci.yml)
6
- [![Version on PyPI](https://img.shields.io/pypi/v/stringcalc.svg)](https://pypi.org/project/stringcalc/)
7
- [![Project Status: WIP – Initial development is in progress, but there has not yet been a stable, usable release suitable for the public.](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip)
8
-
9
- ## Prior art
10
-
11
- ### Web apps
12
-
13
- - D'Addario String Tension Pro -- <https://www.daddario.com/string-tension-pro/>
14
- - has been down for some time, partially inspiring this work
15
- - but I remember it being pretty nice
16
- - <https://stringtensioncalculator.com/>
17
- - specifically for [Kalium strings](https://kaliummusic.com/strings/)
18
- - somewhat similar to D'Addario String Tension Pro (from what I remember)
19
- - select scale length (0.25" increments), pitch, and gauge -> shows tension and frequency
20
- - shows 6 (or more) strings at once
21
- - scale length presets include a few multi-scale options
22
- - source: <https://github.com/aaronabramov/string-tension-calculator>
23
- - Shelquist -- <https://wahiduddin.net/calc/calc_guitar_tension_from_size.htm>
24
- - input scale length (in | cm), diameter (in | mm), pitch class, octave
25
- -> shows tension in lb and kg for several D'Addario steel-core string types
26
- - lots of info on the page
27
- - some nice messages if tension is too high or low
28
- - Curt Mangan -- <https://www.curtmangan.com/string-tension-calculator/>
29
- - 6, 7, or 8 strings
30
- - multiple scale length presets, including many multi-scale, but can't set your own
31
- - (guitar / electric bass focused)
32
- - standard tuning default, but a selector allows tuning down all strings by 1--4 half steps
33
- - for each string individually, can change gauge and pitch
34
- - shows tension plot and sum
35
- - Stringjoy -- <https://tension.stringjoy.com/>
36
- - some useful info on the page
37
- - for [Stringjoy strings](https://stringjoy.com/shop/strings/)
38
- - select string type, # of strings (6--9 | 12), scale length (any float, inches)
39
- - for each string individually, can change scale length, pitch, gauge
40
- - shows individual tensions and total tension interactively (i.e. don't need to submit)
41
- - [Theo Parmakis](http://parmakis-instruments.co.uk/about-theo) -- <http://chordgen.rattree.co.uk/tensiontool.php>
42
- - some useful info on the page (« show more information... »)
43
- - unique feature: offers presets for different instruments, including different tunings
44
- - reference presets "are mostly based upon my own instruments, and the gauges I usually string them with"
45
- - once, you find a preset you like, click and can edit
46
- - for whole set, can change scale length (any float, in | mm), string material, winding material (can't set individually), whether to double all
47
- - for each string, can change pitch, plain or wound, string material (steel, nylon, gut, Nylgut), gauge, single or double
48
- - shows tensions for each course and the total
49
- - unique feature: "equalize" button, defaults to tension on top string but can choose which one you want to equalize to
50
- - based on the D'Addario data but also extrapolating to some other materials
51
- - can show tension (lb), string gauge, and frequency (Hz) plots
52
- - nice text format, e.g. `.026 w N @ 25" = 13.165 lb`
53
- - can handle strings starting arbitrarily further up the fretboard (after the `@` in the tuning editor)
54
- - purports to offer the source code, but the link currently (2022-04-15) doesn't work
55
- - <https://rodrigocfd.github.io/string-tension-calc/>
56
- - compare multiple string sets using string tensions and a tension plot (though not total tension)
57
- - electric guitar focused, including a few 7- and 8-string sets
58
- - after selecting a set, can adjust individual strings (gauge and plain/wound) and pitches (-5--+1 half steps)
59
- - can also choose to tune down the whole set by up to 4 half steps, like the Curt Mangan app
60
- - source: <https://github.com/rodrigocfd/string-tension-calc>
1
+ ## Web apps
2
+
3
+ - D'Addario String Tension Pro -- <https://www.daddario.com/string-tension-pro/>
4
+ - has been down for some time, partially inspiring this work
5
+ - but I remember it being pretty nice
6
+ - <https://stringtensioncalculator.com/>
7
+ - specifically for [Kalium strings](https://kaliummusic.com/strings/)
8
+ - somewhat similar to D'Addario String Tension Pro (from what I remember)
9
+ - select scale length (0.25" increments), pitch, and gauge -> shows tension and frequency
10
+ - shows 6 (or more) strings at once
11
+ - scale length presets include a few multi-scale options
12
+ - source: <https://github.com/aaronabramov/string-tension-calculator>
13
+ - Shelquist -- <https://wahiduddin.net/calc/calc_guitar_tension_from_size.htm>
14
+ - input scale length (in | cm), diameter (in | mm), pitch class, octave
15
+ -> shows tension in lb and kg for several D'Addario steel-core string types
16
+ - lots of info on the page
17
+ - some nice messages if tension is too high or low
18
+ - Curt Mangan -- <https://www.curtmangan.com/string-tension-calculator/>
19
+ - 6, 7, or 8 strings
20
+ - multiple scale length presets, including many multi-scale, but can't set your own
21
+ - (guitar / electric bass focused)
22
+ - standard tuning default, but a selector allows tuning down all strings by 1--4 half steps
23
+ - for each string individually, can change gauge and pitch
24
+ - shows tension plot and sum
25
+ - Stringjoy -- <https://tension.stringjoy.com/>
26
+ - some useful info on the page
27
+ - for [Stringjoy strings](https://stringjoy.com/shop/strings/)
28
+ - select string type, # of strings (6--9 | 12), scale length (any float, inches)
29
+ - for each string individually, can change scale length, pitch, gauge
30
+ - shows individual tensions and total tension interactively (i.e. don't need to submit)
31
+ - [Theo Parmakis](http://parmakis-instruments.co.uk/about-theo) -- <http://chordgen.rattree.co.uk/tensiontool.php>
32
+ - some useful info on the page (« show more information... »)
33
+ - unique feature: offers presets for different instruments, including different tunings
34
+ - reference presets "are mostly based upon my own instruments, and the gauges I usually string them with"
35
+ - once, you find a preset you like, click and can edit
36
+ - for whole set, can change scale length (any float, in | mm), string material, winding material (can't set individually), whether to double all
37
+ - for each string, can change pitch, plain or wound, string material (steel, nylon, gut, Nylgut), gauge, single or double
38
+ - shows tensions for each course and the total
39
+ - unique feature: "equalize" button, defaults to tension on top string but can choose which one you want to equalize to
40
+ - based on the D'Addario data but also extrapolating to some other materials
41
+ - can show tension (lb), string gauge, and frequency (Hz) plots
42
+ - nice text format, e.g. `.026 w N @ 25" = 13.165 lb`
43
+ - can handle strings starting arbitrarily further up the fretboard (after the `@` in the tuning editor)
44
+ - purports to offer the source code, but the link currently (2022-04-15) doesn't work
45
+ - <https://rodrigocfd.github.io/string-tension-calc/>
46
+ - compare multiple string sets using string tensions and a tension plot (though not total tension)
47
+ - electric guitar focused, including a few 7- and 8-string sets
48
+ - after selecting a set, can adjust individual strings (gauge and plain/wound) and pitches (-5--+1 half steps)
49
+ - can also choose to tune down the whole set by up to 4 half steps, like the Curt Mangan app
50
+ - source: <https://github.com/rodrigocfd/string-tension-calc>
@@ -1,69 +1,72 @@
1
- [build-system]
2
- requires = ["flit_core >=3.2,<4"]
3
- build-backend = "flit_core.buildapi"
4
-
5
- [project]
6
- name = "stringcalc"
7
- authors = [{name = "zmoon", email = "zmoon92@gmail.com"}]
8
- readme = "README.md"
9
- license = {file = "LICENSE"}
10
- classifiers = ["License :: OSI Approved :: MIT License"]
11
- dynamic = ["version", "description"]
12
- requires-python = "~=3.8"
13
- dependencies = [
14
- "numpy >=1.21",
15
- "pandas",
16
- "pint",
17
- # "pyabc2 @ https://github.com/zmoon/PyABC2/archive/main.zip",
18
- "pyabc2",
19
- ]
20
-
21
- [project.urls]
22
- Home = "https://github.com/zmoon/stringcalc"
23
- Source = "https://github.com/zmoon/stringcalc"
24
-
25
- [project.optional-dependencies]
26
- test = [
27
- "mypy",
28
- "pandas-stubs",
29
- "pytest",
30
- ]
31
- dev = [
32
- "ipython",
33
- ]
34
- cli = [
35
- "rich",
36
- "typer",
37
- ]
38
-
39
- [project.scripts]
40
- stringcalc = "stringcalc.cli:app"
41
-
42
- [tool.flit.sdist]
43
- exclude = ["data/"]
44
-
45
-
46
- [tool.black]
47
- line-length = 100
48
-
49
- [tool.flake8] # pyproject-flake8
50
- max-line-length = 100
51
- ignore = [
52
- "E203", # whitespace before ':' - doesn't work well with black
53
- "E402", # module level import not at top of file
54
- "E501", # line too long - let black worry about that
55
- "W503", # line break before binary operator
56
- "E226", # missing whitespace around arithmetic operator - not always more readable imho
57
- ]
58
-
59
- [tool.isort]
60
- profile = "black"
61
- line_length = 100
62
-
63
- [tool.mypy]
64
- exclude = [
65
- "^venv/",
66
- "^data/",
67
- ]
68
- install_types = true
69
- ignore_missing_imports = true
1
+ [build-system]
2
+ requires = ["flit_core >=3.2,<4"]
3
+ build-backend = "flit_core.buildapi"
4
+
5
+ [project]
6
+ name = "stringcalc"
7
+ authors = [{name = "zmoon", email = "zmoon92@gmail.com"}]
8
+ readme = "README.md"
9
+ license = {file = "LICENSE"}
10
+ classifiers = ["License :: OSI Approved :: MIT License"]
11
+ dynamic = ["version", "description"]
12
+ requires-python = "~=3.9"
13
+ dependencies = [
14
+ "numpy >=1.21",
15
+ "pandas",
16
+ "pint >=0.22",
17
+ "pyabc2",
18
+ ]
19
+
20
+ [project.urls]
21
+ Home = "https://github.com/zmoon/stringcalc"
22
+ Source = "https://github.com/zmoon/stringcalc"
23
+
24
+ [project.optional-dependencies]
25
+ test = [
26
+ "mypy",
27
+ "pandas-stubs",
28
+ "pytest",
29
+ ]
30
+ dev = [
31
+ "ipython",
32
+ ]
33
+ cli = [
34
+ "rich",
35
+ "typer",
36
+ ]
37
+ doc = [
38
+ "matplotlib",
39
+ ]
40
+
41
+ [project.scripts]
42
+ stringcalc = "stringcalc.cli:app"
43
+
44
+ [tool.flit.sdist]
45
+ exclude = ["data/", ".github/", "panel/"]
46
+
47
+
48
+ [tool.black]
49
+ line-length = 100
50
+
51
+ [tool.flake8] # pyproject-flake8
52
+ max-line-length = 100
53
+ ignore = [
54
+ "E203", # whitespace before ':' - doesn't work well with black
55
+ "E402", # module level import not at top of file
56
+ "E501", # line too long - let black worry about that
57
+ "W503", # line break before binary operator
58
+ "E226", # missing whitespace around arithmetic operator - not always more readable imho
59
+ ]
60
+
61
+ [tool.isort]
62
+ profile = "black"
63
+ line_length = 100
64
+
65
+ [tool.mypy]
66
+ exclude = [
67
+ "^venv/",
68
+ "^data/",
69
+ "^panel/",
70
+ ]
71
+ install_types = true
72
+ ignore_missing_imports = true
@@ -1,5 +1,5 @@
1
- """
2
- Calculations for instrument strings
3
- """
4
-
5
- __version__ = "0.1.0.dev5"
1
+ """
2
+ Calculations for instrument strings
3
+ """
4
+
5
+ __version__ = "0.1.0.dev10"