Metadata-Version: 2.1
Name: ordered-hash-set
Version: 0.0.9
Summary: Set that maintains insertion order
Home-page: https://github.com/buyalsky/ordered-hash-set
Author: Burak Dursunlar
Author-email: burak.dursunlar@hotmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Operating System :: OS Independent

================
Ordered Hash Set
================

.. image:: https://travis-ci.com/buyalsky/ordered-hash-set.svg?branch=master
    :target: https://travis-ci.com/buyalsky/ordered-hash-set

.. image:: https://badge.fury.io/py/ordered-hash-set.svg
    :target: https://badge.fury.io/py/ordered-hash-set

ordered-hash-set is data structure that stores immutable unique elements.
Unlike built-in set in python, it also keeps the insertion order.

Basic Usage
-----------

.. code-block:: python

  from ordered_hash_set import OrderedSet

  s = OrderedSet()

  s.add("London")
  s.add("Tokyo")
  s.add("Paris")
  s.add("Istanbul")
  s.add("London")
  s.remove("Tokyo")

  print(s) # prints: OrderedSet(London, Paris, Istanbul)

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

You can easily install via pip:

.. code-block:: console

    pip install ordered-hash-set



