semvec/pypi-packages huggingface dataset:
GraphScheduling 2.1.2
scheduling algorithm
License: MIT

# GraphScheduling

## Installation
```pip install GraphScheduling```

## Use Case
```
Exam for subjects A, B, C, D, E, F & G are to be scheduled in minimum number of days. 
Some of the exams cannot be scheduled together.

{'A' : {'B', 'D', 'E'}} implies that A cannot be scheduled with B, D or E.

What is the minimum number of days required to schedule the exams?  
```

## How to use it?

A graph must be defined such that every key must be matched with the set of values that it cannot be scheduled together with. 

```python
import GraphScheduling

graph = {'A':{'B','D','E'},'B':{'A','C','E','G'},'C':{'B','F','G'},'D':{'A','E','F'},
        'E':{'A','B','D','F'}, 'F':{'C','D','E'},'G':{'A','B','C'}}

schedule = GraphScheduling.GraphScheduling(graph)
max_time , color = schedule.schedule()

print("max_time : ", max_time)
print("keys with same values can be scheduled together : ", color)
```

## License

© 2021 Roman Regmi

This repository is licensed under the MIT license. 
See LICENSE for details.
Malas 1.0.210930.1
Malas (Multi-vendor automation leverage at slouching)
License: MIT
Requires Python: >=3.9
Keywords: multi-vendor,network,automation

# Malas (Multi-vendor automation leverage at slouching)<br>
[![PyPI - Python Version](https://img.shields.io/pypi/pyversions/malas)](https://pypi.org/project/Malas)
[![PyPI](https://img.shields.io/pypi/v/malas)](https://pypi.org/project/Malas)
[![Downloads](https://pepy.tech/badge/malas)](https://pepy.tech/project/malas)
<br>
<br>
**What is 'Malas'?**<br>
_Malas_ is a word from Bahasa Indonesia. The _Malas_ word meaning is _Lazy_ (Too inclined to avoid hard work).<br>
<br>
**What Malas really is?**<br>
Malas is a simple multi-vendor network automation program powered by netmiko for general configuration or retrieve information via SSH parallelly.<br>
<br>
**Why Malas though?**<br>
Malas is an abstraction layer in a wizard-type CLI for simplicity's sake.
## Main features
- IPv4 target hosts.
- [Supported platforms](https://github.com/ktbyers/netmiko/blob/develop/PLATFORMS.md) based on netmiko.
- Verify submitted User's file formats before accepted.
- Performing _parallel_* connectivity tests before remote executions.<br>
*_Parallel tasks capabilities based on CPU's capabilities._
- Performing _parallel_* remote configurations or retrieve information.<br>
*_Parallel tasks capabilities based on CPU's capabilities._
- Show remote output results immediately.
- Save remote output results per-remote host (Optional).
- Auto-install missing modules (If uninstalled accidentally).
## WIP
- IPv6 target hosts
- Hostname target hosts
## Getting started
**Installation:**
```
python -m pip install malas
or
python3 -m pip install malas
```
**Start the program:**
```
python -m malas
or
python3 -m malas
```
**File formatting:**
```
1. The device information list file's format is a set of three
   that contains IP address, username (has privilege), and password separated by double colons '::'
   per line in row formats, for example (Ignore the bracket):

   #==== Device Information List.txt ====#
   #10.0.0.2::netadmin::password         #
   #10.0.0.3::netadmin::password         #
   #=====================================#

2. The configuration file's format is one command per line in row formats, for example (Ignore the bracket):

   #========= Configuration.txt =========#
   #interface GigabitEthernet0/11        #
   #description Guest_Networks           #
   #IP address 192.168.1.1 255.255.255.0 #
   #no shutdown                          #
   #exit                                 #
   #do write                             #
   #=====================================#

```
---
**Ade Destrianto**<br/>
https://destrianetworks.id
singledispatchmethod 1.0
Backport of @functools.singledispatchmethod to Python 2.7-3.7.
License: MIT

singledispatchmethod
====================

Backport of ``@functools.singledispatchmethod`` decorator [1]_ from
Python 3.8 to Python 2.7-3.7. These are merely ~30 lines of code, but
why bother yourself with copypasta?

.. code:: bash

   $ pip install singledispatchmethod

The decorator transforms a method into a single-dispatch [2]_ generic
function [3]_. Note that since the dispatch happens on the type of the
first non-self or non-cls argument, you have to create your function
accordingly:

.. code:: python

    from singledispatchmethod import singledispatchmethod

    class Negator:

        @singledispatchmethod
        def neg(self, arg):
            raise NotImplementedError("Cannot negate a")

        @neg.register
        def _(self, arg: int):
            return -arg

        @neg.register
        def _(self, arg: bool):
            return not arg

``@singledispatchmethod`` supports nesting with other decorators such as
``@classmethod``. However, in order to expose ``dispatcher.register``,
``@singledispatchmethod`` must be the *outer most* decorator. Here is
the ``Negator`` class with the ``neg`` methods being class bound:

.. code:: python

    from singledispatchmethod import singledispatchmethod

    class Negator:

        @singledispatchmethod
        @classmethod
        def neg(cls, arg):
            raise NotImplementedError("Cannot negate a")

        @neg.register
        @classmethod
        def _(cls, arg: int):
            return -arg

        @neg.register
        @classmethod
        def _(cls, arg: bool):
            return not arg

The same pattern can be used for other similar decorators, such as
``@staticmethod`` or ``@abstractmethod``. Please note, since
``@singledispatchmethod`` decorator is based on
``@functools.singledispatch``, type annotations are supported by
``dispatcher.register`` only since Python 3.7.

.. [1] https://docs.python.org/3.8/library/functools.html#functools.singledispatchmethod
.. [2] https://docs.python.org/3.8/glossary.html#term-single-dispatch
.. [3] https://docs.python.org/3.8/glossary.html#term-generic-function