Slender datastructures in Python
Project description
Welcome to Slender
Slender provides chainable, enhanced datastructures over the well-known built-ins.
- 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 slender 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://slender.readthedocs.io/ The project page is https://torokmark.github.io/slender
Contribution
- Fork it!
- Make your changes!
- 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.
Source Distribution
slender-0.1.3.3.tar.gz
(9.3 kB
view details)
File details
Details for the file slender-0.1.3.3.tar.gz
.
File metadata
- Download URL: slender-0.1.3.3.tar.gz
- Upload date:
- Size: 9.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6023a85638f93d5f516142349312ee345cbc660cefc6fb66d3a7f6f48ebb9e09 |
|
MD5 | 3ea7b78977cd836e1c4dc4208cc63485 |
|
BLAKE2b-256 | f3de6e20ff31bf42b2358b93a89101bad4859d686e51406c42bcd0be5324ce08 |