Skip to main content

Simple Python library written in Rust for analyzing and scoping out patterns in time series data

Project description

TimeScope

pypi license

Simple Python library written in Rust for analyzing and scoping out patterns in time series data. This is a pet project to practice programming in Rust and currently only contains two algorithms:

  • ED-Pelt change point detection
  • Steady State detection (based on change points)

Install

pip install timescope

Example Use

from timescope import TimeSeriesData, cpd_ed_pelt, ssd_cpd

A = [0, 0, 0, 0, 10, 10, 10, 10, 10, 0, 0, 0, 0]
B = list(range(len(A)))

cps = cpd_ed_pelt(A, 1)
print(f"change points: {cps}")
# change points: [4, 9]

ts = TimeSeriesData(B, A)
print(ts)
# TimeSeriesData(
#   time=[0, 1, ..., 11, 12],
#   data=[0, 0, ..., 0, 0],
#   granularity=1,
#   is_step=false
# )

resampled_ts = ts.equally_spaced_resampling()
print(resampled_ts.slice(3, 6))
# TimeSeriesData(
#   time=[3, 4, 5, 6],
#   data=[0, 10, 10, 10],
#   granularity=1,
#   is_step=false
# )

ss_map = ssd_cpd(resampled_ts, 1, 1.0, -1.0)
print(f"steady state map: {ss_map.data}")
# steady state map: [1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0, 1.0, 0.0, 1.0, 1.0, 1.0]

For more comprehensive examples, check the notebooks folder.

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

timescope-0.1.1.tar.gz (25.3 kB view details)

Uploaded Source

Built Distributions

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

timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

timescope-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl (293.3 kB view details)

Uploaded PyPymacOS 10.7+ x86-64

timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

timescope-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl (293.2 kB view details)

Uploaded PyPymacOS 10.7+ x86-64

timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ x86-64

timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded PyPymanylinux: glibc 2.17+ ARM64

timescope-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl (296.5 kB view details)

Uploaded PyPymacOS 10.7+ x86-64

timescope-0.1.1-cp37-abi3-win_amd64.whl (165.6 kB view details)

Uploaded CPython 3.7+Windows x86-64

timescope-0.1.1-cp37-abi3-win32.whl (164.0 kB view details)

Uploaded CPython 3.7+Windows x86

timescope-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl (1.3 MB view details)

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

timescope-0.1.1-cp37-abi3-musllinux_1_2_i686.whl (1.3 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ i686

timescope-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl (1.4 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARMv7l

timescope-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.7+musllinux: musl 1.2+ ARM64

timescope-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB view details)

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

timescope-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl (1.3 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ s390x

timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl (1.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64le

timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl (1.2 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ppc64

timescope-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl (1.1 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARMv7l

timescope-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.1 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.17+ ARM64

timescope-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl (1.1 MB view details)

Uploaded CPython 3.7+manylinux: glibc 2.5+ i686

timescope-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl (576.9 kB view details)

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

timescope-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl (295.6 kB view details)

Uploaded CPython 3.7+macOS 10.7+ x86-64

File details

Details for the file timescope-0.1.1.tar.gz.

File metadata

  • Download URL: timescope-0.1.1.tar.gz
  • Upload date:
  • Size: 25.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for timescope-0.1.1.tar.gz
Algorithm Hash digest
SHA256 a89fa778bbf1eedf2923895c32a5fdb737b410d2e566bb4f847b5feda0cedfd1
MD5 f8d8618a53cab817a816714ce291c6bf
BLAKE2b-256 4443280760a27c596debb3b84051124160f49f901eef4b0a77c4bd32f0e0ae65

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f63f37a147d728d3459451e159286b089ac445844cd25e3af7762198e93dd11c
MD5 fb5e2734cb00914c95ae4908535ca9bf
BLAKE2b-256 47b43e15701da87c8bb7331c5f8e0490415e6313b223fbe805cf7c19bae4a68a

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a3a85623ab3301266319d3940cda5d7da9e97096dd22e5e2e4eb565e329e1ed
MD5 43a619bdb9b600e234b246bd6349d6c1
BLAKE2b-256 113229bf072ce6bc87df5d1463dcd4c0f7bdc2b67ce7a107ff355e467f429f1f

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp39-pypy39_pp73-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 dcabe3dbd90af544fb156b39c2d14827b080e8d226eadfdcf9c70bd02287acb1
MD5 46a1e9d47c232d1df45a175521c90ed9
BLAKE2b-256 598cba02095b57ace70face063f721fd7d6d31b47f571aaf5474f55fb1ee414a

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3388527f595ac77e4021849ff1602f3d90b86dd86b1aef6b06b77a0812d433a2
MD5 2a6a198aad01a37211d92d3e03c45e23
BLAKE2b-256 8becf2b6e4a9a6f07f65723d7a3fb0a7839595a095339a14a9a8b7681ad93289

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 5894e265e7d986655a8677cfe4e7341ab1884f8aa7dd7b1494ec756ebe16b5e1
MD5 472caac34a4bc8543a33d930b8fc5ea5
BLAKE2b-256 69f8c4318f0f802b48374ca2c0cf8c3fec627bacd498dac8288d3d60cb9e7cee

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp38-pypy38_pp73-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 0d892e5ec1edea174fd91586110a2e5f23d18363975dba6348b0dd9b296dc8af
MD5 c4e5942a90beccc8c487f7a72434fca1
BLAKE2b-256 846bd4e5608390f849469c3aaf77d2ec32a711891fd4cca08b9294565f96fe8f

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a4892dc7300fb9ffac8fb707257bf06e0340b5fa838584f6744aee5f808e6454
MD5 3a45b3cca4734948b217249a5c6716d9
BLAKE2b-256 db51c3b118b107bcbb5a17db5118904937b7e7cc3fe47ad6fb4828ef3ae352d8

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 03713fdfecffad76368a1ea28562a8802c24894e97d854f27087b2ae490a1870
MD5 a943905f597bf67dac2f118dfcec61d5
BLAKE2b-256 46b53f0aa13029a7adcddc614c47e193092724025f08c518c8a3fd4785c8c3c3

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-pp37-pypy37_pp73-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 b2b45486e3e35ac7407e48b2be3aaa669255b744ef0f85014746b27abc4af16b
MD5 dfb375774615e5332e0f83066dd17b47
BLAKE2b-256 cfc66f4294d22d3b3da5c26f0f71d433509fbc26a230d421ea45fa22ecd9e5a3

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-win_amd64.whl.

File metadata

  • Download URL: timescope-0.1.1-cp37-abi3-win_amd64.whl
  • Upload date:
  • Size: 165.6 kB
  • Tags: CPython 3.7+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for timescope-0.1.1-cp37-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9d87a50b8a3b336d5707f8faf2c07a4c79a7409ddf9c3698ca56be9ed4cb7bd0
MD5 3b81cb1afea69952e596f0e1dcd36d13
BLAKE2b-256 9469b06595c55119173d53ca3764c530476f4f47db9bf51a308716d97850d33a

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-win32.whl.

File metadata

  • Download URL: timescope-0.1.1-cp37-abi3-win32.whl
  • Upload date:
  • Size: 164.0 kB
  • Tags: CPython 3.7+, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for timescope-0.1.1-cp37-abi3-win32.whl
Algorithm Hash digest
SHA256 82a959584ff50aedbe6465d40d95109fe443b5f63ddda64d70af9da161822354
MD5 574d66fc3361031d3ac609f44114fa6c
BLAKE2b-256 7fe84f33ca7e3565b48c1c69858ff578986a15a99aaf2e65e9ef9904a747344d

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 b460657b3e485f7d6260399df34d710a190d2b6ab4c1626e47d121ae9272bda3
MD5 75a4bf551fb327723eeb644eb1d63932
BLAKE2b-256 6e08ded5d13a064351badb2d2a6b385abf516de32b4da2cffbb53d056c76cd27

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-musllinux_1_2_i686.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-musllinux_1_2_i686.whl
Algorithm Hash digest
SHA256 58e4ab419c6f32d666499dd793e2cbbc035f8f9d0495a305580ca346997cdfa1
MD5 90ceae2d6fde2ffcbc4709a57d957666
BLAKE2b-256 797bcc9a74f6c97905ea6ef7ea8dc82d7884841634883404db05f044ecd57643

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-musllinux_1_2_armv7l.whl
Algorithm Hash digest
SHA256 dfff9d51366346bd191b29886c55de3d890990a939a2565aa7baf63fcc3981bf
MD5 70b5816f5157cec860dfb7d248e5ac37
BLAKE2b-256 ebab00bad127eeab6754be68adaf9fdef3c384f214981ea6f92f460f453fc384

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-musllinux_1_2_aarch64.whl
Algorithm Hash digest
SHA256 654e163fd45370e63a77b5863fed7e9e07e331fc17a11b7cb576c9854fe31e70
MD5 a2ca0be49ea78f02c1eac22448e3a921
BLAKE2b-256 ff3d950c8a2b44506dd92772322ac86dc3808bce44e163c7ccd8e55b6605bc9d

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 721146abe76277dc4e68678ba196cfd6d57789404b743ee09cb3ec2e7387b46d
MD5 a20f33d88e5571627d487ecf554ea7ad
BLAKE2b-256 afb09e692921fe843905c5f7823d3f5cd2c61f5d44cb8d094e36147e2f032542

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_17_s390x.manylinux2014_s390x.whl
Algorithm Hash digest
SHA256 4af1300d3ec2428c6b52f17f4f1fef4764eb915a8b3d5d20e0f3472d089ceb80
MD5 db6e8518b52f62cdff079fcffe690fa5
BLAKE2b-256 35a0b990a2ec251906fb73cd2a7e8ea14c3c9fc407aea1881e4b36e585d00f6d

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl
Algorithm Hash digest
SHA256 6914a19fe33a4edb91cd655bd3229c31c63c54bdc4b94e60f05fe0213735328f
MD5 55c96172f52d0c8921fce2d35720bc72
BLAKE2b-256 af11ca15f0986b72369a1fcc4c2f07bb32d718d026f648b816bb66c25b071117

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_17_ppc64.manylinux2014_ppc64.whl
Algorithm Hash digest
SHA256 a21f65ff5a715e9a7f24768fd39d659880b5996b747f5ff4184e912a31375430
MD5 f45baab7d00a6c0d181a913e6db322de
BLAKE2b-256 41108f550725c3e21b1a688a4a3667061bae2395722237550787a2dda2bd4c7d

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_17_armv7l.manylinux2014_armv7l.whl
Algorithm Hash digest
SHA256 fabb5d223a233af75e1355915dba9ec8357efdb294b5c59f9134252d83b9276c
MD5 eba79af572a6f1daaf696b67c9f25976
BLAKE2b-256 3c9f99cdf6209c0781251c5d769484cea47fd286b8526166b9ba8fc85ba53aef

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 7d93417f7582f6e41680706d2d0c0fdbf0fdfd6543e74382fec15221f938dfa8
MD5 5913061cd7d196b17a0af17dbeef9688
BLAKE2b-256 c7a98b7317940a3a44bee9af28f9dadf7a4f92d77788eaf2bb062067551c27cf

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-manylinux_2_5_i686.manylinux1_i686.whl
Algorithm Hash digest
SHA256 b1bd8746aba7bfa6022117c64d0ca848281fd0b1b8ade5ba4c16bf9caae1cb62
MD5 c3f6ff2bef1d7d2b32ebe16039af92f4
BLAKE2b-256 324e353acaab8721229d96ca747f00c6a4308d9590f3b71213b40660f006b31b

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 e676f474b5c609e6ee54a82cf97968d08ee11d054e2c096130e6b02d25fcf349
MD5 3661e2e306cb9d4f1090d3498b2d43f6
BLAKE2b-256 c031d0d6b357cb00d2224e2bedb0c5d6f62d9a95aeccb40cf00593c1c0888ac8

See more details on using hashes here.

File details

Details for the file timescope-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl.

File metadata

File hashes

Hashes for timescope-0.1.1-cp37-abi3-macosx_10_7_x86_64.whl
Algorithm Hash digest
SHA256 97b270acdd6f4d8d727cd55be6e124c61a0e433622a9af3a5717c9e8b61945a9
MD5 a84abc47347730c60785f7fab0a98731
BLAKE2b-256 d3c66801be0237657e87ca682551aac567a156b4df129ade1229313b2df01752

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