Metadata-Version: 2.1
Name: air-db
Version: 0.0.1
Summary: A data access layer for environmental time series datasets
Home-page: https://github.com/isezen/air-db
Author: Ismail SEZEN
Author-email: sezenismail@gmail.com
License: AGPLv3
Download-URL: https://pypi.org/project/air-db/#files
Project-URL: Bug Tracker, https://github.com/isezen/air-db/issues
Project-URL: Documentation, https://github.com/isezen/air-db/wiki
Project-URL: Source Code, https://github.com/isezen/air-db
Description: # air-db
        
        _air-db_ is a data access layer (DAL) to easily query environmental time series datasets from various sources. _air-db_ does not include any database. It is required to install corresponding database to work _air-db_ properly.
        
        To install sample database:
        
        ```python3
        from airdb import Database
        
        Database.install_sample()
        ```
        
        A database query can be implemented as follows:
        
        ```python3
        from airdb import Database
        
        db = Database('samp', return_as='df')
        
        q = db.query(param=['so2', 'pm10'], city='istanbul', date=['>2010-05-10', '<2012-10-07'], month=5)
        
        print(q)
        
        del db  # close connection to database
        
        ```
        
        and the output is:
        ```
              param      reg      city              sta                date     value
        0      pm10  marmara  istanbul      çatladıkapı 2010-05-10 00:00:00  0.798218
        1      pm10  marmara  istanbul      çatladıkapı 2010-05-10 01:00:00  0.946180
        2      pm10  marmara  istanbul      çatladıkapı 2010-05-10 02:00:00  0.884385
        3      pm10  marmara  istanbul      çatladıkapı 2010-05-10 03:00:00  0.537993
        4      pm10  marmara  istanbul      çatladıkapı 2010-05-10 04:00:00  0.136689
        ...     ...      ...       ...              ...                 ...       ...
        16123   so2  marmara  istanbul  şirinevler mthm 2012-05-31 19:00:00  0.697663
        16124   so2  marmara  istanbul  şirinevler mthm 2012-05-31 20:00:00  0.615755
        16125   so2  marmara  istanbul  şirinevler mthm 2012-05-31 21:00:00  0.489289
        16126   so2  marmara  istanbul  şirinevler mthm 2012-05-31 22:00:00  0.385102
        16127   so2  marmara  istanbul  şirinevler mthm 2012-05-31 23:00:00  0.039451
        
        [16128 rows x 6 columns]
        ```
        
Keywords: data,environment,pollutant,meteorology,turkey
Platform: linux
Platform: darwin
Platform: windows
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Topic :: Utilities
Requires-Python: >=3.6
Description-Content-Type: text/markdown
