micromegas 0.1.0__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.
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.1
2
+ Name: micromegas
3
+ Version: 0.1.0
4
+ Summary:
5
+ Author: Marc-Antoine Desroches
6
+ Author-email: madesroches@gmail.com
7
+ Requires-Python: >=3.10,<4.0
8
+ Classifier: Programming Language :: Python :: 3
9
+ Classifier: Programming Language :: Python :: 3.10
10
+ Classifier: Programming Language :: Python :: 3.11
11
+ Classifier: Programming Language :: Python :: 3.12
12
+ Requires-Dist: cbor2 (>=5.6.3,<6.0.0)
13
+ Requires-Dist: pandas (>=2.2.2,<3.0.0)
14
+ Requires-Dist: pyarrow (>=16.0.0,<17.0.0)
15
+ Requires-Dist: requests (>=2.31.0,<3.0.0)
16
+ Requires-Dist: tabulate (>=0.9.0,<0.10.0)
17
+ Description-Content-Type: text/markdown
18
+
19
+ # Micromegas
20
+
21
+ Python analytics client for https://github.com/madesroches/micromegas/
22
+
@@ -0,0 +1,3 @@
1
+ # Micromegas
2
+
3
+ Python analytics client for https://github.com/madesroches/micromegas/
@@ -0,0 +1 @@
1
+ from . import request
@@ -0,0 +1,18 @@
1
+ import cbor2
2
+ import io
3
+ import pyarrow.parquet as pq
4
+ import requests
5
+
6
+ def request(url, args):
7
+ response = requests.post(
8
+ url,
9
+ data=cbor2.dumps(args),
10
+ )
11
+ if response.status_code != 200:
12
+ raise Exception(
13
+ "http request url={2} failed with code={0} text={1}".format(
14
+ response.status_code, response.text, url
15
+ )
16
+ )
17
+ table = pq.read_table(io.BytesIO(response.content))
18
+ return table.to_pandas()
@@ -0,0 +1,22 @@
1
+ [tool.poetry]
2
+ name = "micromegas"
3
+ version = "0.1.0"
4
+ description = ""
5
+ authors = ["Marc-Antoine Desroches <madesroches@gmail.com>"]
6
+ readme = "README.md"
7
+
8
+ [tool.poetry.dependencies]
9
+ python = "^3.10"
10
+ cbor2 = "^5.6.3"
11
+ pyarrow = "^16.0.0"
12
+ requests = "^2.31.0"
13
+ pandas = "^2.2.2"
14
+ tabulate = "^0.9.0"
15
+
16
+
17
+ [tool.poetry.group.test.dependencies]
18
+ pytest = "^8.2.0"
19
+
20
+ [build-system]
21
+ requires = ["poetry-core"]
22
+ build-backend = "poetry.core.masonry.api"