saef 3.3.0__tar.gz → 3.3.1__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 (39) hide show
  1. {saef-3.3.0 → saef-3.3.1}/PKG-INFO +3 -3
  2. {saef-3.3.0 → saef-3.3.1}/PYPI_README.md +1 -1
  3. {saef-3.3.0 → saef-3.3.1}/pyproject.toml +1 -1
  4. {saef-3.3.0 → saef-3.3.1}/src/saef/__init__.py +1 -1
  5. {saef-3.3.0 → saef-3.3.1}/.gitignore +0 -0
  6. {saef-3.3.0 → saef-3.3.1}/LICENSE +0 -0
  7. {saef-3.3.0 → saef-3.3.1}/LICENSE-CODE +0 -0
  8. {saef-3.3.0 → saef-3.3.1}/cloud_region_factors.csv +0 -0
  9. {saef-3.3.0 → saef-3.3.1}/factors_v3_lifecycle.csv +0 -0
  10. {saef-3.3.0 → saef-3.3.1}/grid_intensity_all.csv +0 -0
  11. {saef-3.3.0 → saef-3.3.1}/model_class_mapping.csv +0 -0
  12. {saef-3.3.0 → saef-3.3.1}/model_factors.csv +0 -0
  13. {saef-3.3.0 → saef-3.3.1}/region_grid_crosswalk.csv +0 -0
  14. {saef-3.3.0 → saef-3.3.1}/region_water_factors.csv +0 -0
  15. {saef-3.3.0 → saef-3.3.1}/reserved_capacity_factors.csv +0 -0
  16. {saef-3.3.0 → saef-3.3.1}/scripts/sync_data.py +0 -0
  17. {saef-3.3.0 → saef-3.3.1}/src/saef/__main__.py +0 -0
  18. {saef-3.3.0 → saef-3.3.1}/src/saef/_calc.py +0 -0
  19. {saef-3.3.0 → saef-3.3.1}/src/saef/_core.py +0 -0
  20. {saef-3.3.0 → saef-3.3.1}/src/saef/cli.py +0 -0
  21. {saef-3.3.0 → saef-3.3.1}/src/saef/data/cloud_region_factors.csv +0 -0
  22. {saef-3.3.0 → saef-3.3.1}/src/saef/data/factors_v3_lifecycle.csv +0 -0
  23. {saef-3.3.0 → saef-3.3.1}/src/saef/data/grid_intensity_all.csv +0 -0
  24. {saef-3.3.0 → saef-3.3.1}/src/saef/data/model_class_mapping.csv +0 -0
  25. {saef-3.3.0 → saef-3.3.1}/src/saef/data/model_factors.csv +0 -0
  26. {saef-3.3.0 → saef-3.3.1}/src/saef/data/region_grid_crosswalk.csv +0 -0
  27. {saef-3.3.0 → saef-3.3.1}/src/saef/data/region_water_factors.csv +0 -0
  28. {saef-3.3.0 → saef-3.3.1}/src/saef/data/reserved_capacity_factors.csv +0 -0
  29. {saef-3.3.0 → saef-3.3.1}/src/saef/data/token_basis_constants.csv +0 -0
  30. {saef-3.3.0 → saef-3.3.1}/src/saef/integrations/__init__.py +0 -0
  31. {saef-3.3.0 → saef-3.3.1}/src/saef/integrations/_base.py +0 -0
  32. {saef-3.3.0 → saef-3.3.1}/src/saef/integrations/langchain.py +0 -0
  33. {saef-3.3.0 → saef-3.3.1}/src/saef/integrations/litellm.py +0 -0
  34. {saef-3.3.0 → saef-3.3.1}/src/saef/integrations/openai.py +0 -0
  35. {saef-3.3.0 → saef-3.3.1}/src/saef/mcp_server.py +0 -0
  36. {saef-3.3.0 → saef-3.3.1}/tests/test_integrations.py +0 -0
  37. {saef-3.3.0 → saef-3.3.1}/tests/test_mcp_server.py +0 -0
  38. {saef-3.3.0 → saef-3.3.1}/tests/test_saef.py +0 -0
  39. {saef-3.3.0 → saef-3.3.1}/token_basis_constants.csv +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: saef
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: SOMA AI Emission Factors: estimated carbon and water factors for AI inference, per million tokens
5
5
  Project-URL: Homepage, https://somaai.earth/ai-footprint
6
6
  Project-URL: Documentation, https://somaai.earth/ai-footprint/how-to/track-ai-api-emissions
@@ -28,7 +28,7 @@ Requires-Dist: langchain>=1.0; extra == 'langchain'
28
28
  Provides-Extra: litellm
29
29
  Requires-Dist: litellm; extra == 'litellm'
30
30
  Provides-Extra: mcp
31
- Requires-Dist: mcp>=1.2; extra == 'mcp'
31
+ Requires-Dist: mcp<2,>=1.2; extra == 'mcp'
32
32
  Provides-Extra: pandas
33
33
  Requires-Dist: pandas; extra == 'pandas'
34
34
  Provides-Extra: test
@@ -62,7 +62,7 @@ print(r.kg_co2e, r.kg_co2e_high_case) # central and conservative hig
62
62
  print(r.water_ml) # mL, or None where the region has no water factor
63
63
  for s in r.provenance[:3]:
64
64
  print(s["file"], s["line"], s["column"]) # the file, line and column behind each number
65
- print(len(saef.regions()), saef.__version__, saef.DATASET_VERSION) # 143 cloud regions, 3.3.0, 3.1.0
65
+ print(len(saef.regions()), saef.__version__, saef.DATASET_VERSION) # 143 cloud regions, 3.3.1, 3.1.0
66
66
  print(saef.citation())
67
67
  ```
68
68
 
@@ -25,7 +25,7 @@ print(r.kg_co2e, r.kg_co2e_high_case) # central and conservative hig
25
25
  print(r.water_ml) # mL, or None where the region has no water factor
26
26
  for s in r.provenance[:3]:
27
27
  print(s["file"], s["line"], s["column"]) # the file, line and column behind each number
28
- print(len(saef.regions()), saef.__version__, saef.DATASET_VERSION) # 143 cloud regions, 3.3.0, 3.1.0
28
+ print(len(saef.regions()), saef.__version__, saef.DATASET_VERSION) # 143 cloud regions, 3.3.1, 3.1.0
29
29
  print(saef.citation())
30
30
  ```
31
31
 
@@ -30,7 +30,7 @@ dependencies = []
30
30
  pandas = ["pandas"]
31
31
  litellm = ["litellm"]
32
32
  langchain = ["langchain>=1.0"]
33
- mcp = ["mcp>=1.2"]
33
+ mcp = ["mcp>=1.2,<2"]
34
34
  test = ["pytest"]
35
35
 
36
36
  [project.scripts]
@@ -11,7 +11,7 @@ from ._core import (
11
11
  regions,
12
12
  )
13
13
 
14
- __version__ = "3.3.0"
14
+ __version__ = "3.3.1"
15
15
 
16
16
  __all__ = [
17
17
  "DATASET_VERSION",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes