Skip to content

Sh-wayz/enhancedcontainers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

enhancedcontainers

PYPI Version PYPI Downloads Views

Data structures improved built-in containers.

Usage

Stack

import enhancedcontainers as ec stack = ec.Stack() stack.push('World!') stack.push('Hello') print(stack.pop()) print(stack.pop()) # Output: Hello World!

Queue

import enhancedcontainers as ec queue = ec.Queue() queue.enqueue('Hello') queue.enqueue('World!') print(queue.dequeue()) print(queue.dequeue()) # Output: Hello World!

EnhancedList

import enhancedcontainers as ec elist = ec.EnhancedList() print(elist.append('Hello')) print(elist.append('World!')) # Output: Hello World!

EnhancedDict

import enhancedcontainers as ec edict = ec.EnhancedDict() edict.hello = "Hello" edict.world = "World!" print(edict.hello) print(edict.world) # Output: Hello World!

Install / Setup

Manually:

  • Clone the repository
git clone https://github.com/sh-wayz/enhancedcontainers.git 
  • cd into the directory
cd enhancedcontainers 
  • Run setup.py
python3 setup.py build install 

With pip:

python3 -m pip install enhancedcontainers 

Contribution

  • Fork the repository
  • Make your changes
  • Submit a pull request

About

Enhanced builtin types and some data structures.

Topics

Resources

License

Stars

Watchers

Forks

Languages