Name | jsoniq JSON |
Version |
0.1.0a12
JSON |
| download |
home_page | None |
Summary | Python edition of RumbleDB, a JSONiq engine |
upload_time | 2025-07-21 11:27:07 |
maintainer | None |
docs_url | None |
author | Abishek Ramdas |
requires_python | >=3.11 |
license | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
|
keywords |
jsoniq
spark
apache-spark
dataframe
heterogeneous
json
query
|
VCS |
 |
bugtrack_url |
|
requirements |
pyspark
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# RumbleDB for Python
by Abishek Ramdas and Ghislain Fourny
This is the Python edition of [RumbleDB](https://rumbledb.org/), which brings [JSONiq](https://www.jsoniq.org) to the world of Python.
JSONiq is a language considerably more powerful than SQL as it can process [messy, heterogeneous datasets](https://arxiv.org/abs/1910.11582), from kilobytes to Petabytes, with very little coding effort.
Spark aficionados can also pass DataFrames to JSONiq queries and take back DataFrames. This gives them an environment in which both Spark SQL and JSONiq co-exist to manipulate the data.
The Python edition of RumbleDB is currently a prototype (alpha) and probably unstable. We welcome bug reports and feedback.
## About RumbleDB
RumbleDB is a JSONiq engine that works both with very small amounts of data and very large amounts of data.
It works with JSON, CSV, text, Parquet, etc (and soon XML).
It works on your laptop as well as on any Spark cluster (AWS, company clusters, etc).
It automatically detects and switches between execution modes in a way transparent to the user, bringing the convenience of data independence to the world of messy data.
It is an academic project, natively in Java, carried out at ETH Zurich by many students over more than 8 years: Stefan Irimescu, Renato Marroquin, Rodrigo Bruno, Falko Noé, Ioana Stefan, Andrea Rinaldi, Stevan Mihajlovic, Mario Arduini, Can Berker Çıkış, Elwin Stephan, David Dao, Zirun Wang, Ingo Müller, Dan-Ovidiu Graur, Thomas Zhou, Olivier Goerens, Alexandru Meterez, Pierre Motard, Remo Röthlisberger, Dominik Bruggisser, David Loughlin, David Buzatu, Marco Schöb, Maciej Byczko, Matteo Agnoletto, Dwij Dixit.
It is free and open source, under an Apache 2.0 license, which can also be used commercially (but on an as-is basis with no guarantee).
## High-level information on the library
A RumbleSession is a wrapper around a SparkSession that additionally makes sure the RumbleDB environment is in scope.
JSONiq queries are invoked with rumble.jsoniq() in a way similar to the way Spark SQL queries are invoked with spark.sql().
JSONiq variables can be bound to lists of JSON values (str, int, float, True, False, None, dict, list) or to Pyspark DataFrames. A JSONiq query can use as many variables as needed (for example, it can join between different collections).
It will later also be possible to read tables registered in the Hive metastore, similar to spark.sql(). Alternatively, the JSONiq query can also read many files of many different formats from many places (local drive, HTTP, S3, HDFS, ...) directly with simple builtin function calls such as json-lines(), text-file(), parquet-file(), csv-file(), etc. See [RumbleDB's documentation](https://rumble.readthedocs.io/en/latest/).
The resulting sequence of items can be retrieved as a list of JSON values, as a Pyspark DataFrame, or, for advanced users, as an RDD or with a streaming iteration over the items using the [RumbleDB Item API](https://github.com/RumbleDB/rumble/blob/master/src/main/java/org/rumbledb/api/Item.java).
It is also possible to write the sequence of items to the local disk, to HDFS, to S3, etc in a way similar to how DataFrames are written back by Pyspark.
The design goal is that it is possible to chain DataFrames between JSONiq and Spark SQL queries seamlessly. For example, JSONiq can be used to clean up very messy data and turn it into a clean DataFrame, which can then be processed with Spark SQL, spark.ml, etc.
Any feedback or error reports are very welcome.
## Type mapping
When passing Python values to JSONiq or getting them from a JSONiq queries, the mapping is as follows:
| Python | JSONiq |
|-------|-------|
|dict|object|
|list|array|
|str|string|
|int|integer|
|bool|boolean|
|None|null|
Furthermore, other JSONiq types will be mapped to string literals. Users who want to preserve JSONiq types can use the Item API instead.
## Installation
Install with
```
pip install jsoniq
```
*Important note*: since the jsoniq package depends on pyspark 4, Java 17 or Java 21 is a requirement. If another version of Java is installed, the execution of a Python program attempting to create a RumbleSession will lead to an error message on stderr that contains explanations.
## Sample code
We will make more documentation available as we go. In the meantime, you will find a sample, commented code below that should just run
after installing the library.
You can directly copy paste the code below to a Python file and execute it with Python.
```
from jsoniq import RumbleSession
# The syntax to start a session is similar to that of Spark.
# A RumbleSession is a SparkSession that additionally knows about RumbleDB.
# All attributes and methods of SparkSession are also available on RumbleSession.
rumble = RumbleSession.builder.getOrCreate();
# Just to improve readability when invoking Spark methods
# (such as spark.sql() or spark.createDataFrame()).
spark = rumble
##############################
###### Your first query ######
##############################
# Even though RumbleDB uses Spark internally, it can be used without any knowledge of Spark.
# Executing a query is done with rumble.jsoniq() like so. A query returns a sequence
# of items, here the sequence with just the integer item 2.
items = rumble.jsoniq('1+1')
# A sequence of items can simply be converted to a list of Python/JSON values with json().
# Since there is only one value in the sequence output by this query,
# we get a singleton list with the integer 2.
# Generally though, the results may contain zero, one, two, or more items.
python_list = items.json()
print(python_list)
############################################
##### More complex, standalone queries #####
############################################
# JSONiq is very powerful and expressive. You will find tutorials as well as a reference on JSONiq.org.
seq = rumble.jsoniq("""
let $stores :=
[
{ "store number" : 1, "state" : "MA" },
{ "store number" : 2, "state" : "MA" },
{ "store number" : 3, "state" : "CA" },
{ "store number" : 4, "state" : "CA" }
]
let $sales := [
{ "product" : "broiler", "store number" : 1, "quantity" : 20 },
{ "product" : "toaster", "store number" : 2, "quantity" : 100 },
{ "product" : "toaster", "store number" : 2, "quantity" : 50 },
{ "product" : "toaster", "store number" : 3, "quantity" : 50 },
{ "product" : "blender", "store number" : 3, "quantity" : 100 },
{ "product" : "blender", "store number" : 3, "quantity" : 150 },
{ "product" : "socks", "store number" : 1, "quantity" : 500 },
{ "product" : "socks", "store number" : 2, "quantity" : 10 },
{ "product" : "shirt", "store number" : 3, "quantity" : 10 }
]
let $join :=
for $store in $stores[], $sale in $sales[]
where $store."store number" = $sale."store number"
return {
"nb" : $store."store number",
"state" : $store.state,
"sold" : $sale.product
}
return [$join]
""");
print(seq.json());
seq = rumble.jsoniq("""
for $product in json-lines("http://rumbledb.org/samples/products-small.json", 10)
group by $store-number := $product.store-number
order by $store-number ascending
return {
"store" : $store-number,
"products" : [ distinct-values($product.product) ]
}
""");
print(seq.json());
############################################################
###### Binding JSONiq variables to Python values ###########
############################################################
# It is possible to bind a JSONiq variable to a list of native Python values
# and then use it in a query.
# JSONiq, variables are bound to sequences of items, just like the results of JSONiq
# queries are sequence of items.
# A Python list will be seamlessly converted to a sequence of items by the library.
# Currently we only support strs, ints, floats, booleans, None, lists, and dicts.
# But if you need more (like date, bytes, etc) we will add them without any problem.
# JSONiq has a rich type system.
rumble.bind('$c', [1,2,3,4, 5, 6])
print(rumble.jsoniq("""
for $v in $c
let $parity := $v mod 2
group by $parity
return { switch($parity)
case 0 return "even"
case 1 return "odd"
default return "?" : $v
}
""").json())
rumble.bind('$c', [[1,2,3],[4,5,6]])
print(rumble.jsoniq("""
for $i in $c
return [
for $j in $i
return { "foo" : $j }
]
""").json())
rumble.bind('$c', [{"foo":[1,2,3]},{"foo":[4,{"bar":[1,False, None]},6]}])
print(rumble.jsoniq('{ "results" : $c.foo[[2]] }').json())
# It is possible to bind only one value. The it must be provided as a singleton list.
# This is because in JSONiq, an item is the same a sequence of one item.
rumble.bind('$c', [42])
print(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())
# For convenience and code readability, you can also use bindOne().
rumble.bindOne('$c', 42)
print(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())
################################################
##### Using Pyspark DataFrames with JSONiq #####
################################################
# The power users can also interface our library with pyspark DataFrames.
# JSONiq sequences of items can have billions of items, and our library supports this
# out of the box: it can also run on clusters on AWS Elastic MapReduce for example.
# But your laptop is just fine, too: it will spread the computations on your cores.
# You can bind a DataFrame to a JSONiq variable. JSONiq will recognize this
# DataFrame as a sequence of object items.
# Create a data frame also similar to Spark (but using the rumble object).
data = [("Alice", 30), ("Bob", 25), ("Charlie", 35)];
columns = ["Name", "Age"];
df = spark.createDataFrame(data, columns);
# This is how to bind a JSONiq variable to a dataframe. You can bind as many variables as you want.
rumble.bind('$a', df);
# This is how to run a query. This is similar to spark.sql().
# Since variable $a was bound to a DataFrame, it is automatically declared as an external variable
# and can be used in the query. In JSONiq, it is logically a sequence of objects.
res = rumble.jsoniq('$a.Name');
# There are several ways to collect the outputs, depending on the user needs but also
# on the query supplied.
# This returns a list containing one or several of "DataFrame", "RDD", "PUL", "Local"
# If DataFrame is in the list, df() can be invoked.
# If RDD is in the list, rdd() can be invoked.
# If Local is the list, items() or json() can be invokved, as well as the local iterator API.
modes = res.availableOutputs();
for mode in modes:
print(mode)
#########################################################
###### Manipulating DataFrames with SQL and JSONiq ######
#########################################################
# If the output of the JSONiq query is structured (i.e., RumbleDB was able to detect a schema),
# then we can extract a regular data frame that can be further processed with spark.sql() or rumble.jsoniq().
df = res.df();
df.show();
# We are continuously working on the detection of schemas and RumbleDB will get better at it with them.
# JSONiq is a very powerful language and can also produce heterogeneous output "by design". Then you need
# to use rdd() instead of df(), or to collect the list of JSON values (see further down). Remember
# that availableOutputs() tells you what is at your disposal.
# A DataFrame output by JSONiq can be reused as input to a Spark SQL query.
# (Remember that rumble is a wrapper around a SparkSession object, so you can use rumble.sql() just like spark.sql())
df.createTempView("myview")
df2 = spark.sql("SELECT * FROM myview").toDF("name");
df2.show();
# A DataFrame output by Spark SQL can be reused as input to a JSONiq query.
rumble.bind('$b', df2);
seq2 = rumble.jsoniq("for $i in 1 to 5 return $b");
df3 = seq2.df();
df3.show();
# And a DataFrame output by JSONiq can be reused as input to another JSONiq query.
rumble.bind('$b', df3);
seq3 = rumble.jsoniq("$b[position() lt 3]");
df4 = seq3.df();
df4.show();
#########################
##### Local access ######
#########################
# This materializes the rows as items.
# The items are accessed with the RumbleDB Item API.
list = res.items();
for result in list:
print(result.getStringValue())
# This streams through the items one by one
res.open();
while (res.hasNext()):
print(res.next().getStringValue());
res.close();
################################################################################################################
###### Native Python/JSON Access for bypassing the Item API (but losing on the richer JSONiq type system) ######
################################################################################################################
# This method directly gets the result as JSON (dict, list, strings, ints, etc).
jlist = res.json();
for str in jlist:
print(str);
# This streams through the JSON values one by one.
res.open();
while(res.hasNext()):
print(res.nextJSON());
res.close();
# This gets an RDD of JSON values that can be processed by Python
rdd = res.rdd();
print(rdd.count());
for str in rdd.take(10):
print(str);
###################################################
###### Write back to the disk (or data lake) ######
###################################################
# It is also possible to write the output to a file locally or on a cluster. The API is similar to that of Spark dataframes.
# Note that it creates a directory and stores the (potentially very large) output in a sharded directory.
# RumbleDB was already tested with up to 64 AWS machines and 100s of TBs of data.
# Of course the examples below are so small that it makes more sense to process the results locally with Python,
# but this shows how GBs or TBs of data obtained from JSONiq can be written back to disk.
seq = rumble.jsoniq("$a.Name");
seq.write().mode("overwrite").json("outputjson");
seq.write().mode("overwrite").parquet("outputparquet");
seq = rumble.jsoniq("1+1");
seq.write().mode("overwrite").text("outputtext");
```
# How to learn JSONiq, and more query examples
Even more queries can be found [here](https://colab.research.google.com/github/RumbleDB/rumble/blob/master/RumbleSandbox.ipynb) and you can look at the [JSONiq documentation](https://www.jsoniq.org) and tutorials.
# Last updates
## Version 0.1.0 alpha 12
- Allow to bind JSONiq variables to Python values (mapping Python lists to sequences of items). This makes it possible to manipulate Python values directly with JSONiq and even without any knowledge of Spark at all.
- renamed bindDataFrameAsVariable() to bind(), which can be used both with DataFrames and Python lists.
- add bindOne() for binding a single value to a JSONiq variable.
- wrapping df() in a Pyspark DataFrame to make sure it can be used with pyspark DataFrame transformations.
## Version 0.1.0 alpha 11
- Fix an issue when feeding a DataFrame output by rumble.jsoniq() back to a new JSONiq query (as a variable).
## Version 0.1.0 alpha 10
- Add an explicit explanation on stderr if the Java version is not properly set, together with hints.
## Version 0.1.0 alpha 9
- Upgrade to Spark 4, which aligns the internal scala versions to 2.13 and should remove some errors. Requires Java 17 or 21.
## Version 0.1.0 alpha 8
- Ability to write back a sequence of items to local disk, HDFS, S3... in various formats (JSON, CSV, Parquet...).
- Automatically declare external variables bound as DataFrames to improve userfriendliness.
- Simplified the function names to make them more intuitive (json(), items(), df(), rdd(), etc).
Raw data
{
"_id": null,
"home_page": null,
"name": "jsoniq",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.11",
"maintainer_email": null,
"keywords": "jsoniq, spark, apache-spark, dataframe, heterogeneous, json, query",
"author": "Abishek Ramdas",
"author_email": "Ghislain Fourny <ghislain.fourny@inf.ethz.ch>",
"download_url": "https://files.pythonhosted.org/packages/42/cd/38e5acb25c10d4a295076337a8e79597d90a84c891263463dc75ee196c84/jsoniq-0.1.0a12.tar.gz",
"platform": null,
"description": "# RumbleDB for Python\n\nby Abishek Ramdas and Ghislain Fourny\n\nThis is the Python edition of [RumbleDB](https://rumbledb.org/), which brings [JSONiq](https://www.jsoniq.org) to the world of Python.\n\nJSONiq is a language considerably more powerful than SQL as it can process [messy, heterogeneous datasets](https://arxiv.org/abs/1910.11582), from kilobytes to Petabytes, with very little coding effort.\n\nSpark aficionados can also pass DataFrames to JSONiq queries and take back DataFrames. This gives them an environment in which both Spark SQL and JSONiq co-exist to manipulate the data. \n\nThe Python edition of RumbleDB is currently a prototype (alpha) and probably unstable. We welcome bug reports and feedback.\n\n## About RumbleDB\n\nRumbleDB is a JSONiq engine that works both with very small amounts of data and very large amounts of data.\nIt works with JSON, CSV, text, Parquet, etc (and soon XML).\nIt works on your laptop as well as on any Spark cluster (AWS, company clusters, etc).\n\nIt automatically detects and switches between execution modes in a way transparent to the user, bringing the convenience of data independence to the world of messy data.\n\nIt is an academic project, natively in Java, carried out at ETH Zurich by many students over more than 8 years: Stefan Irimescu, Renato Marroquin, Rodrigo Bruno, Falko No\u00e9, Ioana Stefan, Andrea Rinaldi, Stevan Mihajlovic, Mario Arduini, Can Berker \u00c7\u0131k\u0131\u015f, Elwin Stephan, David Dao, Zirun Wang, Ingo M\u00fcller, Dan-Ovidiu Graur, Thomas Zhou, Olivier Goerens, Alexandru Meterez, Pierre Motard, Remo R\u00f6thlisberger, Dominik Bruggisser, David Loughlin, David Buzatu, Marco Sch\u00f6b, Maciej Byczko, Matteo Agnoletto, Dwij Dixit.\n\nIt is free and open source, under an Apache 2.0 license, which can also be used commercially (but on an as-is basis with no guarantee).\n\n## High-level information on the library\n\nA RumbleSession is a wrapper around a SparkSession that additionally makes sure the RumbleDB environment is in scope.\n\nJSONiq queries are invoked with rumble.jsoniq() in a way similar to the way Spark SQL queries are invoked with spark.sql().\n\nJSONiq variables can be bound to lists of JSON values (str, int, float, True, False, None, dict, list) or to Pyspark DataFrames. A JSONiq query can use as many variables as needed (for example, it can join between different collections).\n\nIt will later also be possible to read tables registered in the Hive metastore, similar to spark.sql(). Alternatively, the JSONiq query can also read many files of many different formats from many places (local drive, HTTP, S3, HDFS, ...) directly with simple builtin function calls such as json-lines(), text-file(), parquet-file(), csv-file(), etc. See [RumbleDB's documentation](https://rumble.readthedocs.io/en/latest/).\n\nThe resulting sequence of items can be retrieved as a list of JSON values, as a Pyspark DataFrame, or, for advanced users, as an RDD or with a streaming iteration over the items using the [RumbleDB Item API](https://github.com/RumbleDB/rumble/blob/master/src/main/java/org/rumbledb/api/Item.java).\n\nIt is also possible to write the sequence of items to the local disk, to HDFS, to S3, etc in a way similar to how DataFrames are written back by Pyspark.\n\nThe design goal is that it is possible to chain DataFrames between JSONiq and Spark SQL queries seamlessly. For example, JSONiq can be used to clean up very messy data and turn it into a clean DataFrame, which can then be processed with Spark SQL, spark.ml, etc.\n\nAny feedback or error reports are very welcome.\n\n## Type mapping\n\nWhen passing Python values to JSONiq or getting them from a JSONiq queries, the mapping is as follows: \n\n| Python | JSONiq |\n|-------|-------|\n|dict|object|\n|list|array|\n|str|string|\n|int|integer|\n|bool|boolean|\n|None|null|\n\nFurthermore, other JSONiq types will be mapped to string literals. Users who want to preserve JSONiq types can use the Item API instead.\n\n## Installation\n\nInstall with\n```\npip install jsoniq\n```\n\n*Important note*: since the jsoniq package depends on pyspark 4, Java 17 or Java 21 is a requirement. If another version of Java is installed, the execution of a Python program attempting to create a RumbleSession will lead to an error message on stderr that contains explanations.\n\n## Sample code\n\nWe will make more documentation available as we go. In the meantime, you will find a sample, commented code below that should just run\nafter installing the library.\n\nYou can directly copy paste the code below to a Python file and execute it with Python.\n\n```\nfrom jsoniq import RumbleSession\n\n# The syntax to start a session is similar to that of Spark.\n# A RumbleSession is a SparkSession that additionally knows about RumbleDB.\n# All attributes and methods of SparkSession are also available on RumbleSession. \n\nrumble = RumbleSession.builder.getOrCreate();\n\n# Just to improve readability when invoking Spark methods\n# (such as spark.sql() or spark.createDataFrame()).\nspark = rumble\n\n##############################\n###### Your first query ######\n##############################\n\n# Even though RumbleDB uses Spark internally, it can be used without any knowledge of Spark.\n\n# Executing a query is done with rumble.jsoniq() like so. A query returns a sequence\n# of items, here the sequence with just the integer item 2.\nitems = rumble.jsoniq('1+1')\n\n# A sequence of items can simply be converted to a list of Python/JSON values with json().\n# Since there is only one value in the sequence output by this query,\n# we get a singleton list with the integer 2.\n# Generally though, the results may contain zero, one, two, or more items.\npython_list = items.json()\nprint(python_list)\n\n############################################\n##### More complex, standalone queries #####\n############################################\n\n# JSONiq is very powerful and expressive. You will find tutorials as well as a reference on JSONiq.org.\n\nseq = rumble.jsoniq(\"\"\"\n\nlet $stores :=\n[\n { \"store number\" : 1, \"state\" : \"MA\" },\n { \"store number\" : 2, \"state\" : \"MA\" },\n { \"store number\" : 3, \"state\" : \"CA\" },\n { \"store number\" : 4, \"state\" : \"CA\" }\n]\nlet $sales := [\n { \"product\" : \"broiler\", \"store number\" : 1, \"quantity\" : 20 },\n { \"product\" : \"toaster\", \"store number\" : 2, \"quantity\" : 100 },\n { \"product\" : \"toaster\", \"store number\" : 2, \"quantity\" : 50 },\n { \"product\" : \"toaster\", \"store number\" : 3, \"quantity\" : 50 },\n { \"product\" : \"blender\", \"store number\" : 3, \"quantity\" : 100 },\n { \"product\" : \"blender\", \"store number\" : 3, \"quantity\" : 150 },\n { \"product\" : \"socks\", \"store number\" : 1, \"quantity\" : 500 },\n { \"product\" : \"socks\", \"store number\" : 2, \"quantity\" : 10 },\n { \"product\" : \"shirt\", \"store number\" : 3, \"quantity\" : 10 }\n]\nlet $join :=\n for $store in $stores[], $sale in $sales[]\n where $store.\"store number\" = $sale.\"store number\"\n return {\n \"nb\" : $store.\"store number\",\n \"state\" : $store.state,\n \"sold\" : $sale.product\n }\nreturn [$join]\n\"\"\");\n\nprint(seq.json());\n\nseq = rumble.jsoniq(\"\"\"\nfor $product in json-lines(\"http://rumbledb.org/samples/products-small.json\", 10)\ngroup by $store-number := $product.store-number\norder by $store-number ascending\nreturn {\n \"store\" : $store-number,\n \"products\" : [ distinct-values($product.product) ]\n}\n\"\"\");\nprint(seq.json());\n\n############################################################\n###### Binding JSONiq variables to Python values ###########\n############################################################\n\n# It is possible to bind a JSONiq variable to a list of native Python values\n# and then use it in a query.\n# JSONiq, variables are bound to sequences of items, just like the results of JSONiq\n# queries are sequence of items.\n# A Python list will be seamlessly converted to a sequence of items by the library.\n# Currently we only support strs, ints, floats, booleans, None, lists, and dicts.\n# But if you need more (like date, bytes, etc) we will add them without any problem.\n# JSONiq has a rich type system.\n \nrumble.bind('$c', [1,2,3,4, 5, 6])\nprint(rumble.jsoniq(\"\"\"\nfor $v in $c\nlet $parity := $v mod 2\ngroup by $parity\nreturn { switch($parity)\n case 0 return \"even\"\n case 1 return \"odd\"\n default return \"?\" : $v\n}\n\"\"\").json())\n\nrumble.bind('$c', [[1,2,3],[4,5,6]])\nprint(rumble.jsoniq(\"\"\"\nfor $i in $c\nreturn [\n for $j in $i\n return { \"foo\" : $j }\n]\n\"\"\").json())\n\nrumble.bind('$c', [{\"foo\":[1,2,3]},{\"foo\":[4,{\"bar\":[1,False, None]},6]}])\nprint(rumble.jsoniq('{ \"results\" : $c.foo[[2]] }').json())\n\n# It is possible to bind only one value. The it must be provided as a singleton list.\n# This is because in JSONiq, an item is the same a sequence of one item.\nrumble.bind('$c', [42])\nprint(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())\n\n# For convenience and code readability, you can also use bindOne().\nrumble.bindOne('$c', 42)\nprint(rumble.jsoniq('for $i in 1 to $c return $i*$i').json())\n\n\n################################################\n##### Using Pyspark DataFrames with JSONiq #####\n################################################\n\n# The power users can also interface our library with pyspark DataFrames.\n# JSONiq sequences of items can have billions of items, and our library supports this\n# out of the box: it can also run on clusters on AWS Elastic MapReduce for example.\n# But your laptop is just fine, too: it will spread the computations on your cores.\n# You can bind a DataFrame to a JSONiq variable. JSONiq will recognize this\n# DataFrame as a sequence of object items.\n\n# Create a data frame also similar to Spark (but using the rumble object).\ndata = [(\"Alice\", 30), (\"Bob\", 25), (\"Charlie\", 35)];\ncolumns = [\"Name\", \"Age\"];\ndf = spark.createDataFrame(data, columns);\n\n# This is how to bind a JSONiq variable to a dataframe. You can bind as many variables as you want.\nrumble.bind('$a', df);\n\n# This is how to run a query. This is similar to spark.sql().\n# Since variable $a was bound to a DataFrame, it is automatically declared as an external variable\n# and can be used in the query. In JSONiq, it is logically a sequence of objects.\nres = rumble.jsoniq('$a.Name');\n\n# There are several ways to collect the outputs, depending on the user needs but also\n# on the query supplied.\n# This returns a list containing one or several of \"DataFrame\", \"RDD\", \"PUL\", \"Local\"\n# If DataFrame is in the list, df() can be invoked.\n# If RDD is in the list, rdd() can be invoked.\n# If Local is the list, items() or json() can be invokved, as well as the local iterator API.\nmodes = res.availableOutputs();\nfor mode in modes:\n print(mode)\n\n#########################################################\n###### Manipulating DataFrames with SQL and JSONiq ######\n#########################################################\n\n# If the output of the JSONiq query is structured (i.e., RumbleDB was able to detect a schema),\n# then we can extract a regular data frame that can be further processed with spark.sql() or rumble.jsoniq().\ndf = res.df();\ndf.show();\n\n# We are continuously working on the detection of schemas and RumbleDB will get better at it with them.\n# JSONiq is a very powerful language and can also produce heterogeneous output \"by design\". Then you need\n# to use rdd() instead of df(), or to collect the list of JSON values (see further down). Remember\n# that availableOutputs() tells you what is at your disposal.\n\n# A DataFrame output by JSONiq can be reused as input to a Spark SQL query.\n# (Remember that rumble is a wrapper around a SparkSession object, so you can use rumble.sql() just like spark.sql())\ndf.createTempView(\"myview\")\ndf2 = spark.sql(\"SELECT * FROM myview\").toDF(\"name\");\ndf2.show();\n\n# A DataFrame output by Spark SQL can be reused as input to a JSONiq query.\nrumble.bind('$b', df2);\nseq2 = rumble.jsoniq(\"for $i in 1 to 5 return $b\");\ndf3 = seq2.df();\ndf3.show();\n\n# And a DataFrame output by JSONiq can be reused as input to another JSONiq query.\nrumble.bind('$b', df3);\nseq3 = rumble.jsoniq(\"$b[position() lt 3]\");\ndf4 = seq3.df();\ndf4.show();\n\n#########################\n##### Local access ######\n#########################\n\n# This materializes the rows as items.\n# The items are accessed with the RumbleDB Item API.\nlist = res.items();\nfor result in list:\n print(result.getStringValue())\n\n# This streams through the items one by one\nres.open();\nwhile (res.hasNext()):\n print(res.next().getStringValue());\nres.close();\n\n################################################################################################################\n###### Native Python/JSON Access for bypassing the Item API (but losing on the richer JSONiq type system) ######\n################################################################################################################\n\n# This method directly gets the result as JSON (dict, list, strings, ints, etc).\njlist = res.json();\nfor str in jlist:\n print(str);\n\n# This streams through the JSON values one by one.\nres.open();\nwhile(res.hasNext()):\n print(res.nextJSON());\nres.close();\n\n# This gets an RDD of JSON values that can be processed by Python\nrdd = res.rdd();\nprint(rdd.count());\nfor str in rdd.take(10):\n print(str);\n\n###################################################\n###### Write back to the disk (or data lake) ######\n###################################################\n\n# It is also possible to write the output to a file locally or on a cluster. The API is similar to that of Spark dataframes.\n# Note that it creates a directory and stores the (potentially very large) output in a sharded directory.\n# RumbleDB was already tested with up to 64 AWS machines and 100s of TBs of data.\n# Of course the examples below are so small that it makes more sense to process the results locally with Python,\n# but this shows how GBs or TBs of data obtained from JSONiq can be written back to disk.\nseq = rumble.jsoniq(\"$a.Name\");\nseq.write().mode(\"overwrite\").json(\"outputjson\");\nseq.write().mode(\"overwrite\").parquet(\"outputparquet\");\n\nseq = rumble.jsoniq(\"1+1\");\nseq.write().mode(\"overwrite\").text(\"outputtext\");\n\n```\n# How to learn JSONiq, and more query examples\n\nEven more queries can be found [here](https://colab.research.google.com/github/RumbleDB/rumble/blob/master/RumbleSandbox.ipynb) and you can look at the [JSONiq documentation](https://www.jsoniq.org) and tutorials.\n\n# Last updates\n\n## Version 0.1.0 alpha 12\n- Allow to bind JSONiq variables to Python values (mapping Python lists to sequences of items). This makes it possible to manipulate Python values directly with JSONiq and even without any knowledge of Spark at all.\n- renamed bindDataFrameAsVariable() to bind(), which can be used both with DataFrames and Python lists.\n- add bindOne() for binding a single value to a JSONiq variable.\n- wrapping df() in a Pyspark DataFrame to make sure it can be used with pyspark DataFrame transformations.\n\n## Version 0.1.0 alpha 11\n- Fix an issue when feeding a DataFrame output by rumble.jsoniq() back to a new JSONiq query (as a variable).\n\n## Version 0.1.0 alpha 10\n- Add an explicit explanation on stderr if the Java version is not properly set, together with hints.\n\n## Version 0.1.0 alpha 9\n- Upgrade to Spark 4, which aligns the internal scala versions to 2.13 and should remove some errors. Requires Java 17 or 21.\n\n## Version 0.1.0 alpha 8\n- Ability to write back a sequence of items to local disk, HDFS, S3... in various formats (JSON, CSV, Parquet...).\n- Automatically declare external variables bound as DataFrames to improve userfriendliness.\n- Simplified the function names to make them more intuitive (json(), items(), df(), rdd(), etc).\n\n",
"bugtrack_url": null,
"license": "Apache License\n Version 2.0, January 2004\n http://www.apache.org/licenses/\n \n TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n \n 1. Definitions.\n \n \"License\" shall mean the terms and conditions for use, reproduction,\n and distribution as defined by Sections 1 through 9 of this document.\n \n \"Licensor\" shall mean the copyright owner or entity authorized by\n the copyright owner that is granting the License.\n \n \"Legal Entity\" shall mean the union of the acting entity and all\n other entities that control, are controlled by, or are under common\n control with that entity. For the purposes of this definition,\n \"control\" means (i) the power, direct or indirect, to cause the\n direction or management of such entity, whether by contract or\n otherwise, or (ii) ownership of fifty percent (50%) or more of the\n outstanding shares, or (iii) beneficial ownership of such entity.\n \n \"You\" (or \"Your\") shall mean an individual or Legal Entity\n exercising permissions granted by this License.\n \n \"Source\" form shall mean the preferred form for making modifications,\n including but not limited to software source code, documentation\n source, and configuration files.\n \n \"Object\" form shall mean any form resulting from mechanical\n transformation or translation of a Source form, including but\n not limited to compiled object code, generated documentation,\n and conversions to other media types.\n \n \"Work\" shall mean the work of authorship, whether in Source or\n Object form, made available under the License, as indicated by a\n copyright notice that is included in or attached to the work\n (an example is provided in the Appendix below).\n \n \"Derivative Works\" shall mean any work, whether in Source or Object\n form, that is based on (or derived from) the Work and for which the\n editorial revisions, annotations, elaborations, or other modifications\n represent, as a whole, an original work of authorship. For the purposes\n of this License, Derivative Works shall not include works that remain\n separable from, or merely link (or bind by name) to the interfaces of,\n the Work and Derivative Works thereof.\n \n \"Contribution\" shall mean any work of authorship, including\n the original version of the Work and any modifications or additions\n to that Work or Derivative Works thereof, that is intentionally\n submitted to Licensor for inclusion in the Work by the copyright owner\n or by an individual or Legal Entity authorized to submit on behalf of\n the copyright owner. For the purposes of this definition, \"submitted\"\n means any form of electronic, verbal, or written communication sent\n to the Licensor or its representatives, including but not limited to\n communication on electronic mailing lists, source code control systems,\n and issue tracking systems that are managed by, or on behalf of, the\n Licensor for the purpose of discussing and improving the Work, but\n excluding communication that is conspicuously marked or otherwise\n designated in writing by the copyright owner as \"Not a Contribution.\"\n \n \"Contributor\" shall mean Licensor and any individual or Legal Entity\n on behalf of whom a Contribution has been received by Licensor and\n subsequently incorporated within the Work.\n \n 2. Grant of Copyright License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n copyright license to reproduce, prepare Derivative Works of,\n publicly display, publicly perform, sublicense, and distribute the\n Work and such Derivative Works in Source or Object form.\n \n 3. Grant of Patent License. Subject to the terms and conditions of\n this License, each Contributor hereby grants to You a perpetual,\n worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n (except as stated in this section) patent license to make, have made,\n use, offer to sell, sell, import, and otherwise transfer the Work,\n where such license applies only to those patent claims licensable\n by such Contributor that are necessarily infringed by their\n Contribution(s) alone or by combination of their Contribution(s)\n with the Work to which such Contribution(s) was submitted. If You\n institute patent litigation against any entity (including a\n cross-claim or counterclaim in a lawsuit) alleging that the Work\n or a Contribution incorporated within the Work constitutes direct\n or contributory patent infringement, then any patent licenses\n granted to You under this License for that Work shall terminate\n as of the date such litigation is filed.\n \n 4. Redistribution. You may reproduce and distribute copies of the\n Work or Derivative Works thereof in any medium, with or without\n modifications, and in Source or Object form, provided that You\n meet the following conditions:\n \n (a) You must give any other recipients of the Work or\n Derivative Works a copy of this License; and\n \n (b) You must cause any modified files to carry prominent notices\n stating that You changed the files; and\n \n (c) You must retain, in the Source form of any Derivative Works\n that You distribute, all copyright, patent, trademark, and\n attribution notices from the Source form of the Work,\n excluding those notices that do not pertain to any part of\n the Derivative Works; and\n \n (d) If the Work includes a \"NOTICE\" text file as part of its\n distribution, then any Derivative Works that You distribute must\n include a readable copy of the attribution notices contained\n within such NOTICE file, excluding those notices that do not\n pertain to any part of the Derivative Works, in at least one\n of the following places: within a NOTICE text file distributed\n as part of the Derivative Works; within the Source form or\n documentation, if provided along with the Derivative Works; or,\n within a display generated by the Derivative Works, if and\n wherever such third-party notices normally appear. The contents\n of the NOTICE file are for informational purposes only and\n do not modify the License. You may add Your own attribution\n notices within Derivative Works that You distribute, alongside\n or as an addendum to the NOTICE text from the Work, provided\n that such additional attribution notices cannot be construed\n as modifying the License.\n \n You may add Your own copyright statement to Your modifications and\n may provide additional or different license terms and conditions\n for use, reproduction, or distribution of Your modifications, or\n for any such Derivative Works as a whole, provided Your use,\n reproduction, and distribution of the Work otherwise complies with\n the conditions stated in this License.\n \n 5. Submission of Contributions. Unless You explicitly state otherwise,\n any Contribution intentionally submitted for inclusion in the Work\n by You to the Licensor shall be under the terms and conditions of\n this License, without any additional terms or conditions.\n Notwithstanding the above, nothing herein shall supersede or modify\n the terms of any separate license agreement you may have executed\n with Licensor regarding such Contributions.\n \n 6. Trademarks. This License does not grant permission to use the trade\n names, trademarks, service marks, or product names of the Licensor,\n except as required for reasonable and customary use in describing the\n origin of the Work and reproducing the content of the NOTICE file.\n \n 7. Disclaimer of Warranty. Unless required by applicable law or\n agreed to in writing, Licensor provides the Work (and each\n Contributor provides its Contributions) on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n implied, including, without limitation, any warranties or conditions\n of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n PARTICULAR PURPOSE. You are solely responsible for determining the\n appropriateness of using or redistributing the Work and assume any\n risks associated with Your exercise of permissions under this License.\n \n 8. Limitation of Liability. In no event and under no legal theory,\n whether in tort (including negligence), contract, or otherwise,\n unless required by applicable law (such as deliberate and grossly\n negligent acts) or agreed to in writing, shall any Contributor be\n liable to You for damages, including any direct, indirect, special,\n incidental, or consequential damages of any character arising as a\n result of this License or out of the use or inability to use the\n Work (including but not limited to damages for loss of goodwill,\n work stoppage, computer failure or malfunction, or any and all\n other commercial damages or losses), even if such Contributor\n has been advised of the possibility of such damages.\n \n 9. Accepting Warranty or Additional Liability. While redistributing\n the Work or Derivative Works thereof, You may choose to offer,\n and charge a fee for, acceptance of support, warranty, indemnity,\n or other liability obligations and/or rights consistent with this\n License. However, in accepting such obligations, You may act only\n on Your own behalf and on Your sole responsibility, not on behalf\n of any other Contributor, and only if You agree to indemnify,\n defend, and hold each Contributor harmless for any liability\n incurred by, or claims asserted against, such Contributor by reason\n of your accepting any such warranty or additional liability.\n \n END OF TERMS AND CONDITIONS\n \n APPENDIX: How to apply the Apache License to your work.\n \n To apply the Apache License to your work, attach the following\n boilerplate notice, with the fields enclosed by brackets \"[]\"\n replaced with your own identifying information. (Don't include\n the brackets!) The text should be enclosed in the appropriate\n comment syntax for the file format. We also recommend that a\n file or class name and description of purpose be included on the\n same \"printed page\" as the copyright notice for easier\n identification within third-party archives.\n \n Copyright [yyyy] [name of copyright owner]\n \n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this file except in compliance with the License.\n You may obtain a copy of the License at\n \n http://www.apache.org/licenses/LICENSE-2.0\n \n Unless required by applicable law or agreed to in writing, software\n distributed under the License is distributed on an \"AS IS\" BASIS,\n WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n See the License for the specific language governing permissions and\n limitations under the License.\n ",
"summary": "Python edition of RumbleDB, a JSONiq engine",
"version": "0.1.0a12",
"project_urls": {
"Bug Tracker": "https://github.com/RumbleDB/python-jsoniq/issues",
"Documentation": "https://rumble.readthedocs.io/en/latest/",
"Homepage": "https://rumbledb.org",
"Repository": "https://github.com/RumbleDB/python-jsoniq.git"
},
"split_keywords": [
"jsoniq",
" spark",
" apache-spark",
" dataframe",
" heterogeneous",
" json",
" query"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "857402df5d873426231f56d9f036a18c1f9ee99d3e891174d3f0ce25591afe90",
"md5": "42d6a04154e80ee1b127b0b2a5b1de6a",
"sha256": "2b709f2d5a08b726f80440283c0bbcdadffb3e3bc08edcbfded9160656533958"
},
"downloads": -1,
"filename": "jsoniq-0.1.0a12-py3-none-any.whl",
"has_sig": false,
"md5_digest": "42d6a04154e80ee1b127b0b2a5b1de6a",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.11",
"size": 27699955,
"upload_time": "2025-07-21T11:27:03",
"upload_time_iso_8601": "2025-07-21T11:27:03.740932Z",
"url": "https://files.pythonhosted.org/packages/85/74/02df5d873426231f56d9f036a18c1f9ee99d3e891174d3f0ce25591afe90/jsoniq-0.1.0a12-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "42cd38e5acb25c10d4a295076337a8e79597d90a84c891263463dc75ee196c84",
"md5": "7eb320a0b5f2a473e099b100c2887019",
"sha256": "6dc11fa81b037002ccb6bf8e93101ff4dfe83f902fe68c3bf5fd606ccc9824df"
},
"downloads": -1,
"filename": "jsoniq-0.1.0a12.tar.gz",
"has_sig": false,
"md5_digest": "7eb320a0b5f2a473e099b100c2887019",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.11",
"size": 27705303,
"upload_time": "2025-07-21T11:27:07",
"upload_time_iso_8601": "2025-07-21T11:27:07.481150Z",
"url": "https://files.pythonhosted.org/packages/42/cd/38e5acb25c10d4a295076337a8e79597d90a84c891263463dc75ee196c84/jsoniq-0.1.0a12.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-21 11:27:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "RumbleDB",
"github_project": "python-jsoniq",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "pyspark",
"specs": [
[
"==",
"4.0.0"
]
]
}
],
"lcname": "jsoniq"
}