trouve


Nametrouve JSON
Version 0.6.0 PyPI version JSON
download
home_pagehttps://github.com/rwhitt2049/trouve
SummaryEvent detection and transformation for time-series data
upload_time2023-08-26 21:34:19
maintainer
docs_urlNone
authorRy Whittington
requires_python
licenseMIT
keywords time_series timeseries iot sensor
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Trouve

======



A package to search for events in time-series data that match a boolean condition. Various

transformation functions are built in to filter and alter events.



See Trouve's documentation at https://trouve.readthedocs.io



Install

-------

``trouve`` is on the Python Package Index (PyPI):



::



   pip install trouve



Dependencies

------------



* ``numpy``



* ``pandas``



* ``toolz``



Example

-------



This finds events in a short sample of 1Hz, time-series data and filters out events based

on their duration



.. code-block:: python



   >>> import numpy as np

   >>> from trouve import find_events

   >>> import trouve.transformations as tt

   >>> x = np.array([1, 2, 2, 2, 0, 1, 2, 0, 2, 2])

   >>> period = 1 # period = 1 / sample_rate

   >>> duration_filter = tt.filter_durations(2, 3)

   >>> events = find_events(x == 2, duration_filter, period=1)

   >>> len(events)

   2

   >>> events.as_array()

   array([ 0.,  1.,  1.,  1.,  0.,  0.,  0.,  0.,  1.,  1.])


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/rwhitt2049/trouve",
    "name": "trouve",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "time_series,timeseries,iot,sensor",
    "author": "Ry Whittington",
    "author_email": "rwhitt2049@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f6/20/cc24192db4e958711b4f7e0eb2e846fd4e717418de4b31569955280a68b0/trouve-0.6.0.tar.gz",
    "platform": null,
    "description": "Trouve\r\n\r\n======\r\n\r\n\r\n\r\nA package to search for events in time-series data that match a boolean condition. Various\r\n\r\ntransformation functions are built in to filter and alter events.\r\n\r\n\r\n\r\nSee Trouve's documentation at https://trouve.readthedocs.io\r\n\r\n\r\n\r\nInstall\r\n\r\n-------\r\n\r\n``trouve`` is on the Python Package Index (PyPI):\r\n\r\n\r\n\r\n::\r\n\r\n\r\n\r\n   pip install trouve\r\n\r\n\r\n\r\nDependencies\r\n\r\n------------\r\n\r\n\r\n\r\n* ``numpy``\r\n\r\n\r\n\r\n* ``pandas``\r\n\r\n\r\n\r\n* ``toolz``\r\n\r\n\r\n\r\nExample\r\n\r\n-------\r\n\r\n\r\n\r\nThis finds events in a short sample of 1Hz, time-series data and filters out events based\r\n\r\non their duration\r\n\r\n\r\n\r\n.. code-block:: python\r\n\r\n\r\n\r\n   >>> import numpy as np\r\n\r\n   >>> from trouve import find_events\r\n\r\n   >>> import trouve.transformations as tt\r\n\r\n   >>> x = np.array([1, 2, 2, 2, 0, 1, 2, 0, 2, 2])\r\n\r\n   >>> period = 1 # period = 1 / sample_rate\r\n\r\n   >>> duration_filter = tt.filter_durations(2, 3)\r\n\r\n   >>> events = find_events(x == 2, duration_filter, period=1)\r\n\r\n   >>> len(events)\r\n\r\n   2\r\n\r\n   >>> events.as_array()\r\n\r\n   array([ 0.,  1.,  1.,  1.,  0.,  0.,  0.,  0.,  1.,  1.])\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Event detection and transformation for time-series data",
    "version": "0.6.0",
    "project_urls": {
        "Homepage": "https://github.com/rwhitt2049/trouve"
    },
    "split_keywords": [
        "time_series",
        "timeseries",
        "iot",
        "sensor"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d1aa5f0815d6d1f5e641faee09a2fb63cf44f7535ca1e03b94caa712e13afd80",
                "md5": "dfad42806a374d4c3bb3e7e5cedc09e4",
                "sha256": "7c292116afca19e70d5cebd9b41188a0719c5446a884f908a88f66c042f0c50c"
            },
            "downloads": -1,
            "filename": "trouve-0.6.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dfad42806a374d4c3bb3e7e5cedc09e4",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 9466,
            "upload_time": "2023-08-26T21:34:17",
            "upload_time_iso_8601": "2023-08-26T21:34:17.887160Z",
            "url": "https://files.pythonhosted.org/packages/d1/aa/5f0815d6d1f5e641faee09a2fb63cf44f7535ca1e03b94caa712e13afd80/trouve-0.6.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f620cc24192db4e958711b4f7e0eb2e846fd4e717418de4b31569955280a68b0",
                "md5": "ed96858d0314f97386ac0c0a7da704f6",
                "sha256": "1678f4b501945ce47250dc26df577a236d55d8af5acf9fceb18236817409d535"
            },
            "downloads": -1,
            "filename": "trouve-0.6.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ed96858d0314f97386ac0c0a7da704f6",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11547,
            "upload_time": "2023-08-26T21:34:19",
            "upload_time_iso_8601": "2023-08-26T21:34:19.189318Z",
            "url": "https://files.pythonhosted.org/packages/f6/20/cc24192db4e958711b4f7e0eb2e846fd4e717418de4b31569955280a68b0/trouve-0.6.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-08-26 21:34:19",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "rwhitt2049",
    "github_project": "trouve",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "landscape": true,
    "requirements": [],
    "tox": true,
    "lcname": "trouve"
}
        
Elapsed time: 0.14189s