semvec/pypi-packages huggingface dataset:
sc-sme-diff-analysis 0.0.5
SME diff analysis
License: MIT
Requires Python: >=3.6
Keywords: python SME diff analysis

.. image:: https://badge.fury.io/py/sc-sme-diff-analysis.svg
    :target: https://badge.fury.io/py/sc-sme-diff-analysis
.. image:: https://img.shields.io/pypi/pyversions/sc-sme-diff-analysis
    :alt: PyPI - Python Version

A simple Python project
========================================

This project provides a simple utility to analysis SME difference.


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

It is possible to install the tool with `pip`::

    pip install sc-sme-diff-analysis

Configuration
-------------

Configuration files reading in this order, the first is the top most priority:

#. production.xml in current directory,
#. production.xml in <project_name> directory under User directory,
#. production.xml in <project_name> directory under /var/opt/sc/ directory,
#. default.xml in <project_name> directory under /var/opt/sc/ directory.

The default configuration file looks like this::

    dev:
      # whether this program is running is development mode
      dev_mode: False

License
-------

The script is released under the MIT License.  The MIT License is registered
with and approved by the Open Source Initiative [1]_.

.. [1] https://opensource.org/licenses/MIT
reader-writer-locks 0.0.3
Reader Writer Lock
License: MIT
Keywords: concurrency,multithreading,multiprocessing

# ReaderWriterLock

This Python package addresses the reader-writer problems. It supports both multithreading and multiprocessing environment in Python.

The package is implemented based on a [RLock](https://docs.python.org/3/library/threading.html#rlock-objects) and 2 [Condition Variables](https://docs.python.org/3/library/threading.html#condition-objects)

Refer to [Wikipedia](https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock) for full detail about reader-writer lock.


## Installation
`pip install reader-writer-locks`

## Usage
1. Choose between the following `option`

| Priority Policies | option |
|-------------------|--------|
| Not specified     | 0      |
| Reader priority   | 1      |
| Writer priority   | 2      |

2. Instantiate locks based on the chosen `option`

```
# in case of multithreading usage

from reader_writer_lock import MultithreadingFactory
rw = MultithreadingFactory(option)
r_lock = rw.get_read_lock()
w_lock = rw.get_write_lock()

# in case of multiprocessing usage

from reader_writer_lock import MultiprocessingFactory 
# same as multi threading cases
```

3. Use the generated lock to protect critical sections Pythonic usage

```
with r_lock:
    # Read
with w_lock:
    # Write
```

## Future work

1. To avoid starvation problem. (As the [Condition Object](https://docs.python.org/3/library/threading.html#condition-objects) in Python does not work in FIFO manner)
2. To add blocking & timeout interface, which follows the [RLock](https://docs.python.org/3/library/threading.html#rlock-objects) interface
reader-writer-lock 0.0.3
Reader Writer Lock
License: MIT
Keywords: concurrency,multithreading,multiprocessing

# ReaderWriterLock

This Python package addresses the reader-writer problems. It supports both multithreading and multiprocessing environment in Python.

The package is implemented based on a [RLock](https://docs.python.org/3/library/threading.html#rlock-objects) and 2 [Condition Variables](https://docs.python.org/3/library/threading.html#condition-objects)

Refer to [Wikipedia](https://en.wikipedia.org/wiki/Readers%E2%80%93writer_lock) for full detail about reader-writer lock.


## Installation
`pip install reader-writer-locks`

## Usage
1. Choose between the following `option`

| Priority Policies | option |
|-------------------|--------|
| Not specified     | 0      |
| Reader priority   | 1      |
| Writer priority   | 2      |

2. Instantiate locks based on the chosen `option`

```
# in case of multithreading usage

from reader_writer_lock import MultithreadingFactory
rw = MultithreadingFactory(option)
r_lock = rw.get_read_lock()
w_lock = rw.get_write_lock()

# in case of multiprocessing usage

from reader_writer_lock import MultiprocessingFactory 
# same as multi threading cases
```

3. Use the generated lock to protect critical sections Pythonic usage

```
with r_lock:
    # Read
with w_lock:
    # Write
```

## Future work

1. To avoid starvation problem. (As the [Condition Object](https://docs.python.org/3/library/threading.html#condition-objects) in Python does not work in FIFO manner)
2. To add blocking & timeout interface, which follows the [RLock](https://docs.python.org/3/library/threading.html#rlock-objects) interface