Skip to main content

Sequence Edits

Compressed representation of sequence edits

Edits

class Skip:
  id: int
  tag = 'skip'

class Insert:
  idx: int
  value: T
  tag = 'insert'

Edit = Skip | Insert

All edits are applied w.r.t. the original list. So, order of edits only affects the order in which values are insterted to a same index.

Usage

import sequence_edits as se

edits = [
  se.Insert(idx=1, value='the'),
  se.Skip(idx=4)
]
xs = ['And',      'earth', 'was', 'without', 'no', 'form']
list(se.apply(edits, xs))
#  ['And', 'the', 'earth', 'was', 'without',       'form']

Metadata

Release files for sequence-edits 0.1.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sequence-edits 0.1.9
File Size Uploaded Provenance Actions
sequence_edits-0.1.9.tar.gz 2.5 kB Without provenance Details for sequence_edits-0.1.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sequence-edits 0.1.9
File Interpreter ABI Platform Actions
sequence_edits-0.1.9-py3-none-any.whl Python 3 none any Details for sequence_edits-0.1.9-py3-none-any.whl

Total release size: 5.6 kB

Release files / sequence_edits-0.1.9.tar.gz

Download URL sequence_edits-0.1.9.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
0e42609602fa54802edc53ee1634f170e67485b277bb5c04238d25e9550890f3
BLAKE2b-256 checksum
How to use checksums
3c2726ff50b35107effaa5e55b643ca4d7ab649cb8a69c85a6101ff25437637c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Release files / sequence_edits-0.1.9-py3-none-any.whl

Download URL sequence_edits-0.1.9-py3-none-any.whl
Size 3.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
19006b4f4a64656bc5525699994e4a4037c7390baf0d1df118d26ae8326db9e1
BLAKE2b-256 checksum
How to use checksums
5cd7463a2afb3ea7f9ba46094fc3d28fc64bb293e4a9d9d97b28d62c3558d4aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.11.9

Security for sequence-edits 0.1.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page