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.1.tar.gz (13.5 kB view details)

Uploaded Source

Built Distribution

gregory-1.0.1-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gregory-1.0.1.tar.gz
  • Upload date:
  • Size: 13.5 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.1.tar.gz
Algorithm Hash digest
SHA256 7b01eb6deffc8ad32ab4e2b24c769ce2acedf822517c4292c8973a31cb2ee865
MD5 c9186173922feb8341fa2a8637cfe8b7
BLAKE2b-256 4a632d0bbe82ed05d9c6459483c7d91705b582cc55a171c545972ce2b5f61604

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gregory-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.0 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d826a67fba56c1a10a75aafac10a8ca067bbe694169e9173bcb8c817b1d2c291
MD5 e10d654a8dfda12d8f9c092586cda8df
BLAKE2b-256 5d86349acf32aec4c00141097c24a2f879aa4380be6094e09e52c0aaa3008fa9

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