# pyhton-mvar
[](https://badge.fury.io/py/mvar) [](https://travis-ci.com/gabrik/mvar-python) [](https://codecov.io/gh/gabrik/mvar-python)
A Pyhton port of Haskell’s [Control.Concurrent.MVar](https://hackage.haskell.org/package/base/docs/Control-Concurrent-MVar.html).
This implementation blocks on get if the MVar is empty, and on put if the MVar is not empty.
A MVar is a mutable location which can either be empty, or contain a value. The location can be written to and read from safely from multiple concurrent python threads.
### Installation
pip3 install mvar
### Example
A brief example with 3 threads and one MVar is available in [example](example/example.py)
Copyright 2018 Gabriele Baldoni
Metadata
Release files for mvar 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| mvar-1.0.0.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mvar-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.5 kB
Release files / mvar-1.0.0.tar.gz
| Download URL | mvar-1.0.0.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
db506763ee1f2ba8b47b4e15f88c369d074288a95c8623d900ecba97acd2412f
|
|
BLAKE2b-256 checksum How to use checksums |
b6a93b093fd65970833195dec17f5e38f1a578cd3ef32a25cb3f78b2d777727c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.5
|
Release files / mvar-1.0.0-py3-none-any.whl
| Download URL | mvar-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61d22268db86ea7a9b79419e1b189b989a163418606a6d9084d9028fdc48075a
|
|
BLAKE2b-256 checksum How to use checksums |
6cc52ddcf5c9a75226f58c47ee15c6848c536b75e69aa895a3dba35b480d1176
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.1 CPython/3.8.5
|
Security for mvar 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.