mat3ra-code 2024.3.21.post0__py3-none-any.whl

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.
mat3ra/__init__.py ADDED
File without changes
@@ -0,0 +1,5 @@
1
+ import numpy as np
2
+
3
+
4
+ def get_length(vec: np.ndarray) -> np.float_:
5
+ return np.linalg.norm(vec)
@@ -0,0 +1,15 @@
1
+ # LICENSE
2
+
3
+ Copyright 2022 Exabyte Inc.
4
+
5
+ Licensed under the Apache License, Version 2.0 (the "License");
6
+ you may not use this file except in compliance with the License.
7
+ You may obtain a copy of the License at
8
+
9
+ http://www.apache.org/licenses/LICENSE-2.0
10
+
11
+ Unless required by applicable law or agreed to in writing, software
12
+ distributed under the License is distributed on an "AS IS" BASIS,
13
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ See the License for the specific language governing permissions and
15
+ limitations under the License.
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.1
2
+ Name: mat3ra-code
3
+ Version: 2024.3.21.post0
4
+ Summary: COre DEfinitions.
5
+ Author-email: "Exabyte Inc." <info@mat3ra.com>
6
+ License: # LICENSE
7
+
8
+ Copyright 2022 Exabyte Inc.
9
+
10
+ Licensed under the Apache License, Version 2.0 (the "License");
11
+ you may not use this file except in compliance with the License.
12
+ You may obtain a copy of the License at
13
+
14
+ http://www.apache.org/licenses/LICENSE-2.0
15
+
16
+ Unless required by applicable law or agreed to in writing, software
17
+ distributed under the License is distributed on an "AS IS" BASIS,
18
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ See the License for the specific language governing permissions and
20
+ limitations under the License.
21
+
22
+ Classifier: Programming Language :: Python
23
+ Classifier: Programming Language :: Python :: 3
24
+ Classifier: Development Status :: 3 - Alpha
25
+ Classifier: Topic :: Software Development
26
+ Requires-Python: >=3.8
27
+ Description-Content-Type: text/markdown
28
+ License-File: LICENSE.md
29
+ Requires-Dist: numpy
30
+ Provides-Extra: all
31
+ Requires-Dist: mat3ra-code[tests] ; extra == 'all'
32
+ Provides-Extra: tests
33
+ Requires-Dist: coverage[toml] >=5.3 ; extra == 'tests'
34
+ Requires-Dist: pre-commit ; extra == 'tests'
35
+ Requires-Dist: black ; extra == 'tests'
36
+ Requires-Dist: ruff ; extra == 'tests'
37
+ Requires-Dist: isort ; extra == 'tests'
38
+ Requires-Dist: mypy ; extra == 'tests'
39
+ Requires-Dist: pip-tools ; extra == 'tests'
40
+
41
+ [![npm version](https://badge.fury.io/js/%40exabyte-io%2Fcode.js.svg)](https://badge.fury.io/js/%40exabyte-io%2Fcode.js)
42
+ [![License: Apache](https://img.shields.io/badge/License-Apache-blue.svg)](https://www.apache.org/licenses/LICENSE-2.0)
43
+
44
+ # @exabyte-io/code.js
45
+
46
+ @exabyte-io/code.js houses COre DEfinitions (CODE) for use across the Mat3ra platform.
47
+ Its usage can be found in other open-source packages used in the platform.
48
+
49
+
50
+ ### Installation
51
+
52
+ For usage within a javascript project:
53
+
54
+ ```bash
55
+ npm install @exabyte-io/code.js
56
+ ```
57
+
58
+ For development:
59
+
60
+ ```bash
61
+ git clone https://github.com/Exabyte-io/code.js.git
62
+ ```
63
+
64
+
65
+ ### Contribution
66
+
67
+ This repository is an [open-source](LICENSE.md) work-in-progress and we welcome contributions.
68
+
69
+ We regularly deploy the latest code containing all accepted contributions online as part of the
70
+ [Mat3ra.com](https://mat3ra.com) platform, so contributors will see their code in action there.
71
+
72
+ See [ESSE](https://github.com/Exabyte-io/esse) for additional context regarding the data schemas used here.
73
+
74
+ Useful commands for development:
75
+
76
+ ```bash
77
+ # run linter without persistence
78
+ npm run lint
79
+
80
+ # run linter and save edits
81
+ npm run lint:fix
82
+
83
+ # compile the library
84
+ npm run transpile
85
+
86
+ # run tests
87
+ npm run test
88
+ ```
89
+
@@ -0,0 +1,7 @@
1
+ mat3ra/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mat3ra/code/__init__.py,sha256=SPh2yzsoGZSBVEnaT-X-UWgkWIJOLcJfG7wizllg4aw,98
3
+ mat3ra_code-2024.3.21.post0.dist-info/LICENSE.md,sha256=-bt82InMY0Nn5Sz8hcgrnx9R8FEw6ZajMoZuauJLYWc,563
4
+ mat3ra_code-2024.3.21.post0.dist-info/METADATA,sha256=CEmaISqO_Jx5F8BkD6o-NoXudvH-4wjI-DvdgSUIkNQ,2752
5
+ mat3ra_code-2024.3.21.post0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
6
+ mat3ra_code-2024.3.21.post0.dist-info/top_level.txt,sha256=GizAtvIqqIcCWShlThl_mgig_bZs_LFyqVah6wrGHIs,7
7
+ mat3ra_code-2024.3.21.post0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: bdist_wheel (0.43.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ mat3ra