rusty-graph 0.3.1__cp310-cp310-manylinux_2_34_x86_64.whl → 0.3.3__cp310-cp310-manylinux_2_34_x86_64.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.
Potentially problematic release.
This version of rusty-graph might be problematic. Click here for more details.
- rusty_graph/rusty_graph.cpython-310-x86_64-linux-gnu.so +0 -0
- {rusty_graph-0.3.1.dist-info → rusty_graph-0.3.3.dist-info}/METADATA +45 -23
- rusty_graph-0.3.3.dist-info/RECORD +6 -0
- rusty_graph-0.3.1.dist-info/RECORD +0 -6
- {rusty_graph-0.3.1.dist-info → rusty_graph-0.3.3.dist-info}/WHEEL +0 -0
- {rusty_graph-0.3.1.dist-info → rusty_graph-0.3.3.dist-info}/licenses/LICENSE +0 -0
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: rusty_graph
|
|
3
|
-
Version: 0.3.
|
|
3
|
+
Version: 0.3.3
|
|
4
4
|
Classifier: Programming Language :: Rust
|
|
5
5
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
6
6
|
Classifier: Programming Language :: Python :: Implementation :: PyPy
|
|
@@ -17,31 +17,10 @@ Project-URL: Source Code, https://github.com/kkollsga/rusty_graph
|
|
|
17
17
|
|
|
18
18
|
A high-performance graph database library with Python bindings written in Rust.
|
|
19
19
|
|
|
20
|
-
Rusty Graph is a Rust-based project that aims to empower the generation of high-performance knowledge graphs within Python environments. Specifically designed for aggregating and merging data from SQL databases, Rusty Graph facilitates the seamless transition of relational database information into structured knowledge graphs. By leveraging Rust's efficiency and Python's flexibility, Rusty Graph offers an optimal solution for data scientists and developers looking to harness the power of knowledge graphs in their data-driven applications.
|
|
21
|
-
|
|
22
|
-
## Key Features
|
|
23
|
-
- **Efficient Data Integration:** Easily import and merge data from SQL databases to construct knowledge graphs, optimizing for performance and scalability.
|
|
24
|
-
- **High-Performance Operations:** Utilize Rust's performance capabilities to handle graph operations, making Rusty Graph ideal for working with large-scale data.
|
|
25
|
-
- **Python Compatibility:** Directly integrate Rusty Graph into Python projects, allowing for a smooth workflow within Python-based data analysis and machine learning pipelines.
|
|
26
|
-
- **Flexible Graph Manipulation:** Create, modify, and query knowledge graphs with a rich set of features, catering to complex data structures and relationships.
|
|
27
|
-
|
|
28
|
-
## Direct Download and Install
|
|
29
|
-
Users can download the .whl file directly from the repository and install it using pip.
|
|
30
|
-
- *Note that the release is only compatible with Python 3.12 on win_amd64.*
|
|
31
|
-
- *The library is still in alpha, so the functionality is very limited.*
|
|
32
|
-
```sh
|
|
33
|
-
pip install https://github.com/kkollsga/rusty_graph/blob/main/wheels/rusty_graph-0.2.13-cp312-cp312-win_amd64.whl?raw=true
|
|
34
|
-
# or upgrade an already installed library
|
|
35
|
-
pip install --upgrade https://github.com/kkollsga/rusty_graph/blob/main/wheels/rusty_graph-0.2.13-cp312-cp312-win_amd64.whl?raw=true
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
# Rusty Graph Python Library
|
|
39
|
-
|
|
40
|
-
A high-performance graph database library with Python bindings written in Rust.
|
|
41
|
-
|
|
42
20
|
## Table of Contents
|
|
43
21
|
|
|
44
22
|
- [Installation](#installation)
|
|
23
|
+
- [Introduction](#introduction)
|
|
45
24
|
- [Basic Usage](#basic-usage)
|
|
46
25
|
- [Working with Nodes](#working-with-nodes)
|
|
47
26
|
- [Creating Connections](#creating-connections)
|
|
@@ -57,6 +36,16 @@ A high-performance graph database library with Python bindings written in Rust.
|
|
|
57
36
|
pip install rusty-graph
|
|
58
37
|
```
|
|
59
38
|
|
|
39
|
+
## Introduction
|
|
40
|
+
|
|
41
|
+
Rusty Graph is a Rust-based project that aims to empower the generation of high-performance knowledge graphs within Python environments. Specifically designed for aggregating and merging data from SQL databases, Rusty Graph facilitates the seamless transition of relational database information into structured knowledge graphs. By leveraging Rust's efficiency and Python's flexibility, Rusty Graph offers an optimal solution for data scientists and developers looking to harness the power of knowledge graphs in their data-driven applications.
|
|
42
|
+
|
|
43
|
+
## Key Features
|
|
44
|
+
- **Efficient Data Integration:** Easily import and merge data from SQL databases to construct knowledge graphs, optimizing for performance and scalability.
|
|
45
|
+
- **High-Performance Operations:** Utilize Rust's performance capabilities to handle graph operations, making Rusty Graph ideal for working with large-scale data.
|
|
46
|
+
- **Python Compatibility:** Directly integrate Rusty Graph into Python projects, allowing for a smooth workflow within Python-based data analysis and machine learning pipelines.
|
|
47
|
+
- **Flexible Graph Manipulation:** Create, modify, and query knowledge graphs with a rich set of features, catering to complex data structures and relationships.
|
|
48
|
+
|
|
60
49
|
## Basic Usage
|
|
61
50
|
|
|
62
51
|
```python
|
|
@@ -184,6 +173,28 @@ selected_products = graph.type_filter('Product').filter({
|
|
|
184
173
|
})
|
|
185
174
|
```
|
|
186
175
|
|
|
176
|
+
### Filtering Orphan Nodes
|
|
177
|
+
|
|
178
|
+
Orphan nodes are nodes that have no connections (no incoming or outgoing edges). You can filter to include or exclude orphan nodes:
|
|
179
|
+
|
|
180
|
+
```python
|
|
181
|
+
# Get only orphan nodes
|
|
182
|
+
orphans = graph.filter_orphans(include_orphans=True)
|
|
183
|
+
|
|
184
|
+
# Get only nodes that have at least one connection
|
|
185
|
+
connected = graph.filter_orphans(include_orphans=False)
|
|
186
|
+
|
|
187
|
+
# Filter orphans with sorting and limits
|
|
188
|
+
recent_orphans = graph.filter_orphans(
|
|
189
|
+
include_orphans=True,
|
|
190
|
+
sort_spec='created_date',
|
|
191
|
+
max_nodes=100
|
|
192
|
+
)
|
|
193
|
+
|
|
194
|
+
# Chain with other operations
|
|
195
|
+
product_orphans = graph.type_filter('Product').filter_orphans(include_orphans=True)
|
|
196
|
+
```
|
|
197
|
+
|
|
187
198
|
### Sorting Results
|
|
188
199
|
|
|
189
200
|
```python
|
|
@@ -248,6 +259,17 @@ unique_categories = graph.type_filter('Product').unique_values(
|
|
|
248
259
|
store_as='category_list',
|
|
249
260
|
max_length=10
|
|
250
261
|
)
|
|
262
|
+
|
|
263
|
+
# Convert children properties to a comma-separated list in parent nodes
|
|
264
|
+
users_with_products = graph.type_filter('User').traverse('PURCHASED').children_properties_to_list(
|
|
265
|
+
property='title', # Default is 'title' if not specified
|
|
266
|
+
filter={'price': {'<': 500.0}}, # Optional filtering of children
|
|
267
|
+
sort_spec='price', # Optional sorting of children
|
|
268
|
+
max_nodes=5, # Optional limit of children per parent
|
|
269
|
+
store_as='purchased_products', # Property name to store the list in parent
|
|
270
|
+
max_length=100, # Optional maximum string length (adds "..." if truncated)
|
|
271
|
+
keep_selection=False # Whether to keep the current selection
|
|
272
|
+
)
|
|
251
273
|
```
|
|
252
274
|
|
|
253
275
|
### Custom Calculations
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
rusty_graph-0.3.3.dist-info/METADATA,sha256=Mw0MbC1NTH3MeR59NM8OfIQdfRngmfsngmcusuxTlm4,9739
|
|
2
|
+
rusty_graph-0.3.3.dist-info/WHEEL,sha256=T5N8wV_FFFFqNMyMMjqvVZVA4nBXclX-pkxhEjZDV9w,108
|
|
3
|
+
rusty_graph-0.3.3.dist-info/licenses/LICENSE,sha256=rpMbqF0kOM1XAviOJRrR8UYQsNx0QPAzbf5b4RE358g,932
|
|
4
|
+
rusty_graph/__init__.py,sha256=_Fds04T5qV95XgyZm7qIPfLghgoCZi-_hDbw-e_18oA,127
|
|
5
|
+
rusty_graph/rusty_graph.cpython-310-x86_64-linux-gnu.so,sha256=Uqzfmx20N9EUY5XH_8BRhYb4cBtQLfuW5yRYHIxgdbU,1447912
|
|
6
|
+
rusty_graph-0.3.3.dist-info/RECORD,,
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
rusty_graph-0.3.1.dist-info/METADATA,sha256=NVxPJF4pu3IYDgIkzCMES55H7QBCH1qlXZ8PSIZTwwc,9100
|
|
2
|
-
rusty_graph-0.3.1.dist-info/WHEEL,sha256=T5N8wV_FFFFqNMyMMjqvVZVA4nBXclX-pkxhEjZDV9w,108
|
|
3
|
-
rusty_graph-0.3.1.dist-info/licenses/LICENSE,sha256=rpMbqF0kOM1XAviOJRrR8UYQsNx0QPAzbf5b4RE358g,932
|
|
4
|
-
rusty_graph/__init__.py,sha256=_Fds04T5qV95XgyZm7qIPfLghgoCZi-_hDbw-e_18oA,127
|
|
5
|
-
rusty_graph/rusty_graph.cpython-310-x86_64-linux-gnu.so,sha256=1B6WhStglwpeilIf2FzbY1u2pPTPYVE0FoPxcTIE9W8,1429056
|
|
6
|
-
rusty_graph-0.3.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|