Skip to main content

Random crap I like to use

Project description

GitHub Actions Build Status miguel_lib PyPI Project Page Supported Python Versions PyPI - Implementation LGPL-2.1 License PyPI Download Count Code Style Black

Random crap I like to use

$ pip install miguel_lib

miguel_lib

  • ChunksIter:

    An Iterator which takes an interator and outputs its output in groups the size of a given chunk size

  • match_indices(string: str, substring: str) -> List[int]:

    Returns a list of the UTF-8 indices of disjoint matches, from start to end.

  • match_utf16_indices(string: str, substring: str) -> List[int]:

    Returns a list of the UTF-16 indices of disjoint matches, from start to end.

  • match_byte_indices(string: str, substring: str) -> List[int]:

    Returns a list of the byte indices of disjoint matches, from start to end.

  • rmatch_indices(string: str, substring: str) -> List[int]:

    Returns a list of the UTF-8 indices of disjoint matches, from end to start.

  • rmatch_utf16_indices(string: str, substring: str) -> List[int]:

    Returns a list of the UTF-16 indices of disjoint matches, from end to start.

  • rmatch_byte_indices(string: str, substring: str) -> List[int]:

    Returns a list of the byte indices of disjoint matches, from end to start.

  • utf16len(string: str) -> int:

    A function that returns the UTF-16 length of a string.

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

miguel_lib-0.3.0b7.tar.gz (23.9 kB view hashes)

Uploaded Source

Built Distributions

miguel_lib-0.3.0b7-pp39-pypy39_pp73-win_amd64.whl (144.8 kB view hashes)

Uploaded PyPy Windows x86-64

miguel_lib-0.3.0b7-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

miguel_lib-0.3.0b7-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl (1.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

miguel_lib-0.3.0b7-pp39-pypy39_pp73-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (492.0 kB view hashes)

Uploaded PyPy macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

miguel_lib-0.3.0b7-pp38-pypy38_pp73-win_amd64.whl (145.9 kB view hashes)

Uploaded PyPy Windows x86-64

miguel_lib-0.3.0b7-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

miguel_lib-0.3.0b7-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.whl (1.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

miguel_lib-0.3.0b7-pp38-pypy38_pp73-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (491.6 kB view hashes)

Uploaded PyPy macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

miguel_lib-0.3.0b7-pp37-pypy37_pp73-win_amd64.whl (147.5 kB view hashes)

Uploaded PyPy Windows x86-64

miguel_lib-0.3.0b7-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view hashes)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

miguel_lib-0.3.0b7-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.whl (1.1 MB view hashes)

Uploaded PyPy manylinux: glibc 2.5+ i686

miguel_lib-0.3.0b7-pp37-pypy37_pp73-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (495.5 kB view hashes)

Uploaded PyPy macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

miguel_lib-0.3.0b7-cp37-abi3-win_arm64.whl (142.8 kB view hashes)

Uploaded CPython 3.7+ Windows ARM64

miguel_lib-0.3.0b7-cp37-abi3-win_amd64.whl (144.9 kB view hashes)

Uploaded CPython 3.7+ Windows x86-64

miguel_lib-0.3.0b7-cp37-abi3-win32.whl (139.9 kB view hashes)

Uploaded CPython 3.7+ Windows x86

miguel_lib-0.3.0b7-cp37-abi3-musllinux_1_2_x86_64.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ x86-64

miguel_lib-0.3.0b7-cp37-abi3-musllinux_1_2_i686.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ i686

miguel_lib-0.3.0b7-cp37-abi3-musllinux_1_2_armv7l.whl (1.3 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARMv7l

miguel_lib-0.3.0b7-cp37-abi3-musllinux_1_2_aarch64.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ musllinux: musl 1.2+ ARM64

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ x86-64

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ s390x

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.1 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64le

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.2 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ppc64

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.0 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARMv7l

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.0 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.17+ ARM64

miguel_lib-0.3.0b7-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.1 MB view hashes)

Uploaded CPython 3.7+ manylinux: glibc 2.5+ i686

miguel_lib-0.3.0b7-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (490.5 kB view hashes)

Uploaded CPython 3.7+ macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64

Supported by

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