libgunshotmatch 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.
Potentially problematic release.
This version of libgunshotmatch might be problematic. Click here for more details.
- libgunshotmatch-0.1.0/LICENSE +19 -0
- libgunshotmatch-0.1.0/PKG-INFO +163 -0
- libgunshotmatch-0.1.0/README.rst +120 -0
- libgunshotmatch-0.1.0/libgunshotmatch/__init__.py +33 -0
- libgunshotmatch-0.1.0/libgunshotmatch/consolidate/__init__.py +644 -0
- libgunshotmatch-0.1.0/libgunshotmatch/consolidate/_fields.py +82 -0
- libgunshotmatch-0.1.0/libgunshotmatch/consolidate/_spectra.py +74 -0
- libgunshotmatch-0.1.0/libgunshotmatch/datafile.py +476 -0
- libgunshotmatch-0.1.0/libgunshotmatch/gzip_util.py +69 -0
- libgunshotmatch-0.1.0/libgunshotmatch/method/__init__.py +272 -0
- libgunshotmatch-0.1.0/libgunshotmatch/method/_fields.py +179 -0
- libgunshotmatch-0.1.0/libgunshotmatch/peak.py +506 -0
- libgunshotmatch-0.1.0/libgunshotmatch/project.py +230 -0
- libgunshotmatch-0.1.0/libgunshotmatch/py.typed +0 -0
- libgunshotmatch-0.1.0/libgunshotmatch/search.py +100 -0
- libgunshotmatch-0.1.0/libgunshotmatch/utils.py +108 -0
- libgunshotmatch-0.1.0/pyproject.toml +198 -0
- libgunshotmatch-0.1.0/requirements.txt +13 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
Copyright (c) 2023 Dominic Davis-Foster
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
5
|
+
in the Software without restriction, including without limitation the rights
|
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
8
|
+
furnished to do so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
14
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
15
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
16
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
17
|
+
DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
18
|
+
OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
19
|
+
OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: libgunshotmatch
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Base library for GunShotMatch.
|
|
5
|
+
Author-email: Dominic Davis-Foster <dominic@davis-foster.co.uk>
|
|
6
|
+
License: MIT
|
|
7
|
+
Home-page: https://github.com/GunShotMatch/libgunshotmatch
|
|
8
|
+
Project-URL: Issue Tracker, https://github.com/GunShotMatch/libgunshotmatch/issues
|
|
9
|
+
Project-URL: Source Code, https://github.com/GunShotMatch/libgunshotmatch
|
|
10
|
+
Project-URL: Documentation, https://libgunshotmatch.readthedocs.io/en/latest
|
|
11
|
+
Platform: Windows
|
|
12
|
+
Platform: macOS
|
|
13
|
+
Platform: Linux
|
|
14
|
+
Classifier: Development Status :: 3 - Alpha
|
|
15
|
+
Classifier: Intended Audience :: Developers
|
|
16
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
17
|
+
Classifier: Operating System :: OS Independent
|
|
18
|
+
Classifier: Programming Language :: Python
|
|
19
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
23
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
24
|
+
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
25
|
+
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
26
|
+
Classifier: Typing :: Typed
|
|
27
|
+
Requires-Python: >=3.8
|
|
28
|
+
Requires-Dist: attrs>=23.1.0
|
|
29
|
+
Requires-Dist: chemistry-tools>=v1.0.0b2
|
|
30
|
+
Requires-Dist: domdf-python-tools>=3.6.1
|
|
31
|
+
Requires-Dist: enum-tools>=0.10.0
|
|
32
|
+
Requires-Dist: mathematical>=0.5.1
|
|
33
|
+
Requires-Dist: numpy>=1.22
|
|
34
|
+
Requires-Dist: pandas>=2.0.3
|
|
35
|
+
Requires-Dist: pymassspec>=2.3.0
|
|
36
|
+
Requires-Dist: pyms-nist-search>=0.6.1
|
|
37
|
+
Requires-Dist: scipy>=1.9.0
|
|
38
|
+
Requires-Dist: sdjson>=0.4.0
|
|
39
|
+
Requires-Dist: tomli>=1.2.3; python_version < "3.11"
|
|
40
|
+
Requires-Dist: tomli-w>=1.0.0
|
|
41
|
+
Description-Content-Type: text/x-rst
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
================
|
|
45
|
+
libgunshotmatch
|
|
46
|
+
================
|
|
47
|
+
|
|
48
|
+
.. start short_desc
|
|
49
|
+
|
|
50
|
+
**Base library for GunShotMatch.**
|
|
51
|
+
|
|
52
|
+
.. end short_desc
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
.. start shields
|
|
56
|
+
|
|
57
|
+
.. list-table::
|
|
58
|
+
:stub-columns: 1
|
|
59
|
+
:widths: 10 90
|
|
60
|
+
|
|
61
|
+
* - Docs
|
|
62
|
+
- |docs| |docs_check|
|
|
63
|
+
* - Tests
|
|
64
|
+
- |actions_linux| |actions_windows| |actions_macos|
|
|
65
|
+
* - PyPI
|
|
66
|
+
- |pypi-version| |supported-versions| |supported-implementations| |wheel|
|
|
67
|
+
* - Activity
|
|
68
|
+
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
|
|
69
|
+
* - QA
|
|
70
|
+
- |codefactor| |actions_flake8| |actions_mypy|
|
|
71
|
+
* - Other
|
|
72
|
+
- |license| |language| |requires|
|
|
73
|
+
|
|
74
|
+
.. |docs| image:: https://img.shields.io/readthedocs/libgunshotmatch/latest?logo=read-the-docs
|
|
75
|
+
:target: https://libgunshotmatch.readthedocs.io/en/latest
|
|
76
|
+
:alt: Documentation Build Status
|
|
77
|
+
|
|
78
|
+
.. |docs_check| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Docs%20Check/badge.svg
|
|
79
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Docs+Check%22
|
|
80
|
+
:alt: Docs Check Status
|
|
81
|
+
|
|
82
|
+
.. |actions_linux| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Linux/badge.svg
|
|
83
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Linux%22
|
|
84
|
+
:alt: Linux Test Status
|
|
85
|
+
|
|
86
|
+
.. |actions_windows| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Windows/badge.svg
|
|
87
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Windows%22
|
|
88
|
+
:alt: Windows Test Status
|
|
89
|
+
|
|
90
|
+
.. |actions_macos| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/macOS/badge.svg
|
|
91
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22macOS%22
|
|
92
|
+
:alt: macOS Test Status
|
|
93
|
+
|
|
94
|
+
.. |actions_flake8| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Flake8/badge.svg
|
|
95
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Flake8%22
|
|
96
|
+
:alt: Flake8 Status
|
|
97
|
+
|
|
98
|
+
.. |actions_mypy| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/mypy/badge.svg
|
|
99
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22mypy%22
|
|
100
|
+
:alt: mypy status
|
|
101
|
+
|
|
102
|
+
.. |requires| image:: https://dependency-dash.repo-helper.uk/github/GunShotMatch/libgunshotmatch/badge.svg
|
|
103
|
+
:target: https://dependency-dash.repo-helper.uk/github/GunShotMatch/libgunshotmatch/
|
|
104
|
+
:alt: Requirements Status
|
|
105
|
+
|
|
106
|
+
.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/GunShotMatch/libgunshotmatch?logo=codefactor
|
|
107
|
+
:target: https://www.codefactor.io/repository/github/GunShotMatch/libgunshotmatch
|
|
108
|
+
:alt: CodeFactor Grade
|
|
109
|
+
|
|
110
|
+
.. |pypi-version| image:: https://img.shields.io/pypi/v/libgunshotmatch
|
|
111
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
112
|
+
:alt: PyPI - Package Version
|
|
113
|
+
|
|
114
|
+
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/libgunshotmatch?logo=python&logoColor=white
|
|
115
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
116
|
+
:alt: PyPI - Supported Python Versions
|
|
117
|
+
|
|
118
|
+
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/libgunshotmatch
|
|
119
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
120
|
+
:alt: PyPI - Supported Implementations
|
|
121
|
+
|
|
122
|
+
.. |wheel| image:: https://img.shields.io/pypi/wheel/libgunshotmatch
|
|
123
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
124
|
+
:alt: PyPI - Wheel
|
|
125
|
+
|
|
126
|
+
.. |license| image:: https://img.shields.io/github/license/GunShotMatch/libgunshotmatch
|
|
127
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/blob/master/LICENSE
|
|
128
|
+
:alt: License
|
|
129
|
+
|
|
130
|
+
.. |language| image:: https://img.shields.io/github/languages/top/GunShotMatch/libgunshotmatch
|
|
131
|
+
:alt: GitHub top language
|
|
132
|
+
|
|
133
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/GunShotMatch/libgunshotmatch/v0.1.0
|
|
134
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/pulse
|
|
135
|
+
:alt: GitHub commits since tagged version
|
|
136
|
+
|
|
137
|
+
.. |commits-latest| image:: https://img.shields.io/github/last-commit/GunShotMatch/libgunshotmatch
|
|
138
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/commit/master
|
|
139
|
+
:alt: GitHub last commit
|
|
140
|
+
|
|
141
|
+
.. |maintained| image:: https://img.shields.io/maintenance/yes/2023
|
|
142
|
+
:alt: Maintenance
|
|
143
|
+
|
|
144
|
+
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/libgunshotmatch
|
|
145
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
146
|
+
:alt: PyPI - Downloads
|
|
147
|
+
|
|
148
|
+
.. end shields
|
|
149
|
+
|
|
150
|
+
Installation
|
|
151
|
+
--------------
|
|
152
|
+
|
|
153
|
+
.. start installation
|
|
154
|
+
|
|
155
|
+
``libgunshotmatch`` can be installed from PyPI.
|
|
156
|
+
|
|
157
|
+
To install with ``pip``:
|
|
158
|
+
|
|
159
|
+
.. code-block:: bash
|
|
160
|
+
|
|
161
|
+
$ python -m pip install libgunshotmatch
|
|
162
|
+
|
|
163
|
+
.. end installation
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
================
|
|
2
|
+
libgunshotmatch
|
|
3
|
+
================
|
|
4
|
+
|
|
5
|
+
.. start short_desc
|
|
6
|
+
|
|
7
|
+
**Base library for GunShotMatch.**
|
|
8
|
+
|
|
9
|
+
.. end short_desc
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
.. start shields
|
|
13
|
+
|
|
14
|
+
.. list-table::
|
|
15
|
+
:stub-columns: 1
|
|
16
|
+
:widths: 10 90
|
|
17
|
+
|
|
18
|
+
* - Docs
|
|
19
|
+
- |docs| |docs_check|
|
|
20
|
+
* - Tests
|
|
21
|
+
- |actions_linux| |actions_windows| |actions_macos|
|
|
22
|
+
* - PyPI
|
|
23
|
+
- |pypi-version| |supported-versions| |supported-implementations| |wheel|
|
|
24
|
+
* - Activity
|
|
25
|
+
- |commits-latest| |commits-since| |maintained| |pypi-downloads|
|
|
26
|
+
* - QA
|
|
27
|
+
- |codefactor| |actions_flake8| |actions_mypy|
|
|
28
|
+
* - Other
|
|
29
|
+
- |license| |language| |requires|
|
|
30
|
+
|
|
31
|
+
.. |docs| image:: https://img.shields.io/readthedocs/libgunshotmatch/latest?logo=read-the-docs
|
|
32
|
+
:target: https://libgunshotmatch.readthedocs.io/en/latest
|
|
33
|
+
:alt: Documentation Build Status
|
|
34
|
+
|
|
35
|
+
.. |docs_check| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Docs%20Check/badge.svg
|
|
36
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Docs+Check%22
|
|
37
|
+
:alt: Docs Check Status
|
|
38
|
+
|
|
39
|
+
.. |actions_linux| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Linux/badge.svg
|
|
40
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Linux%22
|
|
41
|
+
:alt: Linux Test Status
|
|
42
|
+
|
|
43
|
+
.. |actions_windows| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Windows/badge.svg
|
|
44
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Windows%22
|
|
45
|
+
:alt: Windows Test Status
|
|
46
|
+
|
|
47
|
+
.. |actions_macos| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/macOS/badge.svg
|
|
48
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22macOS%22
|
|
49
|
+
:alt: macOS Test Status
|
|
50
|
+
|
|
51
|
+
.. |actions_flake8| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/Flake8/badge.svg
|
|
52
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22Flake8%22
|
|
53
|
+
:alt: Flake8 Status
|
|
54
|
+
|
|
55
|
+
.. |actions_mypy| image:: https://github.com/GunShotMatch/libgunshotmatch/workflows/mypy/badge.svg
|
|
56
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/actions?query=workflow%3A%22mypy%22
|
|
57
|
+
:alt: mypy status
|
|
58
|
+
|
|
59
|
+
.. |requires| image:: https://dependency-dash.repo-helper.uk/github/GunShotMatch/libgunshotmatch/badge.svg
|
|
60
|
+
:target: https://dependency-dash.repo-helper.uk/github/GunShotMatch/libgunshotmatch/
|
|
61
|
+
:alt: Requirements Status
|
|
62
|
+
|
|
63
|
+
.. |codefactor| image:: https://img.shields.io/codefactor/grade/github/GunShotMatch/libgunshotmatch?logo=codefactor
|
|
64
|
+
:target: https://www.codefactor.io/repository/github/GunShotMatch/libgunshotmatch
|
|
65
|
+
:alt: CodeFactor Grade
|
|
66
|
+
|
|
67
|
+
.. |pypi-version| image:: https://img.shields.io/pypi/v/libgunshotmatch
|
|
68
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
69
|
+
:alt: PyPI - Package Version
|
|
70
|
+
|
|
71
|
+
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/libgunshotmatch?logo=python&logoColor=white
|
|
72
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
73
|
+
:alt: PyPI - Supported Python Versions
|
|
74
|
+
|
|
75
|
+
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/libgunshotmatch
|
|
76
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
77
|
+
:alt: PyPI - Supported Implementations
|
|
78
|
+
|
|
79
|
+
.. |wheel| image:: https://img.shields.io/pypi/wheel/libgunshotmatch
|
|
80
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
81
|
+
:alt: PyPI - Wheel
|
|
82
|
+
|
|
83
|
+
.. |license| image:: https://img.shields.io/github/license/GunShotMatch/libgunshotmatch
|
|
84
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/blob/master/LICENSE
|
|
85
|
+
:alt: License
|
|
86
|
+
|
|
87
|
+
.. |language| image:: https://img.shields.io/github/languages/top/GunShotMatch/libgunshotmatch
|
|
88
|
+
:alt: GitHub top language
|
|
89
|
+
|
|
90
|
+
.. |commits-since| image:: https://img.shields.io/github/commits-since/GunShotMatch/libgunshotmatch/v0.1.0
|
|
91
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/pulse
|
|
92
|
+
:alt: GitHub commits since tagged version
|
|
93
|
+
|
|
94
|
+
.. |commits-latest| image:: https://img.shields.io/github/last-commit/GunShotMatch/libgunshotmatch
|
|
95
|
+
:target: https://github.com/GunShotMatch/libgunshotmatch/commit/master
|
|
96
|
+
:alt: GitHub last commit
|
|
97
|
+
|
|
98
|
+
.. |maintained| image:: https://img.shields.io/maintenance/yes/2023
|
|
99
|
+
:alt: Maintenance
|
|
100
|
+
|
|
101
|
+
.. |pypi-downloads| image:: https://img.shields.io/pypi/dm/libgunshotmatch
|
|
102
|
+
:target: https://pypi.org/project/libgunshotmatch/
|
|
103
|
+
:alt: PyPI - Downloads
|
|
104
|
+
|
|
105
|
+
.. end shields
|
|
106
|
+
|
|
107
|
+
Installation
|
|
108
|
+
--------------
|
|
109
|
+
|
|
110
|
+
.. start installation
|
|
111
|
+
|
|
112
|
+
``libgunshotmatch`` can be installed from PyPI.
|
|
113
|
+
|
|
114
|
+
To install with ``pip``:
|
|
115
|
+
|
|
116
|
+
.. code-block:: bash
|
|
117
|
+
|
|
118
|
+
$ python -m pip install libgunshotmatch
|
|
119
|
+
|
|
120
|
+
.. end installation
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
#
|
|
3
|
+
# __init__.py
|
|
4
|
+
"""
|
|
5
|
+
Base library for GunShotMatch.
|
|
6
|
+
"""
|
|
7
|
+
#
|
|
8
|
+
# Copyright © 2020-2023 Dominic Davis-Foster <dominic@davis-foster.co.uk>
|
|
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,
|
|
21
|
+
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
22
|
+
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
23
|
+
# IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
24
|
+
# DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
25
|
+
# OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE
|
|
26
|
+
# OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
|
+
#
|
|
28
|
+
|
|
29
|
+
__author__: str = "Dominic Davis-Foster"
|
|
30
|
+
__copyright__: str = "2020-2023 Dominic Davis-Foster"
|
|
31
|
+
__license__: str = "MIT License"
|
|
32
|
+
__version__: str = "0.1.0"
|
|
33
|
+
__email__: str = "dominic@davis-foster.co.uk"
|