kollektor

📦 Collection utility for Python.


Keywords
python, collector, krema, collection, kremayard, unikorn
License
MIT
Install
pip install kollektor==1.0.0

Documentation

Kollektor

Collection utility for Python.

This project is a part of Krema.


Documentation

Check https://kremayard.github.io/kollektor/

Installation

Run unikorn add kremayard kollektor and you are ready to go!

Example

from unikorn import kollektor

collection = kollektor.Kollektor(limit=5, items=())

# Print Collection Length
print(collection.length)

# Add New Objects to the Collection
collection.append(1, 5, 6)

# Remove Object from Collection.
collection.remove(2)

# Print First & Last Object.
print(collection.first())
print(collection.last())

# Get all Items in the Collection
print(collection.items)