semvec/pypi-packages huggingface dataset:
PyGraphDFS 0.3
Implement of Depth First Search for a graph
License: MIT

PyGraphDFS Package
==================

Overview
--------

PyGraphDFS is a Python package that provides a straightforward and efficient way to perform Depth-First Search (DFS) on a graph. It is a versatile tool that can be used in various scenarios where graph traversal and exploration are necessary.

Installation
------------

You can install PyGraphDFS using pip:

.. code-block:: shell

   pip install PyGraphDFS

Usage
-----

After installing the package, you can use it in your Python scripts as follows:

.. code-block:: python

   from PyGraphDFS import Graph

   # Create a graph instance
   my_graph = Graph()

   # Add edges to the graph
   my_graph.add_edge("A", "B")
   my_graph.add_edge("B", "C")
   my_graph.add_edge("B", "D")
   my_graph.add_edge("D", "E")

   # Perform Depth-First Search (DFS)
   visited_nodes = my_graph.dfs("A")

   # Print the visited nodes
   print(visited_nodes)

Example Output
--------------

The above code will produce the following output:

.. code-block:: python

   ['A', 'B', 'C', 'D', 'E']


License
-------

This project is licensed under the MIT License. See the `LICENSE <LICENSE>`_.
gqlite 0.4.0
Lightweight client for GraphQL in Python
License: MIT
Requires Python: >=3.10,<4.0

# gqlite

Simple client for querying GraphQL from Python using
[`requests`](https://requests.readthedocs.io/en/latest/).

## Installation

```bash
pip install gqlite
```

## Usage

First set the two environment variables `GQLITE_URL` and `GQLITE_TOKEN`.
You can also use a `.env` file for these. Then:

```python
import gqlite

text = """
  hero {
    name
  }
}
"""
gqlite.query(text)  # returns a dict

```

You can also set variables using the `variables` keyword argument of
`gqlite.query`.