Skip to main content

A small demo package that provides simple collection utilities.

Project description

scm_collection

A small demo package that provides simple collection utilities. It is intended as an example of how to build and publish a package to PyPI.

Installation

pip install scm_collection

Usage

from scm_collection import chunk, deduplicate, flatten, frequency

chunk([1, 2, 3, 4, 5], 2)        # [[1, 2], [3, 4], [5]]
deduplicate([1, 1, 2, 3, 3])     # [1, 2, 3]
flatten([[1, 2], [3], [4, 5]])   # [1, 2, 3, 4, 5]
frequency("banana")              # {'b': 1, 'a': 3, 'n': 2}

License

MIT

Project details


Release history Release notifications | RSS feed

This version

99

Download files

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

Source Distribution

scm_collection-99.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

scm_collection-99-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file scm_collection-99.tar.gz.

File metadata

  • Download URL: scm_collection-99.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for scm_collection-99.tar.gz
Algorithm Hash digest
SHA256 8cc71712d1f1147cc8f198d295b78d8643fb4efe8c4feab14e5e1565b11edba2
MD5 1829b832b1b7e69425a0e6a801ddd490
BLAKE2b-256 19df774ae38bba3cb1c6f536eabda3b34cf48647914eb269989e489ffd1558c9

See more details on using hashes here.

File details

Details for the file scm_collection-99-py3-none-any.whl.

File metadata

  • Download URL: scm_collection-99-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for scm_collection-99-py3-none-any.whl
Algorithm Hash digest
SHA256 d52e78cb8b8c916aa9ecfdb378e91d0adc4ab19cf8a90fa12f6efb862706ff14
MD5 0ab35779fe6cf24c44628766c0d2b3e0
BLAKE2b-256 99fd48c5fdd3c05da98252039100dd73f9eec4f654fddc6c4a89e168dcdbbf08

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