bw-processing 0.8.2__tar.gz → 0.8.4__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.
- bw-processing-0.8.4/LICENSE +11 -0
- bw-processing-0.8.4/MANIFEST.in +3 -0
- {bw_processing-0.8.2/bw_processing.egg-info → bw-processing-0.8.4}/PKG-INFO +46 -19
- {bw_processing-0.8.2 → bw-processing-0.8.4}/README.md +26 -2
- bw-processing-0.8.4/bw_processing/VERSION +1 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/__init__.py +4 -1
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/utils.py +18 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4/bw_processing.egg-info}/PKG-INFO +47 -20
- bw-processing-0.8.4/bw_processing.egg-info/SOURCES.txt +34 -0
- bw-processing-0.8.4/bw_processing.egg-info/not-zip-safe +1 -0
- bw-processing-0.8.4/bw_processing.egg-info/requires.txt +17 -0
- bw-processing-0.8.4/bw_processing.egg-info/top_level.txt +5 -0
- bw-processing-0.8.4/docs/conf.py +48 -0
- bw-processing-0.8.4/pyproject.toml +3 -0
- bw-processing-0.8.4/setup.cfg +86 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/tests/test_utils.py +5 -0
- bw_processing-0.8.2/.gitignore +0 -104
- bw_processing-0.8.2/.pre-commit-config.yaml +0 -17
- bw_processing-0.8.2/CHANGELOG.md +0 -62
- bw_processing-0.8.2/CODE_OF_CONDUCT.md +0 -129
- bw_processing-0.8.2/LICENSE +0 -29
- bw_processing-0.8.2/MANIFEST.in +0 -3
- bw_processing-0.8.2/azure-pipelines.yml +0 -286
- bw_processing-0.8.2/bw_processing/version.py +0 -1
- bw_processing-0.8.2/bw_processing.egg-info/SOURCES.txt +0 -100
- bw_processing-0.8.2/bw_processing.egg-info/requires.txt +0 -3
- bw_processing-0.8.2/bw_processing.egg-info/top_level.txt +0 -1
- bw_processing-0.8.2/ci/conda_upload.sh +0 -11
- bw_processing-0.8.2/ci/meta.yaml +0 -33
- bw_processing-0.8.2/conftest.py +0 -21
- bw_processing-0.8.2/dev/Presamples generator example.ipynb +0 -605
- bw_processing-0.8.2/dev/generator_metadata/datapackage.json +0 -39
- bw_processing-0.8.2/dev/generator_metadata/infinite-data-indices.npy +0 -0
- bw_processing-0.8.2/dev/generator_metadata/infinite-data-meta.csv +0 -4
- bw_processing-0.8.2/docs/Makefile +0 -20
- bw_processing-0.8.2/docs/conf.py +0 -57
- bw_processing-0.8.2/docs/index.rst +0 -19
- bw_processing-0.8.2/docs/loading.rst +0 -4
- bw_processing-0.8.2/docs/make.bat +0 -35
- bw_processing-0.8.2/docs/saving.rst +0 -11
- bw_processing-0.8.2/docs/utilities.rst +0 -35
- bw_processing-0.8.2/pytest.ini +0 -4
- bw_processing-0.8.2/requirements.txt +0 -3
- bw_processing-0.8.2/setup.cfg +0 -4
- bw_processing-0.8.2/setup.py +0 -39
- bw_processing-0.8.2/tests/array_creation.py +0 -14
- bw_processing-0.8.2/tests/calculation_package.py +0 -148
- bw_processing-0.8.2/tests/datapackage.py +0 -498
- bw_processing-0.8.2/tests/filesystem.py +0 -35
- bw_processing-0.8.2/tests/filtered_datapackage.py +0 -160
- bw_processing-0.8.2/tests/fixtures/array.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/indexing/array-csv-both.csv +0 -7
- bw_processing-0.8.2/tests/fixtures/indexing/array-csv-rows.csv +0 -7
- bw_processing-0.8.2/tests/fixtures/indexing/array.data.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/indexing/array.flip.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/indexing/array.indices.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/indexing/csv-multiple.csv +0 -7
- bw_processing-0.8.2/tests/fixtures/indexing/datapackage.json +0 -176
- bw_processing-0.8.2/tests/fixtures/indexing/vector-csv-both.csv +0 -7
- bw_processing-0.8.2/tests/fixtures/indexing/vector-csv-cols.csv +0 -7
- bw_processing-0.8.2/tests/fixtures/indexing/vector-csv-rows.csv +0 -7
- bw_processing-0.8.2/tests/fixtures/indexing/vector.data.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/indexing/vector.flip.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/indexing/vector.indices.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/lorem.txt +0 -1
- bw_processing-0.8.2/tests/fixtures/merging/merging_first.zip +0 -0
- bw_processing-0.8.2/tests/fixtures/merging/merging_same_1.zip +0 -0
- bw_processing-0.8.2/tests/fixtures/merging/merging_same_2.zip +0 -0
- bw_processing-0.8.2/tests/fixtures/merging/merging_second.zip +0 -0
- bw_processing-0.8.2/tests/fixtures/test-fixture.zip +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/datapackage.json +0 -212
- bw_processing-0.8.2/tests/fixtures/tfd/sa-array-interface.indices.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-array-json-metadata.json +0 -7
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-array-json-parameters.json +0 -4
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-array.data.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-array.flip.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-array.indices.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector-csv-metadata.csv +0 -4
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector-from-dict.data.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector-from-dict.distributions.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector-from-dict.flip.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector-from-dict.indices.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector.data.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector.flip.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-data-vector.indices.npy +0 -0
- bw_processing-0.8.2/tests/fixtures/tfd/sa-vector-interface.indices.npy +0 -0
- bw_processing-0.8.2/tests/indexing.py +0 -382
- bw_processing-0.8.2/tests/integration.py +0 -453
- bw_processing-0.8.2/tests/interfaces.py +0 -113
- bw_processing-0.8.2/tests/loading.py +0 -64
- bw_processing-0.8.2/tests/merging.py +0 -385
- bw_processing-0.8.2/tests/proxies.py +0 -27
- bw_processing-0.8.2/tests/unique_fields.py +0 -139
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/array_creation.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/constants.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/datapackage.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/errors.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/examples/__init__.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/examples/interfaces.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/examples/simple.zip +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/filesystem.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/indexing.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/io_helpers.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/merging.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/proxies.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing/unique_fields.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/bw_processing.egg-info/dependency_links.txt +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/dev/calculation_package.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/dev/loading.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/dev/processed_package.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/dev/resources.py +0 -0
- {bw_processing-0.8.2 → bw-processing-0.8.4}/dev/speed_tests.py +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
Copyright 2023 Chris Mutel
|
|
2
|
+
|
|
3
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
4
|
+
|
|
5
|
+
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
6
|
+
|
|
7
|
+
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
|
8
|
+
|
|
9
|
+
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
|
10
|
+
|
|
11
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
@@ -1,34 +1,54 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: bw-processing
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.4
|
|
4
4
|
Summary: Tools to create structured arrays in a common format
|
|
5
5
|
Home-page: https://github.com/brightway-lca/bw_processing
|
|
6
6
|
Author: Chris Mutel
|
|
7
|
-
Author-email: cmutel@gmail.com
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
Author-email: <cmutel@gmail.com>
|
|
8
|
+
Maintainer: Chris Mutel
|
|
9
|
+
Maintainer-email: <cmutel@gmail.com>
|
|
10
|
+
License: BSD-3-Clause
|
|
11
|
+
Project-URL: source, https://github.com/brightway-lca/bw_processing
|
|
12
|
+
Project-URL: homepage, https://github.com/brightway-lca/bw_processing
|
|
13
|
+
Project-URL: tracker, https://github.com/brightway-lca/bw_processing/issues
|
|
14
|
+
Keywords: "brightway","development"
|
|
15
|
+
Platform: any
|
|
16
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
17
|
Classifier: Programming Language :: Python
|
|
17
18
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.
|
|
21
|
-
Classifier:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown; charset=UTF-8
|
|
25
|
+
Provides-Extra: testing
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Provides-Extra: docs
|
|
25
28
|
License-File: LICENSE
|
|
26
29
|
|
|
27
|
-
#
|
|
30
|
+
# bw-processing
|
|
28
31
|
|
|
29
32
|
Library for storing numeric data for use in matrix-based calculations. Designed for use with the [Brightway life cycle assessment framework](https://brightway.dev/).
|
|
30
33
|
|
|
31
|
-
[][pypi status]
|
|
35
|
+
[][pypi status]
|
|
36
|
+
[][pypi status]
|
|
37
|
+
[][license]
|
|
38
|
+
|
|
39
|
+
[][read the docs]
|
|
40
|
+
[][tests]
|
|
41
|
+
[][codecov]
|
|
42
|
+
|
|
43
|
+
[][pre-commit]
|
|
44
|
+
[][black]
|
|
45
|
+
|
|
46
|
+
[pypi status]: https://pypi.org/project/bw-processing/
|
|
47
|
+
[read the docs]: https://bw-processing.readthedocs.io/
|
|
48
|
+
[tests]: https://github.com/brightway-lca/bw-processing/actions?workflow=Tests
|
|
49
|
+
[codecov]: https://app.codecov.io/gh/brightway-lca/bw-processing
|
|
50
|
+
[pre-commit]: https://github.com/pre-commit/pre-commit
|
|
51
|
+
[black]: https://github.com/psf/black
|
|
32
52
|
|
|
33
53
|
## Table of Contents
|
|
34
54
|
|
|
@@ -229,3 +249,10 @@ Please note we have a [code of conduct](https://github.com/brightway-lca/bw_proc
|
|
|
229
249
|
## License
|
|
230
250
|
|
|
231
251
|
[BSD-3-Clause](https://github.com/brightway-lca/bw_processing/blob/master/LICENSE). Copyright 2020 Chris Mutel.
|
|
252
|
+
|
|
253
|
+
<!-- github-only -->
|
|
254
|
+
|
|
255
|
+
[command-line reference]: https://bw-processing.readthedocs.io/en/latest/usage.html
|
|
256
|
+
[License]: https://github.com/brightway-lca/bw-processing/blob/main/LICENSE
|
|
257
|
+
[Contributor Guide]: https://github.com/brightway-lca/bw-processing/blob/main/CONTRIBUTING.md
|
|
258
|
+
[Issue Tracker]: https://github.com/brightway-lca/bw-processing/issues
|
|
@@ -1,8 +1,25 @@
|
|
|
1
|
-
#
|
|
1
|
+
# bw-processing
|
|
2
2
|
|
|
3
3
|
Library for storing numeric data for use in matrix-based calculations. Designed for use with the [Brightway life cycle assessment framework](https://brightway.dev/).
|
|
4
4
|
|
|
5
|
-
[][pypi status]
|
|
6
|
+
[][pypi status]
|
|
7
|
+
[][pypi status]
|
|
8
|
+
[][license]
|
|
9
|
+
|
|
10
|
+
[][read the docs]
|
|
11
|
+
[][tests]
|
|
12
|
+
[][codecov]
|
|
13
|
+
|
|
14
|
+
[][pre-commit]
|
|
15
|
+
[][black]
|
|
16
|
+
|
|
17
|
+
[pypi status]: https://pypi.org/project/bw-processing/
|
|
18
|
+
[read the docs]: https://bw-processing.readthedocs.io/
|
|
19
|
+
[tests]: https://github.com/brightway-lca/bw-processing/actions?workflow=Tests
|
|
20
|
+
[codecov]: https://app.codecov.io/gh/brightway-lca/bw-processing
|
|
21
|
+
[pre-commit]: https://github.com/pre-commit/pre-commit
|
|
22
|
+
[black]: https://github.com/psf/black
|
|
6
23
|
|
|
7
24
|
## Table of Contents
|
|
8
25
|
|
|
@@ -203,3 +220,10 @@ Please note we have a [code of conduct](https://github.com/brightway-lca/bw_proc
|
|
|
203
220
|
## License
|
|
204
221
|
|
|
205
222
|
[BSD-3-Clause](https://github.com/brightway-lca/bw_processing/blob/master/LICENSE). Copyright 2020 Chris Mutel.
|
|
223
|
+
|
|
224
|
+
<!-- github-only -->
|
|
225
|
+
|
|
226
|
+
[command-line reference]: https://bw-processing.readthedocs.io/en/latest/usage.html
|
|
227
|
+
[License]: https://github.com/brightway-lca/bw-processing/blob/main/LICENSE
|
|
228
|
+
[Contributor Guide]: https://github.com/brightway-lca/bw-processing/blob/main/CONTRIBUTING.md
|
|
229
|
+
[Issue Tracker]: https://github.com/brightway-lca/bw-processing/issues
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.8.4
|
|
@@ -25,6 +25,7 @@ __all__ = (
|
|
|
25
25
|
"UndefinedInterface",
|
|
26
26
|
)
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
from .array_creation import create_array, create_structured_array
|
|
29
30
|
from .constants import DEFAULT_LICENSES, INDICES_DTYPE, UNCERTAINTY_DTYPE
|
|
30
31
|
from .datapackage import (
|
|
@@ -42,4 +43,6 @@ from .io_helpers import generic_directory_filesystem, generic_zipfile_filesystem
|
|
|
42
43
|
from .merging import merge_datapackages_with_mask
|
|
43
44
|
from .proxies import UndefinedInterface
|
|
44
45
|
from .unique_fields import as_unique_attributes, as_unique_attributes_dataframe
|
|
45
|
-
|
|
46
|
+
|
|
47
|
+
from .utils import get_version_tuple
|
|
48
|
+
__version__ = get_version_tuple()
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
from io import BytesIO
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
from typing import Any, Union
|
|
4
|
+
import importlib.metadata
|
|
4
5
|
|
|
5
6
|
import numpy as np
|
|
6
7
|
from numpy.lib.recfunctions import repack_fields
|
|
@@ -10,6 +11,23 @@ from .constants import INDICES_DTYPE, NAME_RE, UNCERTAINTY_DTYPE
|
|
|
10
11
|
from .errors import InvalidName
|
|
11
12
|
|
|
12
13
|
|
|
14
|
+
def get_version_tuple() -> tuple:
|
|
15
|
+
"""Returns version as (major, minor, micro)."""
|
|
16
|
+
|
|
17
|
+
def as_integer(version_str: str) -> Union[int, str]:
|
|
18
|
+
try:
|
|
19
|
+
return int(version_str)
|
|
20
|
+
except ValueError:
|
|
21
|
+
return version_str
|
|
22
|
+
|
|
23
|
+
return tuple(
|
|
24
|
+
as_integer(v)
|
|
25
|
+
for v in importlib.metadata.version("bw-processing")
|
|
26
|
+
.strip()
|
|
27
|
+
.split(".")
|
|
28
|
+
)
|
|
29
|
+
|
|
30
|
+
|
|
13
31
|
def load_bytes(obj: Any) -> Any:
|
|
14
32
|
if isinstance(obj, BytesIO):
|
|
15
33
|
try:
|
|
@@ -1,34 +1,54 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
|
-
Name:
|
|
3
|
-
Version: 0.8.
|
|
2
|
+
Name: bw-processing
|
|
3
|
+
Version: 0.8.4
|
|
4
4
|
Summary: Tools to create structured arrays in a common format
|
|
5
5
|
Home-page: https://github.com/brightway-lca/bw_processing
|
|
6
6
|
Author: Chris Mutel
|
|
7
|
-
Author-email: cmutel@gmail.com
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
7
|
+
Author-email: <cmutel@gmail.com>
|
|
8
|
+
Maintainer: Chris Mutel
|
|
9
|
+
Maintainer-email: <cmutel@gmail.com>
|
|
10
|
+
License: BSD-3-Clause
|
|
11
|
+
Project-URL: source, https://github.com/brightway-lca/bw_processing
|
|
12
|
+
Project-URL: homepage, https://github.com/brightway-lca/bw_processing
|
|
13
|
+
Project-URL: tracker, https://github.com/brightway-lca/bw_processing/issues
|
|
14
|
+
Keywords: "brightway","development"
|
|
15
|
+
Platform: any
|
|
16
|
+
Classifier: Development Status :: 4 - Beta
|
|
16
17
|
Classifier: Programming Language :: Python
|
|
17
18
|
Classifier: Programming Language :: Python :: 3
|
|
18
|
-
Classifier: Programming Language :: Python :: 3.
|
|
19
|
-
Classifier: Programming Language :: Python :: 3.
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.
|
|
21
|
-
Classifier:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
20
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
21
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
22
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
23
|
+
Requires-Python: >=3.8
|
|
24
|
+
Description-Content-Type: text/markdown; charset=UTF-8
|
|
25
|
+
Provides-Extra: testing
|
|
26
|
+
Provides-Extra: dev
|
|
27
|
+
Provides-Extra: docs
|
|
25
28
|
License-File: LICENSE
|
|
26
29
|
|
|
27
|
-
#
|
|
30
|
+
# bw-processing
|
|
28
31
|
|
|
29
32
|
Library for storing numeric data for use in matrix-based calculations. Designed for use with the [Brightway life cycle assessment framework](https://brightway.dev/).
|
|
30
33
|
|
|
31
|
-
[][pypi status]
|
|
35
|
+
[][pypi status]
|
|
36
|
+
[][pypi status]
|
|
37
|
+
[][license]
|
|
38
|
+
|
|
39
|
+
[][read the docs]
|
|
40
|
+
[][tests]
|
|
41
|
+
[][codecov]
|
|
42
|
+
|
|
43
|
+
[][pre-commit]
|
|
44
|
+
[][black]
|
|
45
|
+
|
|
46
|
+
[pypi status]: https://pypi.org/project/bw-processing/
|
|
47
|
+
[read the docs]: https://bw-processing.readthedocs.io/
|
|
48
|
+
[tests]: https://github.com/brightway-lca/bw-processing/actions?workflow=Tests
|
|
49
|
+
[codecov]: https://app.codecov.io/gh/brightway-lca/bw-processing
|
|
50
|
+
[pre-commit]: https://github.com/pre-commit/pre-commit
|
|
51
|
+
[black]: https://github.com/psf/black
|
|
32
52
|
|
|
33
53
|
## Table of Contents
|
|
34
54
|
|
|
@@ -229,3 +249,10 @@ Please note we have a [code of conduct](https://github.com/brightway-lca/bw_proc
|
|
|
229
249
|
## License
|
|
230
250
|
|
|
231
251
|
[BSD-3-Clause](https://github.com/brightway-lca/bw_processing/blob/master/LICENSE). Copyright 2020 Chris Mutel.
|
|
252
|
+
|
|
253
|
+
<!-- github-only -->
|
|
254
|
+
|
|
255
|
+
[command-line reference]: https://bw-processing.readthedocs.io/en/latest/usage.html
|
|
256
|
+
[License]: https://github.com/brightway-lca/bw-processing/blob/main/LICENSE
|
|
257
|
+
[Contributor Guide]: https://github.com/brightway-lca/bw-processing/blob/main/CONTRIBUTING.md
|
|
258
|
+
[Issue Tracker]: https://github.com/brightway-lca/bw-processing/issues
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
README.md
|
|
4
|
+
pyproject.toml
|
|
5
|
+
setup.cfg
|
|
6
|
+
./bw_processing/__init__.py
|
|
7
|
+
./bw_processing/array_creation.py
|
|
8
|
+
./bw_processing/constants.py
|
|
9
|
+
./bw_processing/datapackage.py
|
|
10
|
+
./bw_processing/errors.py
|
|
11
|
+
./bw_processing/filesystem.py
|
|
12
|
+
./bw_processing/indexing.py
|
|
13
|
+
./bw_processing/io_helpers.py
|
|
14
|
+
./bw_processing/merging.py
|
|
15
|
+
./bw_processing/proxies.py
|
|
16
|
+
./bw_processing/unique_fields.py
|
|
17
|
+
./bw_processing/utils.py
|
|
18
|
+
./bw_processing/examples/__init__.py
|
|
19
|
+
./bw_processing/examples/interfaces.py
|
|
20
|
+
./dev/calculation_package.py
|
|
21
|
+
./dev/loading.py
|
|
22
|
+
./dev/processed_package.py
|
|
23
|
+
./dev/resources.py
|
|
24
|
+
./dev/speed_tests.py
|
|
25
|
+
./docs/conf.py
|
|
26
|
+
bw_processing/VERSION
|
|
27
|
+
bw_processing.egg-info/PKG-INFO
|
|
28
|
+
bw_processing.egg-info/SOURCES.txt
|
|
29
|
+
bw_processing.egg-info/dependency_links.txt
|
|
30
|
+
bw_processing.egg-info/not-zip-safe
|
|
31
|
+
bw_processing.egg-info/requires.txt
|
|
32
|
+
bw_processing.egg-info/top_level.txt
|
|
33
|
+
bw_processing/examples/simple.zip
|
|
34
|
+
tests/test_utils.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"""Sphinx configuration."""
|
|
2
|
+
import importlib.metadata
|
|
3
|
+
import os
|
|
4
|
+
import shutil
|
|
5
|
+
|
|
6
|
+
from sphinx.ext import apidoc
|
|
7
|
+
|
|
8
|
+
# Run sphinx-apidoc
|
|
9
|
+
# This hack is necessary since RTD does not issue `sphinx-apidoc` before running
|
|
10
|
+
# `sphinx-build -b html . _build/html`. See Issue:
|
|
11
|
+
# https://github.com/readthedocs/readthedocs.org/issues/1139
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
__location__ = os.path.dirname(__file__)
|
|
15
|
+
|
|
16
|
+
output_dir = os.path.join(__location__, "api")
|
|
17
|
+
module_dir = os.path.join(__location__, "../bw_processing")
|
|
18
|
+
try:
|
|
19
|
+
shutil.rmtree(output_dir)
|
|
20
|
+
except FileNotFoundError:
|
|
21
|
+
pass
|
|
22
|
+
|
|
23
|
+
try:
|
|
24
|
+
args = f"--implicit-namespaces -f -o {output_dir} {module_dir}".split(" ")
|
|
25
|
+
apidoc.main(args)
|
|
26
|
+
except Exception as e:
|
|
27
|
+
print("Running `sphinx-apidoc` failed!\n{}".format(e))
|
|
28
|
+
|
|
29
|
+
# General Configuration
|
|
30
|
+
|
|
31
|
+
project = "bw-processing"
|
|
32
|
+
author = "Chris Mutel"
|
|
33
|
+
copyright = "2023, Chris Mutel"
|
|
34
|
+
extensions = [
|
|
35
|
+
"sphinx.ext.autodoc",
|
|
36
|
+
"sphinx.ext.napoleon",
|
|
37
|
+
"myst_parser",
|
|
38
|
+
]
|
|
39
|
+
source_suffix = {
|
|
40
|
+
".rst": "restructuredtext",
|
|
41
|
+
".md": "markdown",
|
|
42
|
+
}
|
|
43
|
+
autodoc_typehints = "description"
|
|
44
|
+
html_theme = "furo"
|
|
45
|
+
|
|
46
|
+
needs_sphinx = "5.0"
|
|
47
|
+
|
|
48
|
+
version = importlib.metadata.version("bw_processing")
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
[metadata]
|
|
2
|
+
name = bw-processing
|
|
3
|
+
version = file: bw_processing/VERSION
|
|
4
|
+
description = Tools to create structured arrays in a common format
|
|
5
|
+
author = Chris Mutel
|
|
6
|
+
maintainer = Chris Mutel
|
|
7
|
+
maintainer_email = <cmutel@gmail.com>
|
|
8
|
+
author_email = <cmutel@gmail.com>
|
|
9
|
+
license = BSD-3-Clause
|
|
10
|
+
license_files = LICENSE
|
|
11
|
+
long_description = file: README.md
|
|
12
|
+
long_description_content_type = text/markdown; charset=UTF-8
|
|
13
|
+
keywords = "brightway", "development"
|
|
14
|
+
url = https://github.com/brightway-lca/bw_processing
|
|
15
|
+
project_urls =
|
|
16
|
+
source = https://github.com/brightway-lca/bw_processing
|
|
17
|
+
homepage = https://github.com/brightway-lca/bw_processing
|
|
18
|
+
tracker = https://github.com/brightway-lca/bw_processing/issues
|
|
19
|
+
platforms = any
|
|
20
|
+
classifiers =
|
|
21
|
+
Development Status :: 4 - Beta
|
|
22
|
+
Programming Language :: Python
|
|
23
|
+
Programming Language :: Python :: 3
|
|
24
|
+
Programming Language :: Python :: 3.8
|
|
25
|
+
Programming Language :: Python :: 3.9
|
|
26
|
+
Programming Language :: Python :: 3.10
|
|
27
|
+
Programming Language :: Python :: 3.11
|
|
28
|
+
|
|
29
|
+
[options]
|
|
30
|
+
zip_safe = False
|
|
31
|
+
packages = find_namespace:
|
|
32
|
+
include_package_data = True
|
|
33
|
+
package_dir =
|
|
34
|
+
=.
|
|
35
|
+
python_requires = >=3.8
|
|
36
|
+
install_requires =
|
|
37
|
+
fs
|
|
38
|
+
numpy
|
|
39
|
+
pandas
|
|
40
|
+
|
|
41
|
+
[options.packages.find]
|
|
42
|
+
where = .
|
|
43
|
+
exclude =
|
|
44
|
+
tests
|
|
45
|
+
|
|
46
|
+
[options.extras_require]
|
|
47
|
+
testing =
|
|
48
|
+
setuptools
|
|
49
|
+
pytest
|
|
50
|
+
pytest-cov
|
|
51
|
+
dev =
|
|
52
|
+
pre-commit
|
|
53
|
+
pylint
|
|
54
|
+
docs =
|
|
55
|
+
sphinx
|
|
56
|
+
myst_parser
|
|
57
|
+
furo
|
|
58
|
+
|
|
59
|
+
[tool:pytest]
|
|
60
|
+
addopts =
|
|
61
|
+
--cov bw_processing --cov-report term-missing
|
|
62
|
+
--verbose
|
|
63
|
+
norecursedirs =
|
|
64
|
+
dist
|
|
65
|
+
build
|
|
66
|
+
.tox
|
|
67
|
+
testpaths = tests
|
|
68
|
+
|
|
69
|
+
[devpi:upload]
|
|
70
|
+
no_vcs = 1
|
|
71
|
+
formats = bdist_wheel
|
|
72
|
+
|
|
73
|
+
[flake8]
|
|
74
|
+
max_line_length = 88
|
|
75
|
+
extend_ignore = E203, W503
|
|
76
|
+
exclude =
|
|
77
|
+
.tox
|
|
78
|
+
build
|
|
79
|
+
dist
|
|
80
|
+
.eggs
|
|
81
|
+
docs/conf.py
|
|
82
|
+
|
|
83
|
+
[egg_info]
|
|
84
|
+
tag_build =
|
|
85
|
+
tag_date = 0
|
|
86
|
+
|
|
@@ -7,6 +7,7 @@ import pytest
|
|
|
7
7
|
|
|
8
8
|
from bw_processing.errors import InvalidName
|
|
9
9
|
from bw_processing.utils import (
|
|
10
|
+
get_version_tuple,
|
|
10
11
|
check_name,
|
|
11
12
|
check_suffix,
|
|
12
13
|
dictionary_formatter,
|
|
@@ -14,6 +15,10 @@ from bw_processing.utils import (
|
|
|
14
15
|
)
|
|
15
16
|
|
|
16
17
|
|
|
18
|
+
def test_get_version_tuple():
|
|
19
|
+
assert isinstance(get_version_tuple(), tuple)
|
|
20
|
+
|
|
21
|
+
|
|
17
22
|
def test_load_bytes():
|
|
18
23
|
obj = BytesIO()
|
|
19
24
|
np.save(obj, np.arange(10), allow_pickle=False)
|
bw_processing-0.8.2/.gitignore
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
# Byte-compiled / optimized / DLL files
|
|
2
|
-
__pycache__/
|
|
3
|
-
*.py[cod]
|
|
4
|
-
*$py.class
|
|
5
|
-
|
|
6
|
-
# C extensions
|
|
7
|
-
*.so
|
|
8
|
-
|
|
9
|
-
# Distribution / packaging
|
|
10
|
-
.Python
|
|
11
|
-
build/
|
|
12
|
-
develop-eggs/
|
|
13
|
-
dist/
|
|
14
|
-
downloads/
|
|
15
|
-
eggs/
|
|
16
|
-
.eggs/
|
|
17
|
-
lib/
|
|
18
|
-
lib64/
|
|
19
|
-
parts/
|
|
20
|
-
sdist/
|
|
21
|
-
var/
|
|
22
|
-
wheels/
|
|
23
|
-
*.egg-info/
|
|
24
|
-
.installed.cfg
|
|
25
|
-
*.egg
|
|
26
|
-
MANIFEST
|
|
27
|
-
|
|
28
|
-
# PyInstaller
|
|
29
|
-
# Usually these files are written by a python script from a template
|
|
30
|
-
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
31
|
-
*.manifest
|
|
32
|
-
*.spec
|
|
33
|
-
|
|
34
|
-
# Installer logs
|
|
35
|
-
pip-log.txt
|
|
36
|
-
pip-delete-this-directory.txt
|
|
37
|
-
|
|
38
|
-
# Unit test / coverage reports
|
|
39
|
-
htmlcov/
|
|
40
|
-
.tox/
|
|
41
|
-
.coverage
|
|
42
|
-
.coverage.*
|
|
43
|
-
.cache
|
|
44
|
-
nosetests.xml
|
|
45
|
-
coverage.xml
|
|
46
|
-
*.cover
|
|
47
|
-
.hypothesis/
|
|
48
|
-
.pytest_cache/
|
|
49
|
-
|
|
50
|
-
# Translations
|
|
51
|
-
*.mo
|
|
52
|
-
*.pot
|
|
53
|
-
|
|
54
|
-
# Django stuff:
|
|
55
|
-
*.log
|
|
56
|
-
local_settings.py
|
|
57
|
-
db.sqlite3
|
|
58
|
-
|
|
59
|
-
# Flask stuff:
|
|
60
|
-
instance/
|
|
61
|
-
.webassets-cache
|
|
62
|
-
|
|
63
|
-
# Scrapy stuff:
|
|
64
|
-
.scrapy
|
|
65
|
-
|
|
66
|
-
# Sphinx documentation
|
|
67
|
-
docs/_build/
|
|
68
|
-
|
|
69
|
-
# PyBuilder
|
|
70
|
-
target/
|
|
71
|
-
|
|
72
|
-
# Jupyter Notebook
|
|
73
|
-
.ipynb_checkpoints
|
|
74
|
-
|
|
75
|
-
# pyenv
|
|
76
|
-
.python-version
|
|
77
|
-
|
|
78
|
-
# celery beat schedule file
|
|
79
|
-
celerybeat-schedule
|
|
80
|
-
|
|
81
|
-
# SageMath parsed files
|
|
82
|
-
*.sage.py
|
|
83
|
-
|
|
84
|
-
# Environments
|
|
85
|
-
.env
|
|
86
|
-
.venv
|
|
87
|
-
env/
|
|
88
|
-
venv/
|
|
89
|
-
ENV/
|
|
90
|
-
env.bak/
|
|
91
|
-
venv.bak/
|
|
92
|
-
|
|
93
|
-
# Spyder project settings
|
|
94
|
-
.spyderproject
|
|
95
|
-
.spyproject
|
|
96
|
-
|
|
97
|
-
# Rope project settings
|
|
98
|
-
.ropeproject
|
|
99
|
-
|
|
100
|
-
# mkdocs documentation
|
|
101
|
-
/site
|
|
102
|
-
|
|
103
|
-
# mypy
|
|
104
|
-
.mypy_cache/
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
repos:
|
|
2
|
-
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
3
|
-
rev: v4.0.1
|
|
4
|
-
hooks:
|
|
5
|
-
- id: check-yaml
|
|
6
|
-
- id: end-of-file-fixer
|
|
7
|
-
- id: trailing-whitespace
|
|
8
|
-
- repo: https://github.com/psf/black
|
|
9
|
-
rev: 21.5b1
|
|
10
|
-
hooks:
|
|
11
|
-
- id: black
|
|
12
|
-
- repo: https://github.com/pycqa/isort
|
|
13
|
-
rev: 5.9.3
|
|
14
|
-
hooks:
|
|
15
|
-
- id: isort
|
|
16
|
-
name: isort (python)
|
|
17
|
-
args: ["--profile", "black", "--filter-files"]
|