You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

dtools.containers

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dtools.containers

### Developer Tools - Container-like data structures

1.0.0
Source
pipPyPI
Maintainers
1

Developer Tools - Container based data structures

Python package of modules implementing container-like data structures. This project is part of the Developer Tools for Python dtools. namespace project.

Overview

Single item box - dtools.containers.box

Container holding at most one object of a given type. This stateful (mutable) container can contain only 0 or 1 items. Invariant in its contents. Both map and bind return new objects. Iterable.

Functional tuple - dtools.containers.functional_tuple

Subclassed tuple with a more functional interface. Gives tuple FP methods. Designed to be further inherited from. Hashable if all contained items are hashable.

Immutable list - dtools.containers.immutable_list

A hashable, immutable, list-like data structure. Hashability will be enforced when instantiated. Mutable list methods will return new objects.

Maybe monad - dtools.containers.maybe

An implementation of the maybe (optional) monad. Data structure represents a possibly missing value. Useful in implementing exception free code paths.

Either monad - dtools.containers.xor

An implementation of a left biased either monad. Data structure representing either a "left" or "right" value, but not both. These two values can be the same or different types. The "left" value is usually taken to be the "happy path" of code flow. The "right" value is often used for an error condition or a text string describing what went wrong.

Keywords

boxes

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts