Skip to main content

Performs logical operations on event-style data.

Project description

Description

EventLogic is a lightweight library for performing logical operations on event-style or timestamp data. Logical operations on event-style data are commonplace in many fields. This library seeks to provide a generalized framework and methods for dealing with this data.

Installation

EventLogic can be installed with pip.

pip install --upgreade pip
pip install eventlogic

Examples

#There are 9 flavors of event interactions:

Case: Event: On Off Times:

1 a: |------| b: |------|

2 a: |------| b: |------|

3 a: |------| b: |------|

4 a: |------| b: |------|

5 a: |------| b: |------|

6 a: |------| b: |------|

7 a: |------| b: |------|

8 a: |------| b: |---|

9 a: |------| b: |----------|

#If we look at case 1:

a = Event(3,4)
b = Event(1,2)
a > b
a < b
a | b

#If we look at case 9:

a = Event(3,4)
b = Event(2,5)
a in b
a not in b
c = a & b

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

eventlogic-0.1.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

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

eventlogic-0.1.3-py3-none-any.whl (1.6 kB view details)

Uploaded Python 3

File details

Details for the file eventlogic-0.1.3.tar.gz.

File metadata

  • Download URL: eventlogic-0.1.3.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for eventlogic-0.1.3.tar.gz
Algorithm Hash digest
SHA256 3c5f1e9ff696924663d007e38620e81720b093b28b759406a467df07b0aa5b23
MD5 a7d682438c9e47dc33cdd6974d8f27d8
BLAKE2b-256 ea94e0b9366aabe041562ae5441a54eed68520f87d457fe74d74475e2830c0f6

See more details on using hashes here.

File details

Details for the file eventlogic-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: eventlogic-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 1.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.3

File hashes

Hashes for eventlogic-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 0d4fb6f112e37f540686707f4a90d2c589eb405e85bcf20109e5e9aa35ab3382
MD5 ca8495bc3cf023d55e751d6993b72c1d
BLAKE2b-256 bf6b75c9f917f0ec0b6a60dbbced876af187569fcfa2716099dd9db371a03cc8

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