frequenz-client-electricity-trading 0.0.9__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 (24) hide show
  1. frequenz_client_electricity_trading-0.0.9/LICENSE +21 -0
  2. frequenz_client_electricity_trading-0.0.9/MANIFEST.in +13 -0
  3. frequenz_client_electricity_trading-0.0.9/PKG-INFO +134 -0
  4. frequenz_client_electricity_trading-0.0.9/README.md +60 -0
  5. frequenz_client_electricity_trading-0.0.9/RELEASE_NOTES.md +24 -0
  6. frequenz_client_electricity_trading-0.0.9/integration_tests/test_api.py +602 -0
  7. frequenz_client_electricity_trading-0.0.9/pyproject.toml +204 -0
  8. frequenz_client_electricity_trading-0.0.9/setup.cfg +4 -0
  9. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/__init__.py +252 -0
  10. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/_client.py +1071 -0
  11. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/_types.py +2138 -0
  12. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/_utils.py +25 -0
  13. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/cli/__init__.py +4 -0
  14. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/cli/__main__.py +172 -0
  15. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/cli/day_ahead.py +36 -0
  16. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/cli/etrading.py +401 -0
  17. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/conftest.py +18 -0
  18. frequenz_client_electricity_trading-0.0.9/src/frequenz/client/electricity_trading/py.typed +0 -0
  19. frequenz_client_electricity_trading-0.0.9/src/frequenz_client_electricity_trading.egg-info/PKG-INFO +134 -0
  20. frequenz_client_electricity_trading-0.0.9/src/frequenz_client_electricity_trading.egg-info/SOURCES.txt +22 -0
  21. frequenz_client_electricity_trading-0.0.9/src/frequenz_client_electricity_trading.egg-info/dependency_links.txt +1 -0
  22. frequenz_client_electricity_trading-0.0.9/src/frequenz_client_electricity_trading.egg-info/entry_points.txt +2 -0
  23. frequenz_client_electricity_trading-0.0.9/src/frequenz_client_electricity_trading.egg-info/requires.txt +59 -0
  24. frequenz_client_electricity_trading-0.0.9/src/frequenz_client_electricity_trading.egg-info/top_level.txt +1 -0
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright © 2024 Frequenz Energy-as-a-Service GmbH
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,13 @@
1
+ exclude .cookiecutter-replay.json
2
+ exclude .editorconfig
3
+ exclude .gitignore
4
+ exclude CODEOWNERS
5
+ exclude CONTRIBUTING.md
6
+ exclude mkdocs.yml
7
+ exclude noxfile.py
8
+ exclude src/conftest.py
9
+ recursive-exclude .github *
10
+ recursive-exclude benchmarks *
11
+ recursive-exclude docs *
12
+ recursive-exclude tests *
13
+ recursive-include py *.pyi
@@ -0,0 +1,134 @@
1
+ Metadata-Version: 2.1
2
+ Name: frequenz-client-electricity-trading
3
+ Version: 0.0.9
4
+ Summary: Electricity Trading API client for Python
5
+ Author-email: Frequenz Energy-as-a-Service GmbH <floss@frequenz.com>
6
+ License: MIT
7
+ Project-URL: Documentation, https://frequenz-floss.github.io/frequenz-client-electricity-trading-python/
8
+ Project-URL: Changelog, https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/releases
9
+ Project-URL: Issues, https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/issues
10
+ Project-URL: Repository, https://github.com/frequenz-floss/frequenz-client-electricity-trading-python
11
+ Project-URL: Support, https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/discussions/categories/support
12
+ Keywords: frequenz,python,lib,library,client-electricity-trading,client,api,python,trading,electricity-trading
13
+ Classifier: Development Status :: 3 - Alpha
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: License :: OSI Approved :: MIT License
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Topic :: Software Development :: Libraries
19
+ Classifier: Typing :: Typed
20
+ Requires-Python: <4,>=3.11
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Requires-Dist: click<9,>=8.1.8
24
+ Requires-Dist: entsoe-py<1,>=0.6.16
25
+ Requires-Dist: frequenz-api-common<0.7.0,>=0.6.3
26
+ Requires-Dist: grpcio<2,>=1.68.1
27
+ Requires-Dist: frequenz-channels<2,>=1.6.1
28
+ Requires-Dist: frequenz-client-base<0.10.0,>=0.9.0
29
+ Requires-Dist: frequenz-client-common<0.4.0,>=0.1.0
30
+ Requires-Dist: frequenz-api-electricity-trading<0.7.0,>=0.6.1
31
+ Requires-Dist: protobuf<6,>=5.29.2
32
+ Provides-Extra: dev-flake8
33
+ Requires-Dist: flake8==7.1.1; extra == "dev-flake8"
34
+ Requires-Dist: flake8-docstrings==1.7.0; extra == "dev-flake8"
35
+ Requires-Dist: flake8-pyproject==1.2.3; extra == "dev-flake8"
36
+ Requires-Dist: pydoclint==0.5.9; extra == "dev-flake8"
37
+ Requires-Dist: pydocstyle==6.3.0; extra == "dev-flake8"
38
+ Provides-Extra: dev-formatting
39
+ Requires-Dist: black==24.10.0; extra == "dev-formatting"
40
+ Requires-Dist: isort==5.13.2; extra == "dev-formatting"
41
+ Provides-Extra: dev-mkdocs
42
+ Requires-Dist: black==24.10.0; extra == "dev-mkdocs"
43
+ Requires-Dist: Markdown==3.7; extra == "dev-mkdocs"
44
+ Requires-Dist: mike==2.1.3; extra == "dev-mkdocs"
45
+ Requires-Dist: mkdocs-gen-files==0.5.0; extra == "dev-mkdocs"
46
+ Requires-Dist: mkdocs-literate-nav==0.6.1; extra == "dev-mkdocs"
47
+ Requires-Dist: mkdocs-macros-plugin==1.3.7; extra == "dev-mkdocs"
48
+ Requires-Dist: mkdocs-material==9.5.47; extra == "dev-mkdocs"
49
+ Requires-Dist: mkdocstrings[python]==0.28.0; extra == "dev-mkdocs"
50
+ Requires-Dist: mkdocstrings-python==1.14.6; extra == "dev-mkdocs"
51
+ Requires-Dist: frequenz-repo-config[lib]==0.13.0; extra == "dev-mkdocs"
52
+ Provides-Extra: dev-mypy
53
+ Requires-Dist: mypy==1.13.0; extra == "dev-mypy"
54
+ Requires-Dist: grpc-stubs==1.53.0.5; extra == "dev-mypy"
55
+ Requires-Dist: pandas-stubs==2.2.2.240807; extra == "dev-mypy"
56
+ Requires-Dist: types-Markdown==3.7.0.20241204; extra == "dev-mypy"
57
+ Requires-Dist: types-protobuf==5.28.3.20241030; extra == "dev-mypy"
58
+ Requires-Dist: frequenz-client-electricity-trading[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-mypy"
59
+ Provides-Extra: dev-noxfile
60
+ Requires-Dist: nox==2024.10.9; extra == "dev-noxfile"
61
+ Requires-Dist: frequenz-repo-config[lib]==0.13.0; extra == "dev-noxfile"
62
+ Provides-Extra: dev-pylint
63
+ Requires-Dist: pylint==3.3.2; extra == "dev-pylint"
64
+ Requires-Dist: frequenz-client-electricity-trading[dev-mkdocs,dev-noxfile,dev-pytest]; extra == "dev-pylint"
65
+ Provides-Extra: dev-pytest
66
+ Requires-Dist: pytest==8.3.4; extra == "dev-pytest"
67
+ Requires-Dist: frequenz-repo-config[extra-lint-examples]==0.13.0; extra == "dev-pytest"
68
+ Requires-Dist: pytest-mock==3.14.0; extra == "dev-pytest"
69
+ Requires-Dist: pytest-asyncio==0.24.0; extra == "dev-pytest"
70
+ Requires-Dist: async-solipsism==0.7; extra == "dev-pytest"
71
+ Requires-Dist: deepdiff==8.0.1; extra == "dev-pytest"
72
+ Provides-Extra: dev
73
+ Requires-Dist: frequenz-client-electricity-trading[dev-flake8,dev-formatting,dev-mkdocs,dev-mypy,dev-noxfile,dev-pylint,dev-pytest]; extra == "dev"
74
+
75
+ # Frequenz Electricity Trading API Client
76
+
77
+ [![Build Status](https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/actions/workflows/ci.yaml)
78
+ [![PyPI Package](https://img.shields.io/pypi/v/frequenz-client-electricity-trading)](https://pypi.org/project/frequenz-client-electricity-trading/)
79
+ [![Docs](https://img.shields.io/badge/docs-latest-informational)](https://frequenz-floss.github.io/frequenz-client-electricity-trading-python/)
80
+
81
+ ## Introduction
82
+
83
+ Electricity Trading API client for Python
84
+ The Frequenz Electricity Trading API client for Python is an easy-to-use Python interface built to interact with the Frequenz Electricity Trading API. It allows you to create orders, get market data, and manage your orders.
85
+
86
+ ## Features
87
+
88
+ * **Create and manage gridpool orders**: Place new orders, update existing ones, and cancel orders when necessary.
89
+ * **Stream live data**: Get real-time updates on market data, including order books, trades, and market prices.
90
+ * **Retrieve historical data**: Access historical data on market trades.
91
+
92
+ ## Supported Platforms
93
+
94
+ The following platforms are officially supported (tested):
95
+
96
+ * **Python:** 3.11
97
+ * **Operating System:** Ubuntu Linux 20.04
98
+ * **Architectures:** amd64, arm64
99
+
100
+ ## Usage
101
+
102
+ ### Installation
103
+
104
+ We assume you are on a system with Python available. If that is not the case,
105
+ please [download and install Python](https://www.python.org/downloads/) first.
106
+
107
+
108
+ To install the Frequenz Electricity Trading AP, you probably want to create a new virtual
109
+ environment first. For example, if you use a `sh` compatible shell, you can do this:
110
+
111
+ ```sh
112
+ python3 -m venv .venv
113
+ . .venv/bin/activate
114
+ ```
115
+
116
+ Then, just install using `pip`. Replace `VERSION` with the specific version you wish to install:
117
+
118
+ ```sh
119
+ # Choose the version you want to install
120
+ VERSION=0.2.3
121
+ pip install frequenz-client-electricity-trading==$VERSION
122
+ ```
123
+
124
+
125
+ ## Documentation
126
+
127
+ For more information, please visit the [documentation
128
+ website](https://frequenz-floss.github.io/frequenz-client-electricity-trading-python/).
129
+
130
+
131
+ ## Contributing
132
+
133
+ If you want to know how to build this project and contribute to it, please
134
+ check out the [Contributing Guide](CONTRIBUTING.md).
@@ -0,0 +1,60 @@
1
+ # Frequenz Electricity Trading API Client
2
+
3
+ [![Build Status](https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/actions/workflows/ci.yaml/badge.svg)](https://github.com/frequenz-floss/frequenz-client-electricity-trading-python/actions/workflows/ci.yaml)
4
+ [![PyPI Package](https://img.shields.io/pypi/v/frequenz-client-electricity-trading)](https://pypi.org/project/frequenz-client-electricity-trading/)
5
+ [![Docs](https://img.shields.io/badge/docs-latest-informational)](https://frequenz-floss.github.io/frequenz-client-electricity-trading-python/)
6
+
7
+ ## Introduction
8
+
9
+ Electricity Trading API client for Python
10
+ The Frequenz Electricity Trading API client for Python is an easy-to-use Python interface built to interact with the Frequenz Electricity Trading API. It allows you to create orders, get market data, and manage your orders.
11
+
12
+ ## Features
13
+
14
+ * **Create and manage gridpool orders**: Place new orders, update existing ones, and cancel orders when necessary.
15
+ * **Stream live data**: Get real-time updates on market data, including order books, trades, and market prices.
16
+ * **Retrieve historical data**: Access historical data on market trades.
17
+
18
+ ## Supported Platforms
19
+
20
+ The following platforms are officially supported (tested):
21
+
22
+ * **Python:** 3.11
23
+ * **Operating System:** Ubuntu Linux 20.04
24
+ * **Architectures:** amd64, arm64
25
+
26
+ ## Usage
27
+
28
+ ### Installation
29
+
30
+ We assume you are on a system with Python available. If that is not the case,
31
+ please [download and install Python](https://www.python.org/downloads/) first.
32
+
33
+
34
+ To install the Frequenz Electricity Trading AP, you probably want to create a new virtual
35
+ environment first. For example, if you use a `sh` compatible shell, you can do this:
36
+
37
+ ```sh
38
+ python3 -m venv .venv
39
+ . .venv/bin/activate
40
+ ```
41
+
42
+ Then, just install using `pip`. Replace `VERSION` with the specific version you wish to install:
43
+
44
+ ```sh
45
+ # Choose the version you want to install
46
+ VERSION=0.2.3
47
+ pip install frequenz-client-electricity-trading==$VERSION
48
+ ```
49
+
50
+
51
+ ## Documentation
52
+
53
+ For more information, please visit the [documentation
54
+ website](https://frequenz-floss.github.io/frequenz-client-electricity-trading-python/).
55
+
56
+
57
+ ## Contributing
58
+
59
+ If you want to know how to build this project and contribute to it, please
60
+ check out the [Contributing Guide](CONTRIBUTING.md).
@@ -0,0 +1,24 @@
1
+ # Frequenz Electricity Trading API Client Release Notes
2
+
3
+ ## Summary
4
+
5
+ <!-- Here goes a general summary of what this release is about -->
6
+
7
+ ## Upgrading
8
+
9
+ * Unify Public Trades streaming and listing (to align with the proto changes in v0.5.0)
10
+ * Removed `list_public_trades`
11
+ * Replaced `public_trades_stream` with `receive_public_trades`
12
+ * `receive_public_trades` now supports an optional time range (`start_time`, `end_time`)
13
+ * Update the `frequenz-api-electricity-trading` from >= 0.5.0, < 0.6.0 to >= 0.6.1, < 0.7.0
14
+ * Update repo-config from v0.11.0 to v0.13.0
15
+
16
+ ## New Features
17
+
18
+ * Add the Public Order Book extension to the client
19
+ * Add the `PublicOrder` and `PublicOrderFilter` types
20
+ * Add the `receive_public_order()` endpoint
21
+
22
+ ## Bug Fixes
23
+
24
+ <!-- Here goes notable bug fixes that are worth a special mention or explanation -->