Skip to main content

Sequentiality

Introduction

https://pypi.org/project/sequentiality/0.0.1/

Sequentiality is a Python package designed for extracting key features from a list of integers. It specializes in identifying various forms of Longest Consecutive Subsequences (LCS) within an integer list. This functionality is crucial for data analysis, statistical assessments, and algorithmic processing in numerous fields.

Table of Contents

Installation & Importing

pip install sequentiality
from Sequentiality import Sequentiality

Features & Usage

Sequentiality provides methods for the following feature extraction capabilities:

  1. find_LongestConseqSubseq: Finds the Longest Consecutive Subsequence of integers in the list.
  2. find_LongestConseqSubseq_1gap: Identifies the LCS with one gap allowed.
  3. find_LongestConseqSubseq_2gap: Extracts the LCS allowing two gaps (only once between them).
  4. find_LongestConseqSubseq_from_end: Determines the LCS counted from the end of the list.
  5. find_LongestConseqSubseq_from_end_with_1_gap: LCS from the end with one gap allowed (only once).
  6. find_LongestConseqSubseq_from_end_with_2_gap: LCS from the end with two gaps allowed (specific conditions apply).

Additional utility methods:

  • find_sequential_elements_with_difference_of_2: Finds pairs in the sequence with a difference of 2.
  • find_sequential_elements_with_difference_of_3: Finds pairs in the sequence with a difference of 3.
seq = Sequentiality()
sample = [1, 2, 3, 4, 5, 7, 8, 10, 11, 12, 13, 16]
print(seq.find_LongestConseqSubseq(sample))
print(seq.find_LongestConseqSubseq_1gap(sample))
print(seq.find_LongestConseqSubseq_2gap(sample))
print(seq.find_LongestConseqSubseq_from_end(sample))
print(seq.find_LongestConseqSubseq_from_end_with_1_gap(sample))
print(seq.find_LongestConseqSubseq_from_end_with_2_gap(sample))

Documentation

https://github.com/karaposu/sequentiality

License

MIT License

Copyright (c) 2024 Enes Kuzucu

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for sequentiality 0.0.2

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

Source distribution (sdist)

Source distribution for sequentiality 0.0.2
File Size Uploaded
sequentiality-0.0.2.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for sequentiality 0.0.2
File Interpreter ABI Platform
sequentiality-0.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.7 kB

Release files / sequentiality-0.0.2.tar.gz

Download URL sequentiality-0.0.2.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
0084e01a2eda3219ddbb3d9aea857083e22cd169433df51e427b266e9df079df
BLAKE2b-256 checksum
How to use checksums
47c608cc5196df9e219e23ef1041fbadff042967dc56b5edf4f6f499996b4498
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release files / sequentiality-0.0.2-py3-none-any.whl

Download URL sequentiality-0.0.2-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9ac94bb5d86599a781ee2f8d5e40ef273002eb360b114cd04a16d6e91874db80
BLAKE2b-256 checksum
How to use checksums
5756cac55cd6722bf5d5bf8db311d43d42febb81c236bd039dea7f990be6211a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.7

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

2 release files

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