semvec/pypi-packages huggingface dataset:
sparc.sa 1.3.2
SQLAlchemy components for the SPARC platform
License: MIT
Keywords: zca

sparc.sa
==============================

1.0.0
++++++++++++++++++

* initial release

1.0.1
++++++++++++++++++

* bundle yaml config definition files with build artifacts

1.1.0
++++++++++++++++++

* add orm attribute and mapper interfaces

1.1.1
++++++++++++++++++

* fix import issue with .orm.mapper.interfaces

1.2.0
++++++++++++++++++

* Add new mapping component for unique instrumented attributes
* Introduce new ORM query components for related models

1.3.0
++++++++++++++++++

* Add new sequence adapter component for queries
* Add gt, gte, lt, lte for expression comparison

1.3.1
++++++++++++++++++

* Minor fix to engine factory to help make it more clear for invalid configs

1.3.2
++++++++++++++++++

* Add logging for engine creation and session transaction enter/exit points
os_nova_ha_monitor 1.1.15
Python Openstack Nova HA monitor package
License: MIT

# Openstack Nova HA monitor package

Openstack Nova HA monitor is monitoring state of ocmpute nodes and when any of them fails it
will initial compute node takeover on HA node.

## Documentation

### Consul K/V store values

_ha_cluster/compute_nodes/{{ compute-node }}/status/failed_
    - fail status of the compute node, if this is set to true, this node is considered failed,
      and will be recovered. If this status becomes "True" it can only be reset to "False"
      manually by Administrator.
_ha_cluster/compute_nodes/{{ compute-node }}/status/recovered_
    - this value is becomes True, once HA node attempts to recover this node. HA nodes only
      try to recover nodes which have "status/failed" set to True and "status/recovered"
      set to "False". Once this becomes True, only andministrator can set it back to False
_ha_cluster/compute_nodes/{{ compute-node }}/internal/number_fails_
    - counter of HA Monitor check interval failures. HA Monitor periodically checks
      health of compute node, and increases this counter. When this counter reaches defined
      threshold, the HA Monitor sets "status/failed" to True.
_ha_cluster/compute_nodes/{{ compute-node }}/internal/runtime_config_
    - runtime local config of the compute node. This config contains all
      required information for performing the recovery.
_ha_cluster/compute_nodes/{{ compute-node }}/config/bmc/user_
    - ilo/ipmi user name used to managed this compute-node remotely
_ha_cluster/compute_nodes/{{ compute-node }}/config/bmc/password_
    - ilo/ipmi user password used to managed this compute-node remotely
_ha_cluster/compute_nodes/{{ compute-node }}/config/bmc/ip_
    - ilo/ipmi ip address used to managed this compute-node remotely
_ha_cluster/compute_nodes/{{ compute-node }}/config/ssh/user_
    - ssh-check required test user login
_ha_cluster/compute_nodes/{{ compute-node }}/config/ssh/password_
    - ssh-check required test user password
_ha_cluster/compute_nodes/{{ compute-node }}/general_
    - empty directory for now

_ha_cluster/ha_nodes/{{ ha-node }}/status/in_use_
    - When HA Node starts recovering a compute node, it marks it sets this value to True,
      to prevent condition where two compute nodes fail at the same time and HA Node tries
      to recover both simultaneously. Updating of this value is in critical section.
_ha_cluster/ha_nodes/{{ ha-node }}/general_
    - empty directory for now

## Development

### Running unit tests

```console
pytest -v -s
```

### Running integration tests

Integration tests are implemented in `tests/integration` directory. They are based on vagrant which will start 2 VMs w


# TODO

1) Split Consul based cluster monitor from NOVA HA recovery part.

2) Create integration tests.
segment-tree 0.3.2
Multidimensional segment tree with ranges updates.
License: MIT
Requires Python: >=3
Keywords: segment,tree,range,rmq,multidimensional

Segment Tree with range operations
==================================

.. figure:: https://img.shields.io/badge/license-MIT-blue.svg
   :alt: LicenseLink

This is a general implementation of a segment tree for Python 3.

-  Semigroup range operations in O(logN) time
-  Built-in support for ``max``, ``min``, ``sum`` operations
-  Extensible to support more semigroup operations
-  Limited support for multidimensional trees
-  Python 2 is not currently supported

Installation
============

``pip3 install segment-tree``

Segment Tree (one-dimensional)
==============================

Basic usage
-----------

.. code:: python


        from segment_tree import *
        array = [3, 1, 5, 3, 13, 7, 2, 7, 2]
        tree = SegmentTree(array)

        t.query(1, 3, "sum") # 9
        t.update(0, 10) # [10, 1, 5, 3, 13, 7, 2, 7, 2]
        t.query(0, 8, "min") # 0
        t.update(2, -1) # [10, 1, -1, 3, 13, 7, 2, 0, 2]
        t.query(0, 2, "min") # -1

Updates on ranges
-----------------

.. code:: python

        from segment_tree import *
        array = [1, 2, 3, 4, 5]
        t = SegmentTree(array)
        t.update_range(0, 2, 6) # 6 6 6 4 5
        t.update_range(1, 4, 2) # 6 2 2 2 2
        t.query(0, 3, "min") # 2

Multidimensional Segment Tree (alpha version, might have bugs)
==============================================================

Basic usage
-----------

.. code:: python

        from segment_tree import *
        a = [[[1, 2], [1, 3]], [[-1, -2], [-1, -3]]]
        tree = MultidimensionalSegmentTree(a)

        tree.query([(0, 1), (0, 0), (0, 0)], max) # 1
        tree.query([(1, 1), (0, 1), (0, 1)], sum) # -7
        tree.query([(0, 1), (1, 1), (0, 1)], min) # -3

Tests
=====

Execute ``python3 setup.py test`` to run tests.