semvec/pypi-packages huggingface dataset:
properties-inheritance-graph 1.0.0
Make graphs of HasProperties class networks
Keywords: networkx,properties,graph

properties-inheritance-graph
----------------------------

.. image:: https://img.shields.io/pypi/v/properties-inheritance-graph.svg
    :target: https://pypi.org/project/properties-inheritance-graph
.. image:: https://travis-ci.org/seequent/properties-inheritance-graph.svg?branch=master
    :target: https://travis-ci.org/seequent/properties-inheritance-graph
.. image:: https://codecov.io/gh/seequent/properties-inheritance-graph/branch/master/graph/badge.svg?token=yyj42i2C5k
    :target: https://codecov.io/gh/seequent/properties-inheritance-graph

The purpose of this library is to quickly and easily create UML graphs
that show inheritance structure of :code:`HasProperties` class hierarchies.
For more information on :code:`HasProperties` classes, see
`properties <https://github.com/seequent/properties>`_.

To install

.. code::

    pip install properties_inheritance_graph


then in Python

.. code:: python

    from properties_inheritance_graph import make_graph
    import omf  # or any other library built on properties

    graph, registry = make_graph(
        registry=omf.PointSetElement._REGISTRY,
        expand_props=True,
        only_new_props=True,
        abstract_regex='^.*Model$',
    )

In the above example, the properties-based `OMF <https://github.com/gmggroup/omf>`_
library is used for demonstration.

To render these graphs to file or in a Jupyter notebook, you may use
`nxpd <https://github.com/chebee7i/nxpd>`_. `Graphviz <https://graphviz.gitlab.io/>`_
must also be installed.

.. code:: python

    import nxpd
    nxpd.draw(graph, filename='inheritance_graph.png')

.. image:: https://raw.githubusercontent.com/seequent/properties-inheritance-graph/master/docs/inheritance_graph.png
smashggAPI 0.0.2
A wrapper for smash.gg's GraphQL API

# smashgg-api-wrapper-python

# How to use:
1. `pip install smashggAPI`
2. Add your public API key as an environmental variable:

  In .bashrc/whatever equivalent file:
  ```
  export SMASHGG_API_KEY='your api key here'
  ```
3. 
```
from smashggAPI import client

result = client.query('''
	query TournamentInfo ($slug: String!) {
		tournament(slug: $slug) {
			id
			name
		}
	}
''',
{
	"slug": "genesis-6"
})
```

# Contributing

## Running tests

1. `python -m pip install -r requirements.txt`
2. `python -m pytest`