Skip to main content

DAtaSTructures in Python

Project description

Welcome to Dast

dast provides chainable, enhanced datastructures over the well-known built-ins.

Build Status Documentation Status PyPI PyPI - Python Version PyPI - License

  • List is an enhanced list having all the functionalities that the basic list buitl-in type has but extended with a lot of useful functions.
  • Set is a superset, works as the general set type but it does a lot more that the basic one.
  • Dictionary is a key-value pair container, like dict, which is builded with heavy functionalities.
  • Tuple is a finate ordered list over the built-in tuple.

Install

pip install dast

Usage

from dast import List

a = List([1, 2, 3, 4, 5]) \
  .delete_if(lambda x: x % 2 == 0) \
  .map(lambda x: x * 2) \
  .chain(['a', 'b']) \
  .each_with_index() \
  .to_list() # => [[0, 2], [1, 6], [2, 10], [3, 'a'], [4, 'b]]

Documentation

For further information, read the documentation that can be found: https://dast.readthedocs.io/

Contribution

  1. Fork it!
  2. Make your changes!
  3. Send a PR!

Project details


Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
dast-0.1.3.3.tar.gz (8.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page