semvec/pypi-packages huggingface dataset:
arangodb-pythongraph 0.1.4
Fetch an AQL directly to a Python graph representation (In NetworkX, IGraph, or Graph-Tool)
License: MIT
Requires Python: >=3.8,<4.0

# arangodb-pythongraph
Run an AQL and get a Python network object in return

## Installation

```
pip install arangodb-pythongraph
```
Duh.

## Graph frameworks
This package is based on [pyintergraph](https://pypi.org/project/pyintergraph/) and thus supports extraction to NetworkX, python-IGraph and Graph-Tools graph objects.
However, these libraries are not defined as requirements for this package and if you want to extract to each of them you are required to install the necessary package accordingly.


# Usage

All queries **must** return path objects.

## Simple extraction

```
from arangodb_pythongraph import execute_to_pygraph

db = ... # ArangoDB connection (use python-arango package)
example_query = '''
  FOR v0 in vertex_collection
    FOR e, v, p IN OUTBOUND v0 edge_collection
      RETURN p
'''
python_graph = execute_to_pygraph(db, query)
nx_graph = python_graph.to_networkx()
gt_graph = python_graph.to_graph_tool()
ig_graph = python_graph.to_igraph()
```

## Exporting the graph
If you want to export the graph (for example to use it with [Gephi](https://gephi.org/)),
you might run into trouble if you have nested or complex attributes in your graph.
To overcome this, use the `cleanup` argument:
```
python_graph = execute_to_pygraph(db, query, cleanup=True)
```

The functionality might be missing some use cases so if you encounter problems while exporting the graph to file,
please open an Issue describing the error you're getting together with a portion of the data you're trying to export.

# Attaching functionality to the AQL object
For a neater use, run `arangodb_pythongraph.register()`

Before:
```
python_graph = execute_to_pythongraph(db, query)
```

After:
```
python_graph = db.aql.execute_to_pythongraph(query)
```

# Development
Contributions are more than welcome :)

Note that the project is managed with [poetry](https://python-poetry.org/),
so make sure you use poetry to update the pypoject file.

## Running tests
To run the tests you must have a running instance of ArangoDB.
If you don't have a connection to an existing DB you can [use docker](https://www.arangodb.com/download-major/docker/) to run it easily.

Once you have a running ArangoDB connection, create a DB named 'test' (or any other name you choose),
and run tests with pytest
```
ARANGODB_PASS=<pass_goes_here> ARANGODB_NAME=test poetry run pytest
```
lucasmcgregor-knightstour 0.1.3
A simplistic implementation of the knights tour
License: MIT
Requires Python: >=3.7,<4.0

# Knights Tour 0.1.x

A very simple implementation of the knights tour. Intended to create a lot of data work with a little bit of code.

## Installation
Use poetry to install package

To run a tour:
```bash
poetry run knightstour
```

## Usage

```python
from lucasmcgregor.knightstour.Knightstour import Knightstour
from lucasmcgregor.knightstour.TourReporter import TourReporter

tours = TourReporter(logging=False)
board = Chessboard(x_size=8, y_size=8, reporter=tours)
board.solve_board()

print("moves checked: {0}".format(tours.moves))
print("we found {0} tours".format(tours.tours_count))
```

## License
[MIT](https://choosealicense.com/licenses/mit/)
tweetle 1.0.1
A CLI made to control your twitter account and get analytical data
License: MIT


<h1 align="center">Tweetle</h1>
<p align="center">
  <img src="https://user-images.githubusercontent.com/69053040/114283099-b0971d80-9a65-11eb-86b9-828b91979a82.png" alt = "Tweetle"/>
</p>
<p align="center"><i>A python based CLI to control your twitter account and get analytical data</i></p>
<p align="center">
  <a href="https://github.com/4RCAN3/Tweetle/stargazers"><img src="https://img.shields.io/github/stars/4RCAN3/Tweetle" alt="Stars Badge"/></a>
<a href="https://github.com/4RCAN3/Tweetle/network/members"><img src="https://img.shields.io/github/forks/4RCAN3/Tweetle" alt="Forks Badge"/></a>
<a href="https://github.com/4RCAN3/Tweetle/pulls"><img src="https://img.shields.io/github/issues-pr/4RCAN3/Tweetle" alt="Pull Requests Badge"/></a>
<a href="https://github.com/4RCAN3/Tweetle/issues"><img src="https://img.shields.io/github/issues/4RCAN3/Tweetle" alt="Issues Badge"/></a>
<a href="https://github.com/4RCAN3/Tweetle/graphs/contributors"><img alt="GitHub contributors" src="https://img.shields.io/github/contributors/4RCAN3/Tweetle?color=2b9348"></a>
<a href="https://github.com/4RCAN3/Tweetle/blob/master/LICENSE"><img src="https://img.shields.io/github/license/4RCAN3/Tweetle?color=2b9348" alt="License Badge"/></a>
</p>
<br>

<p align="center"><img src="https://media.discordapp.net/attachments/791081474425749577/830174345657450516/ezgif-7-0ab7a69f2594.gif" alt="Tweetle Gif"></p>


## Installation

### Through pip
#### For windows:
- `pip install tweetle`

#### For linux/macos:
- `pip3 install tweetle`
<br>

### Manual Installation
- `git clone https://github.com/4RCAN3/Tweetle/`
- `setup.bat`
- `venv\scripts\activate`
- `tweetle`


## Commands:
<p align="center"><img src="https://user-images.githubusercontent.com/69053040/114283653-70856a00-9a68-11eb-8737-137efbcd3a3e.png" alt = "commands">
</p>

<br>



## Languages used
<p align="center">
<img src = "https://img.shields.io/badge/python%20-%236C0101.svg?style=for-the-badge&logo=python&logoColor=white" alt="python"/> <img alt="MySQL" src="https://img.shields.io/badge/mysql-%2300f.svg?&style=for-the-badge&logo=mysql&logoColor=white"/>
</p>

## Contribute
Any contributions you make are **greatly appreciated**.

- PRs are accepted!!
- If you have some ideas for new features and you don't have time to implement them please open an issue with the tag new_feature.
- Please don't forget to comment (document) your code!


<p align="center"> <a href="https://ko-fi.com/N4N144R2L"><img src="https://ko-fi.com/img/githubbutton_sm.svg"/></a></p>
fandom-py 0.2.1
Fandom API wrapper for Python
License: MIT
Keywords: python wikia fandom API

fandom-py
=========

**fandom-py** is a Python library that makes it easy to access and parse
data from any `Fandom website <https://www.fandom.com>`_.

Search a Fandom, get article summaries, get data like links and images
from a page, and more. *fandom-py* wraps the Fandom API so you can focus on using
Fandom data, not getting it.

.. code:: python

  >>> import fandom
  >>> fandom.summary("Banshee", "Runescape")
  # Banshees are Slayer monsters that require level 15 Slayer to kill. They frequently drop 13 noted pure essence, making them an alternative source of essence. Additionally, banshees tend to frequently drop many different types of herbs. Mighty banshees are a higher-levelled alternative, if this is given as your Slayer assignment.

  >>> fandom.search("Forest", "Runescape")
  # [('Forest', 158584), ("Forester's Arms", 13771), ('Forester (Burgh de Rott Ramble)', 37816), ('Forester', 37518), ('Forest Beyond', 498451), ('Nemi Forest', 538558), ('Jungle forester', 68434), ('Freaky Forester', 6805), ("Bartender (Forester's Arms)", 543117), ('Dense forest', 83395)]

  >>> fandom.set_wiki("Runescape")
  >>> drakan = fandom.page("Castle Drakan")
  >>> drakan.title
  # u'Castle Drakan'
  >>> drakan.url
  # u'http://runescape.fandom.com/wiki/Castle_Drakan'
  >>> drakan.plain_text
  # u'Castle Drakan is the home of Lord Drakan, the vampyre lord of Morytania. Found just north of Meiyerditch, it looms over the Sanguinesti region'...

  >>> fandom.set_lang("nl") # Dutch
  >>> fandom.summary("Runes", "Runescape", sentences=1)
  # Runes, of Magische runes zijn kleine gewichtloze steentjes waarmee spelers een spreuk kunnen uitvoeren.

Note: this library was designed for ease of use and simplicity, not for advanced use.

Installation
------------

To install fandom-py, simply run:

::

  $ pip install fandom-py

fandom-py is compatible with Python 3.9+.

Documentation
-------------

You can find the documentation for fandom-py `here <https://fandom-py.readthedocs.io/en/latest/?>`_.

Tests
-------------

To run tests, clone the `respository on GitHub <https://github.com/NikolajDanger/fandom-py>`__, then run:

::

  $ pip install -r requirements.txt
  $ bash runtests.bat  # will run tests for python
  $ runtests.bat # will run tests for python (windows)
  $ python3 -m unittest discover -s fandom/tests -p '*test.py'  # manual style

in the root project directory.

License
-------

MIT licensed. See the `LICENSE
file <https://github.com/NikolajDanger/fandom-py/blob/master/LICENSE>`__ for
full details.

Credits
-------

-  `wiki-api <https://github.com/richardasaurus/wiki-api>`__ by
   @richardasaurus for inspiration
-  @nmoroze and @themichaelyang for feedback and suggestions
-  The `Wikimedia
   Foundation <http://wikimediafoundation.org/wiki/Home>`__ for giving
   the world free access to data
-  @goldsmith for making such a fantastic library to fork
-  /u/captainmeta4 for giving the idea for a reddit bot to post game wiki info
   like auto-wiki bot
-  @timidger for writing the wikia code this is based on