Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jwcnewton/ezqueue

Zero dependancy in memory queue
https://github.com/jwcnewton/ezqueue

Last synced: about 1 month ago
JSON representation

Zero dependancy in memory queue

Awesome Lists containing this project

README

        

# ezqueue
Zero dependency in-memory queue

[![Python](https://img.shields.io/badge/python-3.7-blue)]()
[![codecov](https://codecov.io/gh/jwcnewton/ezqueue/branch/main/graph/badge.svg)](https://codecov.io/gh/jwcnewton/ezqueue)
[![Documentation Status](https://readthedocs.org/projects/ezqueue/badge/?version=latest)](https://ezqueue.readthedocs.io/en/latest/?badge=latest)
[![Build](https://github.com/jwcnewton/ezqueue/workflows/build/badge.svg)](https://github.com/jwcnewton/ezqueue/actions/workflows/build.yml)
[![Deploy](https://github.com/jwcnewton/ezqueue/actions/workflows/deploy.yml/badge.svg)](https://github.com/jwcnewton/ezqueue/actions/workflows/deploy.yml)

## Installation

```bash
$ pip install -i https://test.pypi.org/simple/ ezqueue
```

## Features

- Fix queue size
- Key, value queue

## Dependencies

- Zero

## Usage

```py
from ezqueue import ezqueue

queue = ezqueue(3)

for i in range(2):
queue.put(i, { "msg": "Hello world" })

for i in range(1):
queue.put(i, { "msg": "Hello world!" })

print(queue.getQueue())
```

## Documentation

The official documentation is hosted on Read the Docs: https://ezqueue.readthedocs.io/en/latest/

## Contributors

We welcome and recognize all contributions. You can see a list of current contributors in the [contributors tab](https://github.com/jwcnewton/ezqueue/graphs/contributors).

### Credits

This package was created with Cookiecutter and the UBC-MDS/cookiecutter-ubc-mds project template, modified from the [pyOpenSci/cookiecutter-pyopensci](https://github.com/pyOpenSci/cookiecutter-pyopensci) project template and the [audreyr/cookiecutter-pypackage](https://github.com/audreyr/cookiecutter-pypackage).