Skip to main content

Creates slice objects with clean syntax.

Project description

make-slice

Creates slice objects with clean syntax.

Install

pip install make-slice

Usage

from make_slice import make_slice
# Create a slice object
s = make_slice[1:10:2]  # Equivalent to slice(1, 10, 2)
# Use the slice object
my_list = list(range(20))
print(my_list[s])  # Output: [1, 3, 5, 7, 9]

License

MIT License - See LICENSE for details.

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

make_slice-0.1.5.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

make_slice-0.1.5-py3-none-any.whl (2.2 kB view details)

Uploaded Python 3

File details

Details for the file make_slice-0.1.5.tar.gz.

File metadata

  • Download URL: make_slice-0.1.5.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.11.0-1014-azure

File hashes

Hashes for make_slice-0.1.5.tar.gz
Algorithm Hash digest
SHA256 e77c9fb64d5300970d957bddfc285c5aa0b9e8df3c7d07eff8c96e53d8e624ec
MD5 7890aa72399318e7d42fa46614b1b166
BLAKE2b-256 c6aec2c5b24bffd3c743b4518447bb094079c8e9a67e0fea29999738c7f6ced2

See more details on using hashes here.

File details

Details for the file make_slice-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: make_slice-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 2.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Linux/6.11.0-1014-azure

File hashes

Hashes for make_slice-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3a03dfd8c676d5f74d193993edc8bba68968f3abcff53a59bbc033411b46c82c
MD5 57aeeb9395eaf8f18be83bcf492eb190
BLAKE2b-256 dcca7482b43f2695cb46b99279c013b718ead5c9472f16d59e772e72be1bce41

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