Skip to main content

Python framework to manage time series.

Project description

Gregory

Python Framework to Manage Time Series.

Overview

The main goal of this framework is to simplify the collection of temporal data and related operations. It is based on the concepts of TimeSeries, as a collection of records associated with a given day, and Granularity, to indicate a given time interval (e.g. daily, weekly, monthly, etc.).

The object related to a single day (TimeSeriesData) contains two attributes:

  • day - the reference date for that record
  • series - a dictionary that collects for each information (key) the relative value for that day

On the time series it is possible to carry out numerous operations of different types, as for example:

  • add or remove records
  • search records by date
  • exclude records outside a determined range
  • resampling of data
  • interpolation of missing data
  • union and intersection
  • batch splitting and data aggregation
  • other

Installation

pip install gregory

Framework Structure

gregory
├── dataclass
│   └── time_series_data.py --> class used to manage daily data
│
├── granularity
│   └── granularity.py --> set of classes used for managing time intervals of different length
│
├── timeseries
│   ├── batches.py --> set of methods to operate on time series dividing them into batches
│   ├── expr.py --> set of operations between time series
│   ├── processing.py --> set of methods to elaborate time series
│   └── time_series.py --> core class that represents a series of daily records
│
└── util
    ├── agenda.py --> utils related to calendar info and evalutations
    ├── bisect.py --> utils related to binary search
    ├── decorators.py --> useful decorators
    ├── dictionaries.py --> utils related to operations on dictionaries
    └── relativedelta.py --> class that extends relativedelta with useful properties

License

MIT license, see LICENSE file.

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

gregory-1.0.3.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

gregory-1.0.3-py3-none-any.whl (17.3 kB view details)

Uploaded Python 3

File details

Details for the file gregory-1.0.3.tar.gz.

File metadata

  • Download URL: gregory-1.0.3.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for gregory-1.0.3.tar.gz
Algorithm Hash digest
SHA256 2dae57d20e8ad35360cb75726452c17492617551500107ba99e5d2a5fdc8c985
MD5 8a187915cd31b5560185aeb034848254
BLAKE2b-256 790bacc57889c2719c9a73317c59f87bb634a652547a6fae1f3537d17948e713

See more details on using hashes here.

File details

Details for the file gregory-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: gregory-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 17.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.13

File hashes

Hashes for gregory-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 d41a13c95ef426d33a73628969678d2646d6e076e67949e5b593b40b0f7e7293
MD5 554dd4ee46029b8382faeebbd6d98f8b
BLAKE2b-256 21976da878d5b49ba314b2697a7af4b5520829224394dabff0f78f47cd5138a5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page