semvec/pypi-packages huggingface dataset:
coopr.pysp 3.5.5
Coopr stochastic programming modeling and solver techniques
License: BSD
Keywords: optimization

=================
coopr.pysp README
=================

This Python package defines stochastic programming extensions for the Pyomo
modeling language.


-------
License
-------

BSD.  See the LICENSE.txt file.


------------
Organization
------------

+ Directories

  * coopr - The root directory for Coopr source code

+ Documentation and Bug Tracking

  * Trac wiki: https://software.sandia.gov/trac/coopr

+ Authors

  * See the AUTHORS.txt file.

+ Project Managers

  * William E. Hart, wehart@sandia.gov

+ Mailing List

  * coopr-forum@googlegroups.com
    - The main list for help and announcements
  * coopr-developers@googlegroups.com
    - Where developers of Coopr discuss new features

--------------------
Third Party Software
--------------------

None.
coopr.solvers 3.2.1
Plugins that are typically bundled with Coopr
License: BSD
Keywords: optimization

====================
coopr.solvers README
====================

This Python package includes solver plugins used within Coopr.


-------
License
-------

BSD.  See the LICENSE.txt file.


------------
Organization
------------

+ Directories

  * coopr - The root directory for Coopr source code

+ Documentation and Bug Tracking

  * Trac wiki: https://software.sandia.gov/trac/coopr

+ Authors

  * See the AUTHORS.txt file.

+ Project Managers

  * William E. Hart, wehart@sandia.gov

+ Mailing List

  * coopr-forum@googlegroups.com
    - The main list for help and announcements
  * coopr-developers@googlegroups.com
    - Where developers of Coopr discuss new features

--------------------
Third Party Software
--------------------

None.
coopr.opt 2.12.2
Coopr generic optimization interfaces
License: BSD
Keywords: optimization

================
coopr.opt README
================

This Python package includes generic interfaces for optimization solvers.


-------
License
-------

BSD.  See the LICENSE.txt file.


------------
Organization
------------

+ Directories

  * coopr - The root directory for Coopr source code

+ Documentation and Bug Tracking

  * Trac wiki: https://software.sandia.gov/trac/coopr

+ Authors

  * See the AUTHORS.txt file.

+ Project Managers

  * William E. Hart, wehart@sandia.gov

+ Mailing List

  * coopr-forum@googlegroups.com
    - The main list for help and announcements
  * coopr-developers@googlegroups.com
    - Where developers of Coopr discuss new features

--------------------
Third Party Software
--------------------

None.
coopr.pyomo 3.6.4
Coopr's Pyomo math programming language
License: BSD
Keywords: optimization

==================
coopr.pyomo README
==================

This Python package defines a Pythonic modeling language for math programming.


-------
License
-------

BSD.  See the LICENSE.txt file.


------------
Organization
------------

+ Directories

  * coopr - The root directory for Coopr source code

+ Documentation and Bug Tracking

  * Trac wiki: https://software.sandia.gov/trac/coopr

+ Authors

  * See the AUTHORS.txt file.

+ Project Managers

  * William E. Hart, wehart@sandia.gov

+ Mailing List

  * coopr-forum@googlegroups.com
    - The main list for help and announcements
  * coopr-developers@googlegroups.com
    - Where developers of Coopr discuss new features

--------------------
Third Party Software
--------------------

None.
WTForms-Appengine 0.1
Appengine tools for WTForms
License: BSD

WTForms-Appengine
=================

WTForms-Appengine is a fork of the ``wtforms.ext.appengine`` package 
from WTForms. The package has been renamed to ``wtforms_appengine`` 
but otherwise should function the same as the ext package, at least
for the moment

to install::
	
	pip install WTForms-Appengine


Rationale
---------

The reasoning for splitting out this package is that WTForms 2.0 has
deprecated all its ``wtforms.ext.<library>`` packages and they will
not receive any further feature updates. The authors feel that packages
for companion libraries work better with their own release schedule and
the ability to diverge more from WTForms.

This package is currently looking for a permanent maintainer, and if you 
wish to maintain this package please contact ``wtforms@simplecodes.com``.
py_sdag2 1.0.1
Simple Directed Acyclic Graph whith Cicle Detector and TopoloGical sorter utilities.
License: BSD
Keywords: utils utilities directed graph digraph topological simple dag

# Py_SDAG2 - Python Simple Directed Acyclic Graph

The Python Simple Directed Graph whith Cicle Detector and TopoloGical sorter utilities.

## Authors
- [Moises P. Sena](http://moisespsena.com)

## Install

```bash
sudo pip install py_sdag2
```

## Scripts

### tsort.py

Sources from Standard Input:

```bash
echo -e 'C A\nA B\nB D\nC D' | tsort.py
```

Sources from another file:

```bash
echo -e 'C A\nA B\nB D\nC D' > verticies.txt
```

```bash
tsort.py verticies.txt
```

More Options:

```bash
tsort.py --help
Usage: tsort.py [options] [FILE [OUT_FILE]]

Options:
  -h, --help            show this help message and exit
  -f FILE, --file=FILE  With no FILE, or when FILE is -, read standard input.
  -o OUT_FILE, --out-file=OUT_FILE
                        Write result to OUT_FILE, default is standard output.
  -s SEP, --separator=SEP
                        Items separator, default is \s regex.
  -q QUIT_SEQ, --quit-sequence=QUIT_SEQ
                        Stop read FILE where line equals QUIT_SEQ, default is
                        :quit.
```

## Tests

```python
import unittest
from sdag2 import DAG, CycleDetectedException

class DAGTest(unittest.TestCase):    
    def test_simple(self):
        '''
        Tests the verticles order in:
        
        C --> A --> B --> D
        '''
        
        dag = DAG()
        a = dag.add("A")
        b = dag.add("B")
        c = dag.add("C")
        d = dag.add("D")
        
        dag.add_edge(c, a)
        dag.add_edge(a, b)
        dag.add_edge(b, d)
        dag.add_edge(c, d)
        
        rs = dag.topologicaly()
        
        self.assertTrue(rs.index("C") < rs.index("A"))
        self.assertTrue(rs.index("A") < rs.index("B"))
        self.assertTrue(rs.index("B") < rs.index("D"))
        self.assertTrue(rs.index("C") < rs.index("D"))
        
    def test_cicle_detect(self):
        '''
        Tests the verticles order in:
        
        C --> A --> B --> D -> C
        '''
        
        dag = DAG()
        a = dag.add("A")
        b = dag.add("B")
        c = dag.add("C")
        d = dag.add("D")
        
        dag.add_edge(c, a)
        dag.add_edge(a, b)
        dag.add_edge(b, d)
        dag.add_edge(c, d)
        
        try:
            # add cicle at A --> C --> A
            dag.add_edge(a, c)
            raise Exception("Cycle not detected")
        except CycleDetectedException: pass

def main():
    unittest.main()
    
if __name__ == "__main__":
    main()
```