vaex-graphql 0.1.0__py3-none-any.whl → 0.3.0__py3-none-any.whl

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.
vaex/graphql/__init__.py CHANGED
@@ -52,8 +52,8 @@ class DataFrameAccessorGraphQLPandas(DataFrameAccessorGraphQL):
52
52
 
53
53
 
54
54
  def map_to_field(df, name):
55
- dtype = df[name].dtype
56
- if dtype == str:
55
+ dtype = df[name].data_type()
56
+ if vaex.array_types.is_string_type(dtype):
57
57
  return graphene.String
58
58
  elif dtype.kind == "f":
59
59
  return graphene.Float
@@ -121,8 +121,8 @@ class DateTimeCompare(Compare):
121
121
  _neq = graphene.Field(graphene.String)
122
122
 
123
123
  def map_to_comparison(df, name):
124
- dtype = df[name].dtype
125
- if dtype == str:
124
+ dtype = df[name].data_type()
125
+ if vaex.array_types.is_string_type(dtype):
126
126
  return StringCompare
127
127
  elif dtype.kind == "f":
128
128
  return FloatCompare
@@ -326,7 +326,7 @@ def create_query(dfs):
326
326
  fields = {}
327
327
  for name, df in dfs.items():
328
328
  columns = df.get_column_names()
329
- columns = [k for k in columns if df[k].dtype == str or df[k].dtype.kind != 'O']
329
+ columns = [k for k in columns if df.is_string(k) or df[k].dtype.kind != 'O']
330
330
  df = df[columns]
331
331
  Aggregate = create_aggregate(df, [])
332
332
  def closure(df=df, name=name, Aggregate=Aggregate):
vaex/graphql/_version.py CHANGED
@@ -1,2 +1,2 @@
1
- __version_tuple__ = (0, 1, 0)
2
- __version__ = '0.1.0'
1
+ __version_tuple__ = (0, 3, 0)
2
+ __version__ = '0.3.0'
@@ -0,0 +1,23 @@
1
+ Metadata-Version: 2.4
2
+ Name: vaex-graphql
3
+ Version: 0.3.0
4
+ Summary: GraphQL support for accessing vaex DataFrame
5
+ Home-page: https://www.github.com/vaexio/vaex
6
+ Author: Maarten A. Breddels
7
+ Author-email: maartenbreddels@gmail.com
8
+ License: MIT
9
+ Description-Content-Type: text/markdown
10
+ License-File: LICENSE.txt
11
+ Requires-Dist: vaex-core~=4.0
12
+ Requires-Dist: graphene-tornado~=2.5
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: description-content-type
17
+ Dynamic: home-page
18
+ Dynamic: license
19
+ Dynamic: license-file
20
+ Dynamic: requires-dist
21
+ Dynamic: summary
22
+
23
+ GraphQL support for accessing vaex DataFrame
@@ -0,0 +1,10 @@
1
+ vaex/graphql/__init__.py,sha256=DOuE57nuzPIc1lczg4xkywHi55o6GG_cDfkEHZvAEs8,12585
2
+ vaex/graphql/__main__.py,sha256=lzHE_izOPifqRnt_3qCXK1k11NCGWWseArddKk5C3wg,131
3
+ vaex/graphql/_version.py,sha256=G6lL3ckoeKwufZLQ6A72lyqwzrf6uc2EahlJStVL2uc,52
4
+ vaex/graphql/tornado.py,sha256=1ziuzxvlKSr6c2g9GYE8DF55EAa9UdzQp0mCyKRz3bE,656
5
+ vaex_graphql-0.3.0.dist-info/licenses/LICENSE.txt,sha256=Ub-0nSwxfezlH092uDbwZqynm9i5wq353cMYNPy5OqY,1087
6
+ vaex_graphql-0.3.0.dist-info/METADATA,sha256=lI85cwM89BQxZFiAHjRB5QvRwf51TRqXGTeyPUe0kBs,607
7
+ vaex_graphql-0.3.0.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
8
+ vaex_graphql-0.3.0.dist-info/entry_points.txt,sha256=6qgWAs8edFxYPy4IT6b9P5Xg374gMfBMlCaE0NK6S9o,74
9
+ vaex_graphql-0.3.0.dist-info/top_level.txt,sha256=BTcHbKEpfXqVlITrjFEtm95UDejFyYXslGl9YUqTIpc,5
10
+ vaex_graphql-0.3.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.34.2)
2
+ Generator: setuptools (80.10.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,2 @@
1
1
  [vaex.dataframe.accessor]
2
2
  graphql = vaex.graphql:DataFrameAccessorGraphQL
3
-
@@ -1,16 +0,0 @@
1
- Metadata-Version: 2.1
2
- Name: vaex-graphql
3
- Version: 0.1.0
4
- Summary: GraphQL support for accessing vaex DataFrame
5
- Home-page: https://www.github.com/vaexio/vaex
6
- Author: Maarten A. Breddels
7
- Author-email: maartenbreddels@gmail.com
8
- License: MIT
9
- Platform: UNKNOWN
10
- Requires-Dist: vaex-core (<3,>=2.0.0)
11
- Requires-Dist: graphene (<3,>=2.1.8)
12
- Requires-Dist: graphene-tornado (<3,>=2.5.1)
13
-
14
- UNKNOWN
15
-
16
-
@@ -1,10 +0,0 @@
1
- vaex/graphql/__init__.py,sha256=A5UQrs55KYV72wFHgZLASIH0zW0pphqC-BP8jUNyhkk,12524
2
- vaex/graphql/__main__.py,sha256=lzHE_izOPifqRnt_3qCXK1k11NCGWWseArddKk5C3wg,131
3
- vaex/graphql/_version.py,sha256=QSd-saEaK6B-AZOERtExC-RaQxQYyy19y55fjdTgA40,52
4
- vaex/graphql/tornado.py,sha256=1ziuzxvlKSr6c2g9GYE8DF55EAa9UdzQp0mCyKRz3bE,656
5
- vaex_graphql-0.1.0.dist-info/LICENSE.txt,sha256=Ub-0nSwxfezlH092uDbwZqynm9i5wq353cMYNPy5OqY,1087
6
- vaex_graphql-0.1.0.dist-info/METADATA,sha256=zP96iBPmpJJ-rfzxvj6AEGlUMxPimthWMdfDUzQtW8s,386
7
- vaex_graphql-0.1.0.dist-info/WHEEL,sha256=g4nMs7d-Xl9-xC9XovUrsDHGXt-FT0E17Yqo92DEfvY,92
8
- vaex_graphql-0.1.0.dist-info/entry_points.txt,sha256=BIR4jWdAt0fZ43woBFUtVByzcOyoHMX0BKCgkupIH_0,75
9
- vaex_graphql-0.1.0.dist-info/top_level.txt,sha256=BTcHbKEpfXqVlITrjFEtm95UDejFyYXslGl9YUqTIpc,5
10
- vaex_graphql-0.1.0.dist-info/RECORD,,