Skip to main content

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.

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 --upgrade 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.9.tar.gz (3.9 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.9-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for eventlogic-0.1.9.tar.gz
Algorithm Hash digest
SHA256 b817a045e69424d8a5dbefcb2abd91646d07134af6433980f7d8d06db8125fa6
MD5 b575d480b36140eb559465ec6f6d1cc8
BLAKE2b-256 d430e40d42c8cc26002750f160807c9691f66e8a0139c3643052882ea0c50dd8

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for eventlogic-0.1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 8be9ca3f91d9d0a41decb7efe00d0681caa206b12ab9bd1892b9b3c38df15d21
MD5 307f0b8334ffca38624efd94ebd79d38
BLAKE2b-256 7f52eb77b3fb34b53629e9e3f7501a3bc20c565955b1785cb1095f797221ce09

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