scdata


Namescdata JSON
Version 0.9.1 PyPI version JSON
download
home_pagehttps://github.com/fablabbcn/smartcitizen-data
SummaryAnalysis of sensors and time series data
upload_time2023-10-04 17:17:30
maintainer
docs_urlNone
authoroscgonfer
requires_python>=3.6
licenseGNU-GPL3.0
keywords air sensors smart citizen
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            Smart Citizen Data
=======

[![DOI](https://zenodo.org/badge/97752018.svg)](https://zenodo.org/badge/latestdoi/97752018)
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/fablabbcn/smartcitizen-data-framework/master?filepath=%2Fexamples%2Fnotebooks)
[![PyPI version](https://badge.fury.io/py/scdata.svg)](https://badge.fury.io/py/scdata)

Welcome to **SmartCitizen Data**. This is a data analysis framework for working with sensor data in different ways:

- Interacting with several sensors APIs
- Clean data, export and calculate metrics
- Model sensor data and calibrate sensors
- Generate data visualisations - matplotlib, [plotly](https://plotly.com/) or [uplot](https://leeoniya.github.io/uPlot)
- Generate analysis reports in html or pdf and upload them to [Zenodo](http://zenodo.org)

A full documentation of the framework is detailed in [the Smart Citizen Docs](https://docs.smartcitizen.me/Data/Data%20Analysis/). 

## Installation

You can check it out in the [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/fablabbcn/smartcitizen-data-framework/master?filepath=%2Fexamples%2Fnotebooks) before installing if you want. Works with `Python 3.*` (tested until `python 3.9.5`).

You can just run:

```
pip install scdata
```

### Work on the source code

Simply clone the repository with:

```
git clone https://github.com/fablabbcn/smartcitizen-data.git
cd smartcitizen-data
```

Install `scdata` package with requirements:

```
python setup.py install
```

Or if you want to edit:

```
cd scdata
pip install --editable .
```

### Tokens and config

If you want to upload data to [Zenodo](http://zenodo.org), you will need to fill set an environment variable called `ZENODO_TOKEN` in your environment. You can get more instructions [here](https://docs.smartcitizen.me/Guides/data/Upload%20data%20to%20zenodo/) and with [this example](https://github.com/fablabbcn/smartcitizen-data/blob/master/examples/notebooks/06_upload_to_zenodo.ipynb).

A configuration file is available at `~/.config/scdata/config.yaml`, which contains a set of configurable variables to allow or not the local storage of relevant data in the data folder, normally in `~/.cache/scdata`:

```
data:
  cached_data_margin: 2
  load_cached_api: true
  reload_metadata: true
  store_cached_api: true
paths:
  config: /Users/username/.config/scdata
  data: /Users/username/.cache/scdata
  export: /Users/username/.cache/scdata/export
  interim: /Users/username/.cache/scdata/interim
  inventory: ''
  models: /Users/username/.cache/scdata/models
  processed: /Users/username/.cache/scdata/processed
  raw: /Users/username/.cache/scdata/raw
  reports: /Users/username/.cache/scdata/reports
  uploads: /Users/username/.cache/scdata/uploads
zenodo_real_base_url: https://zenodo.org
zenodo_sandbox_base_url: http://sandbox.zenodo.org
```

Also, `.env` files will be picked from `~/.cache/scdata`.

### Using with jupyter lab (optional)

It can also be used with `jupyter lab` or `jupyter`. For this [install juypterlab](https://github.com/jupyterlab/jupyterlab).

## Contribute

Issues and PR more than welcome!

## Funding

This work has received funding from the European Union's Horizon 2020 research and innovation program under the grant agreement [No. 689954](https://cordis.europa.eu/project/rcn/202639_en.html)



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fablabbcn/smartcitizen-data",
    "name": "scdata",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "air,sensors,Smart Citizen",
    "author": "oscgonfer",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/90/a8/6361df53c54a20d145257307043f5db21ac67d8b70d4e38c9f5dd9e30890/scdata-0.9.1.tar.gz",
    "platform": null,
    "description": "Smart Citizen Data\n=======\n\n[![DOI](https://zenodo.org/badge/97752018.svg)](https://zenodo.org/badge/latestdoi/97752018)\n[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/fablabbcn/smartcitizen-data-framework/master?filepath=%2Fexamples%2Fnotebooks)\n[![PyPI version](https://badge.fury.io/py/scdata.svg)](https://badge.fury.io/py/scdata)\n\nWelcome to **SmartCitizen Data**. This is a data analysis framework for working with sensor data in different ways:\n\n- Interacting with several sensors APIs\n- Clean data, export and calculate metrics\n- Model sensor data and calibrate sensors\n- Generate data visualisations - matplotlib, [plotly](https://plotly.com/) or [uplot](https://leeoniya.github.io/uPlot)\n- Generate analysis reports in html or pdf and upload them to [Zenodo](http://zenodo.org)\n\nA full documentation of the framework is detailed in [the Smart Citizen Docs](https://docs.smartcitizen.me/Data/Data%20Analysis/). \n\n## Installation\n\nYou can check it out in the [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/fablabbcn/smartcitizen-data-framework/master?filepath=%2Fexamples%2Fnotebooks) before installing if you want. Works with `Python 3.*` (tested until `python 3.9.5`).\n\nYou can just run:\n\n```\npip install scdata\n```\n\n### Work on the source code\n\nSimply clone the repository with:\n\n```\ngit clone https://github.com/fablabbcn/smartcitizen-data.git\ncd smartcitizen-data\n```\n\nInstall `scdata` package with requirements:\n\n```\npython setup.py install\n```\n\nOr if you want to edit:\n\n```\ncd scdata\npip install --editable .\n```\n\n### Tokens and config\n\nIf you want to upload data to [Zenodo](http://zenodo.org), you will need to fill set an environment variable called `ZENODO_TOKEN` in your environment. You can get more instructions [here](https://docs.smartcitizen.me/Guides/data/Upload%20data%20to%20zenodo/) and with [this example](https://github.com/fablabbcn/smartcitizen-data/blob/master/examples/notebooks/06_upload_to_zenodo.ipynb).\n\nA configuration file is available at `~/.config/scdata/config.yaml`, which contains a set of configurable variables to allow or not the local storage of relevant data in the data folder, normally in `~/.cache/scdata`:\n\n```\ndata:\n  cached_data_margin: 2\n  load_cached_api: true\n  reload_metadata: true\n  store_cached_api: true\npaths:\n  config: /Users/username/.config/scdata\n  data: /Users/username/.cache/scdata\n  export: /Users/username/.cache/scdata/export\n  interim: /Users/username/.cache/scdata/interim\n  inventory: ''\n  models: /Users/username/.cache/scdata/models\n  processed: /Users/username/.cache/scdata/processed\n  raw: /Users/username/.cache/scdata/raw\n  reports: /Users/username/.cache/scdata/reports\n  uploads: /Users/username/.cache/scdata/uploads\nzenodo_real_base_url: https://zenodo.org\nzenodo_sandbox_base_url: http://sandbox.zenodo.org\n```\n\nAlso, `.env` files will be picked from `~/.cache/scdata`.\n\n### Using with jupyter lab (optional)\n\nIt can also be used with `jupyter lab` or `jupyter`. For this [install juypterlab](https://github.com/jupyterlab/jupyterlab).\n\n## Contribute\n\nIssues and PR more than welcome!\n\n## Funding\n\nThis work has received funding from the European Union's Horizon 2020 research and innovation program under the grant agreement [No. 689954](https://cordis.europa.eu/project/rcn/202639_en.html)\n\n\n",
    "bugtrack_url": null,
    "license": "GNU-GPL3.0",
    "summary": "Analysis of sensors and time series data",
    "version": "0.9.1",
    "project_urls": {
        "Documentation": "https://docs.smartcitizen.me/",
        "Homepage": "https://github.com/fablabbcn/smartcitizen-data",
        "Source Code": "https://github.com/fablabbcn/smartcitizen-data"
    },
    "split_keywords": [
        "air",
        "sensors",
        "smart citizen"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2f4dd921152b523949f7e7f1351707d97820290cd118744b3b42baaad3a944fe",
                "md5": "6da4cb3a69b100402df393fa5056eda1",
                "sha256": "15c2e0768771dbdc22e4065e0b2dcfa4e845bc0d96cb55e51fc99e9fdb69b536"
            },
            "downloads": -1,
            "filename": "scdata-0.9.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6da4cb3a69b100402df393fa5056eda1",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 397489,
            "upload_time": "2023-10-04T17:17:28",
            "upload_time_iso_8601": "2023-10-04T17:17:28.040018Z",
            "url": "https://files.pythonhosted.org/packages/2f/4d/d921152b523949f7e7f1351707d97820290cd118744b3b42baaad3a944fe/scdata-0.9.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "90a86361df53c54a20d145257307043f5db21ac67d8b70d4e38c9f5dd9e30890",
                "md5": "e4519586c35de9e43acae231de3f454a",
                "sha256": "bd46b1b73df1b55e8228b7308f07c81d129cd74f6a8d810f6a136bc915c77e3b"
            },
            "downloads": -1,
            "filename": "scdata-0.9.1.tar.gz",
            "has_sig": false,
            "md5_digest": "e4519586c35de9e43acae231de3f454a",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 370627,
            "upload_time": "2023-10-04T17:17:30",
            "upload_time_iso_8601": "2023-10-04T17:17:30.562456Z",
            "url": "https://files.pythonhosted.org/packages/90/a8/6361df53c54a20d145257307043f5db21ac67d8b70d4e38c9f5dd9e30890/scdata-0.9.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-04 17:17:30",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fablabbcn",
    "github_project": "smartcitizen-data",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "scdata"
}
        
Elapsed time: 0.12085s