Skip to main content

A module for accessing many array-like objects as if they are one array.

Project description

ConcatMap

The ConcatMap module provides a class for abstract indexing of concatenated, fixed-size entities. Basically, it's a way to access many things as if they were one thing.

Installation

To install the module, run:

pip install concatmap

Usage

from concatmap import Concat

# Create a list of lists of integers
lsts = [list(range(n)) for n in range(1, 11)]

# Create a Concat object from the list of lists
c = Concat.from_arrays(*lsts)

# Access elements in the Concat object
element = c[50]

# Access slices in the Concat object
slice = c[50:100]

# iterate over the Concat object elements
for x in c:
  print(x)

Testing

To run the unit tests for the module, run:

make ; make test

License

This module is licensed under the MIT License.

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

concat_map-0.1.2.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

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

concat_map-0.1.2-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file concat_map-0.1.2.tar.gz.

File metadata

  • Download URL: concat_map-0.1.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for concat_map-0.1.2.tar.gz
Algorithm Hash digest
SHA256 1dd77c4574c7d964a2182ade00ffc07e195364a8bc30597a387662658c34c456
MD5 10b24f95ae67804de9e231d2b74ed25f
BLAKE2b-256 53568b2e9f1df94259cb4f51ee77556b461491ed4691abaf4285a2c0c9b3dcd1

See more details on using hashes here.

File details

Details for the file concat_map-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: concat_map-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for concat_map-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dd00ed8ce08d6206256742c63fe17aea831f7b37a131aad8b01e67dba3be1e82
MD5 f7c24305aeab2d71ae3ff5ce13b116af
BLAKE2b-256 801601cca9d03b3a25b9172c23705d21c0eaa84da58f6ad2f95c89201c325aaa

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