Skip to main content

Collection utils

Project description

List of collections similar to JAVA style collection for Python

Installation

$ pip install collection-plus

Usage

from collection import *

l = List()
l.add(1)
l.is_empty()

vec = Vector()
vec.add(1)

stack = Stack()
stack.push(1)
stack.pop()
item = stack.peek()

queue = Queue()
queue.offer(1)
item = queue.peek()
queue.poll()

Build Project

source distribution: python setup.py sdist wheel distribution: python setup.py bdist_wheel

Distribute

test repo: twine upload –repository-url https://test.pypi.org/legacy/ dist/* prod repo: twine upload dist/*

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

collection-plus-0.0.6.tar.gz (2.2 kB view hashes)

Uploaded source

Built Distribution

collection_plus-0.0.6-py2.py3-none-any.whl (4.4 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page