Skip to main content

Typed Collections - A set of collection and grouping types for data pipelines

Project description

tcollections: Typed Collections

This package offers a set of collection and grouping types that are useful for data pipelines. The collections here offer a style that maintains the clarity and structure of traditional Python data structures while exposing a functional interface inspired by popular data science packages such as pandas.

Installation

pip install tcollections

Quick Start

from tcollections import tlist, group

# Create a typed list
data = tlist([1, 2, 3, 4, 5])

# Group data
groups = group(data, key=lambda x: x % 2)

Examples

See the examples in examples/ for detailed usage examples:

  • 01_introduction.ipynb - Basic introduction to tcollections
  • 02_data_analysis.ipynb - Data analysis examples

Features

  • Typed Collections: tlist and tset with enhanced functionality
  • Grouping Operations: Powerful grouping and aggregation functions
  • Functional Interface: Clean, chainable operations
  • Data Pipeline Ready: Designed for data processing workflows

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

tcollections-0.1.0.tar.gz (16.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tcollections-0.1.0-py3-none-any.whl (14.4 kB view details)

Uploaded Python 3

File details

Details for the file tcollections-0.1.0.tar.gz.

File metadata

  • Download URL: tcollections-0.1.0.tar.gz
  • Upload date:
  • Size: 16.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for tcollections-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0241bb45bd5c323b5c78944c216d796a5227f846d8c344a3fbe3ba821f8c3022
MD5 db64a5915fa26c405e4311da635cc223
BLAKE2b-256 fda390928ce16875813345277655c46d699cca7d6aaa2ff63a454ebb9901e27e

See more details on using hashes here.

File details

Details for the file tcollections-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tcollections-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 14.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.4

File hashes

Hashes for tcollections-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3dc9d12cd33c9d85bbb9242555a43e0f3bec3693212dde8351da9c6a158c6397
MD5 77d3af67c4da90ecf36c9c4df66fafd8
BLAKE2b-256 526d732e0540aa7e92c4eae945cd1c710bc9c523f47fc889c2e363a026372fb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page