pyemoncms 0.0.2__tar.gz → 0.0.3__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.
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/PKG-INFO +1 -1
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms/emoncms_client.py +6 -3
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms.egg-info/PKG-INFO +1 -1
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/setup.py +1 -1
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/LICENSE +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/README.md +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms/__init__.py +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms.egg-info/SOURCES.txt +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms.egg-info/dependency_links.txt +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms.egg-info/requires.txt +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyemoncms.egg-info/top_level.txt +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/pyproject.toml +0 -0
- {pyemoncms-0.0.2 → pyemoncms-0.0.3}/setup.cfg +0 -0
|
@@ -83,7 +83,10 @@ class EmoncmsClient:
|
|
|
83
83
|
return feed_data[MESSAGE_KEY]
|
|
84
84
|
return None
|
|
85
85
|
|
|
86
|
-
async def async_get_feed_fields(self, feed_id: int) -> list[str, Any]:
|
|
87
|
-
"""Get all feed
|
|
86
|
+
async def async_get_feed_fields(self, feed_id: int) -> list[str, Any] | None:
|
|
87
|
+
"""Get all fields for a single feed."""
|
|
88
88
|
params = {"apikey": self.api_key, "id": feed_id}
|
|
89
|
-
|
|
89
|
+
feed_data = await self.async_request("/feed/aget.json", params=params)
|
|
90
|
+
if feed_data[SUCCESS_KEY]:
|
|
91
|
+
return feed_data[MESSAGE_KEY]
|
|
92
|
+
return None
|
|
@@ -6,7 +6,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
6
6
|
|
|
7
7
|
setuptools.setup(
|
|
8
8
|
name="pyemoncms",
|
|
9
|
-
version="0.0.
|
|
9
|
+
version="0.0.3",
|
|
10
10
|
author="Alexandre CUER",
|
|
11
11
|
author_email="alexandre.cuer@wanadoo.fr",
|
|
12
12
|
description="A python library to interrogate emoncms API",
|
|
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
|