antelope-interface 0.2.3__tar.gz → 0.2.3.2__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 (41) hide show
  1. antelope_interface-0.2.3.2/MANIFEST.in +1 -0
  2. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2}/PKG-INFO +7 -3
  3. antelope_interface-0.2.3.2/pyproject.toml +28 -0
  4. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2}/setup.py +6 -2
  5. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/models/__init__.py +19 -3
  6. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope_interface.egg-info/PKG-INFO +8 -4
  7. antelope_interface-0.2.3.2/src/antelope_interface.egg-info/SOURCES.txt +36 -0
  8. antelope_interface-0.2.3.2/src/antelope_interface.egg-info/requires.txt +2 -0
  9. antelope_interface-0.2.3/MANIFEST.in +0 -1
  10. antelope_interface-0.2.3/antelope_interface.egg-info/SOURCES.txt +0 -35
  11. antelope_interface-0.2.3/antelope_interface.egg-info/requires.txt +0 -2
  12. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2}/LICENSE +0 -0
  13. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2}/README.md +0 -0
  14. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2}/setup.cfg +0 -0
  15. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/__init__.py +0 -0
  16. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/exchanges_from_spreadsheet.py +0 -0
  17. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/flows/__init__.py +0 -0
  18. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/flows/flow.py +0 -0
  19. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/flows/flow_interface.py +0 -0
  20. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/flows/openlca_locales.json +0 -0
  21. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/__init__.py +0 -0
  22. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/abstract_query.py +0 -0
  23. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/ibackground.py +0 -0
  24. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/iconfigure.py +0 -0
  25. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/iexchange.py +0 -0
  26. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/iforeground.py +0 -0
  27. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/iindex.py +0 -0
  28. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/interfaces/iquantity.py +0 -0
  29. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/models/auth.py +0 -0
  30. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/__init__.py +0 -0
  31. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/base.py +0 -0
  32. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/catalog_ref.py +0 -0
  33. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/exchange_ref.py +0 -0
  34. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/flow_ref.py +0 -0
  35. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/process_ref.py +0 -0
  36. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/quantity_ref.py +0 -0
  37. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/tests/__init__.py +0 -0
  38. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/refs/tests/test_flows.py +0 -0
  39. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope/xdb_tokens.py +0 -0
  40. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope_interface.egg-info/dependency_links.txt +0 -0
  41. {antelope_interface-0.2.3 → antelope_interface-0.2.3.2/src}/antelope_interface.egg-info/top_level.txt +0 -0
@@ -0,0 +1 @@
1
+ include src/antelope/flows/openlca_locales.json
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: antelope_interface
3
- Version: 0.2.3
3
+ Version: 0.2.3.2
4
+ Summary: A common interface for accessing LCA data
4
5
  Home-page: https://github.com/AntelopeLCA/antelope
5
6
  Author: Brandon Kuczenski
6
- Author-email: bkuczenski@ucsb.edu
7
- License: BSD 3-Clause
7
+ Author-email: Brandon Kuczenski <bkuczenski@ucsb.edu>
8
+ License: BSD-3-Clause
9
+ Keywords: one,two
8
10
  Classifier: Development Status :: 4 - Beta
9
11
  Classifier: Intended Audience :: Science/Research
10
12
  Classifier: License :: OSI Approved :: BSD License
@@ -15,6 +17,8 @@ Classifier: Topic :: Scientific/Engineering
15
17
  Requires-Python: >=3.6
16
18
  Description-Content-Type: text/markdown
17
19
  License-File: LICENSE
20
+ Requires-Dist: synonym_dict
21
+ Requires-Dist: pydantic
18
22
 
19
23
  # antelope
20
24
  Standard Interface and reference framework for LCA
@@ -0,0 +1,28 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "antelope_interface"
7
+ authors =[
8
+ {name = "Brandon Kuczenski", email="bkuczenski@ucsb.edu"}
9
+ ]
10
+ description = "A common interface for accessing LCA data"
11
+ readme ={ file = "README.md", content-type = "text/markdown"}
12
+ requires-python = ">=3.6"
13
+ keywords = ["one", "two"]
14
+ license = {text = "BSD-3-Clause"}
15
+ classifiers = [
16
+ "Development Status :: 4 - Beta",
17
+ "Intended Audience :: Science/Research",
18
+ "License :: OSI Approved :: BSD License",
19
+ "Natural Language :: English",
20
+ "Operating System :: OS Independent",
21
+ "Programming Language :: Python :: 3",
22
+ "Topic :: Scientific/Engineering"
23
+ ]
24
+ dependencies = ["synonym_dict", "pydantic"]
25
+ version = "0.2.3.2"
26
+
27
+ [tool.setuptools.packages.find]
28
+ where = ["src"]
@@ -1,6 +1,6 @@
1
1
  from setuptools import setup, find_packages
2
2
 
3
- ANTELOPE_VERSION = '0.2.3'
3
+ ANTELOPE_VERSION = '0.2.3.2'
4
4
 
5
5
  requires = [
6
6
  "synonym_dict>=0.2.4",
@@ -9,6 +9,10 @@ requires = [
9
9
 
10
10
  """
11
11
  Version History:
12
+ 0.2.3.2 2024/03/26 move to src layout
13
+
14
+ 0.2.3.1 2024/03/22 LciaDetail objects now return DirectedFlow instead of FlowSpec (as exchange proxy)
15
+
12
16
  0.2.3 2024/01/05 - 'lcia' index route; exclude LCIA metadata from quantity manager synonyms
13
17
  Versions >= 0.2.3 to support 0.3-branch development code (but this package is not branched)
14
18
 
@@ -74,5 +78,5 @@ setup(
74
78
  "Topic :: Scientific/Engineering"
75
79
  ],
76
80
  python_requires='>=3.6',
77
- packages=find_packages()
81
+ packages=find_packages('src')
78
82
  )
@@ -263,9 +263,25 @@ class DirectedFlow(ResponseModel):
263
263
  flow: FlowSpec
264
264
  direction: str
265
265
 
266
+ @property
267
+ def origin(self):
268
+ return self.flow.origin
269
+
270
+ @property
271
+ def external_ref(self):
272
+ return self.flow.external_ref
273
+
274
+ @property
275
+ def quantity_ref(self):
276
+ return self.flow.quantity_ref
277
+
278
+ @property
279
+ def name(self):
280
+ return self.flow.flowable
281
+
266
282
  @classmethod
267
283
  def from_exchange(cls, obj):
268
- return cls(flow=FlowSpec.from_flow(obj.flow), direction=obj.direction)
284
+ return cls(flow=FlowSpec.from_exchange(obj), direction=obj.direction)
269
285
 
270
286
 
271
287
  class Exchange(ResponseModel):
@@ -552,13 +568,13 @@ class SummaryLciaScore(AggregatedLciaScore):
552
568
 
553
569
 
554
570
  class LciaDetail(ResponseModel):
555
- exchange: Optional[FlowSpec]
571
+ exchange: Optional[DirectedFlow]
556
572
  factor: QuantityConversion
557
573
  result: float
558
574
 
559
575
  @classmethod
560
576
  def from_detailed_lcia_result(cls, d):
561
- return cls(exchange=FlowSpec.from_exchange(d.exchange),
577
+ return cls(exchange=DirectedFlow.from_exchange(d.exchange),
562
578
  factor=QuantityConversion.from_qrresult(d.factor),
563
579
  result=d.result)
564
580
 
@@ -1,10 +1,12 @@
1
1
  Metadata-Version: 2.1
2
- Name: antelope-interface
3
- Version: 0.2.3
2
+ Name: antelope_interface
3
+ Version: 0.2.3.2
4
+ Summary: A common interface for accessing LCA data
4
5
  Home-page: https://github.com/AntelopeLCA/antelope
5
6
  Author: Brandon Kuczenski
6
- Author-email: bkuczenski@ucsb.edu
7
- License: BSD 3-Clause
7
+ Author-email: Brandon Kuczenski <bkuczenski@ucsb.edu>
8
+ License: BSD-3-Clause
9
+ Keywords: one,two
8
10
  Classifier: Development Status :: 4 - Beta
9
11
  Classifier: Intended Audience :: Science/Research
10
12
  Classifier: License :: OSI Approved :: BSD License
@@ -15,6 +17,8 @@ Classifier: Topic :: Scientific/Engineering
15
17
  Requires-Python: >=3.6
16
18
  Description-Content-Type: text/markdown
17
19
  License-File: LICENSE
20
+ Requires-Dist: synonym_dict
21
+ Requires-Dist: pydantic
18
22
 
19
23
  # antelope
20
24
  Standard Interface and reference framework for LCA
@@ -0,0 +1,36 @@
1
+ LICENSE
2
+ MANIFEST.in
3
+ README.md
4
+ pyproject.toml
5
+ setup.py
6
+ src/antelope/__init__.py
7
+ src/antelope/exchanges_from_spreadsheet.py
8
+ src/antelope/xdb_tokens.py
9
+ src/antelope/flows/__init__.py
10
+ src/antelope/flows/flow.py
11
+ src/antelope/flows/flow_interface.py
12
+ src/antelope/flows/openlca_locales.json
13
+ src/antelope/interfaces/__init__.py
14
+ src/antelope/interfaces/abstract_query.py
15
+ src/antelope/interfaces/ibackground.py
16
+ src/antelope/interfaces/iconfigure.py
17
+ src/antelope/interfaces/iexchange.py
18
+ src/antelope/interfaces/iforeground.py
19
+ src/antelope/interfaces/iindex.py
20
+ src/antelope/interfaces/iquantity.py
21
+ src/antelope/models/__init__.py
22
+ src/antelope/models/auth.py
23
+ src/antelope/refs/__init__.py
24
+ src/antelope/refs/base.py
25
+ src/antelope/refs/catalog_ref.py
26
+ src/antelope/refs/exchange_ref.py
27
+ src/antelope/refs/flow_ref.py
28
+ src/antelope/refs/process_ref.py
29
+ src/antelope/refs/quantity_ref.py
30
+ src/antelope/refs/tests/__init__.py
31
+ src/antelope/refs/tests/test_flows.py
32
+ src/antelope_interface.egg-info/PKG-INFO
33
+ src/antelope_interface.egg-info/SOURCES.txt
34
+ src/antelope_interface.egg-info/dependency_links.txt
35
+ src/antelope_interface.egg-info/requires.txt
36
+ src/antelope_interface.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ synonym_dict
2
+ pydantic
@@ -1 +0,0 @@
1
- include antelope/flows/openlca_locales.json
@@ -1,35 +0,0 @@
1
- LICENSE
2
- MANIFEST.in
3
- README.md
4
- setup.py
5
- antelope/__init__.py
6
- antelope/exchanges_from_spreadsheet.py
7
- antelope/xdb_tokens.py
8
- antelope/flows/__init__.py
9
- antelope/flows/flow.py
10
- antelope/flows/flow_interface.py
11
- antelope/flows/openlca_locales.json
12
- antelope/interfaces/__init__.py
13
- antelope/interfaces/abstract_query.py
14
- antelope/interfaces/ibackground.py
15
- antelope/interfaces/iconfigure.py
16
- antelope/interfaces/iexchange.py
17
- antelope/interfaces/iforeground.py
18
- antelope/interfaces/iindex.py
19
- antelope/interfaces/iquantity.py
20
- antelope/models/__init__.py
21
- antelope/models/auth.py
22
- antelope/refs/__init__.py
23
- antelope/refs/base.py
24
- antelope/refs/catalog_ref.py
25
- antelope/refs/exchange_ref.py
26
- antelope/refs/flow_ref.py
27
- antelope/refs/process_ref.py
28
- antelope/refs/quantity_ref.py
29
- antelope/refs/tests/__init__.py
30
- antelope/refs/tests/test_flows.py
31
- antelope_interface.egg-info/PKG-INFO
32
- antelope_interface.egg-info/SOURCES.txt
33
- antelope_interface.egg-info/dependency_links.txt
34
- antelope_interface.egg-info/requires.txt
35
- antelope_interface.egg-info/top_level.txt
@@ -1,2 +0,0 @@
1
- synonym_dict>=0.2.4
2
- pydantic>=2.5.0