agstream


Nameagstream JSON
Version 1.0.4 PyPI version JSON
download
home_pagehttps://github.com/agriscope/agstream/
SummaryAgriscope python library to access data
upload_time2021-06-15 08:08:59
maintainer
docs_urlNone
authorAgriscope
requires_python
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            AgspStream
==============
   
Agriscope data interface for python


This module allows to get data from yours Agribases programmatically
Data are retreived as an Pandas Datagrams

The development map will introduce data computing capabilities, to enhance
data analysis comming from agricultural field.


  
  
What's New
===========
- (2021/06) v1.0.4  : Again optimize exception reporting when server is not joinable
- (2021/06) v1.0.3  : Optimize exception reporting when server is not joinable
- (2021/03) v1.0.2  : Optimize sensor data retrieving
- (2020/09) v0.0.13 : Better support of module and sensor position
- (2020/01) v0.0.12 : export some internals methods
- (2019/09) v0.0.10 : solve some display problems
- (2019/08) Porting to python 3
- (2018/05) Add functionnal information on Agribases (type, sampling)
- (2018/05) Solve bug on from, to date 
- (2018/02) First version 

Dependencies
=============

Agstream is written to be use with python 2.7 and python 3.6
It requires Pandas  (>= 0.12.0)::

    pip install pandas

Installations
=============

    pip install agstream
    

Uses cases
==========
code :

	from agstream.session import AgspSession
	session = AgspSession()
	session.login(u"masnumeriqueAgStream", u"1AgStream", updateAgribaseInfo=True)
	session.describe()
	for abs in session.agribases :
	    print (u"****************************************")
	    print (abs)
	    df = session.getAgribaseDataframe(abs)
	    print (df.tail())
    print(u"Fin du programme")

Output :

	**************************************************
	* Example 1 :  simplest way to get data
	* get the data, and feed an xlsfile
	**************************************************
	****************************************
	Compteur Mourvedre Rang 9(2301) AGRIBASE3S_STC SIGFOX containing 3 sensors
	Récuperation de 864 données
							compteur d'eau  alimentation #4  humectation foliaire
	2021-03-28 14:18:28+02:00             0.0            3.312                   0.0
	2021-03-28 14:33:29+02:00             0.0            3.316                   0.0
	2021-03-28 14:48:29+02:00             0.0            3.318                   0.0
	2021-03-28 15:03:29+02:00             0.0            3.314                   0.0
	2021-03-28 15:18:29+02:00             0.0            3.310                   0.0
	Ecriture des  données dans le fichier Compteur Mourvedre Rang 9.xlsx
	****************************************
	Debitmetre Grenache Rang 10(2299) AGRIBASE3S_STC SIGFOX containing 3 sensors
	Récuperation de 39 données
							humectation foliaire  compteur d'eau  alimentation #4
	2021-03-31 11:07:31+02:00                   0.0             0.0            0.000
	2021-03-31 11:22:20+02:00                   0.0             0.0            3.298
	2021-03-31 11:37:20+02:00                   0.0             0.0            3.299
	2021-03-31 11:52:20+02:00                   0.0             0.0            3.298
	2021-03-31 12:07:20+02:00                   0.0             0.0            3.301
	Ecriture des  données dans le fichier Debitmetre Grenache Rang 10.xlsx
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/agriscope/agstream/",
    "name": "agstream",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "",
    "author": "Agriscope",
    "author_email": "team@agriscope.fr",
    "download_url": "https://files.pythonhosted.org/packages/b8/86/fca90651e58af3bc749f9a94c50d966c1cdd2ec4cf1cdee9e1c753e66fa1/agstream-1.0.4.tar.gz",
    "platform": "",
    "description": "AgspStream\n==============\n   \nAgriscope data interface for python\n\n\nThis module allows to get data from yours Agribases programmatically\nData are retreived as an Pandas Datagrams\n\nThe development map will introduce data computing capabilities, to enhance\ndata analysis comming from agricultural field.\n\n\n  \n  \nWhat's New\n===========\n- (2021/06) v1.0.4  : Again optimize exception reporting when server is not joinable\n- (2021/06) v1.0.3  : Optimize exception reporting when server is not joinable\n- (2021/03) v1.0.2  : Optimize sensor data retrieving\n- (2020/09) v0.0.13 : Better support of module and sensor position\n- (2020/01) v0.0.12 : export some internals methods\n- (2019/09) v0.0.10 : solve some display problems\n- (2019/08) Porting to python 3\n- (2018/05) Add functionnal information on Agribases (type, sampling)\n- (2018/05) Solve bug on from, to date \n- (2018/02) First version \n\nDependencies\n=============\n\nAgstream is written to be use with python 2.7 and python 3.6\nIt requires Pandas  (>= 0.12.0)::\n\n    pip install pandas\n\nInstallations\n=============\n\n    pip install agstream\n    \n\nUses cases\n==========\ncode :\n\n\tfrom agstream.session import AgspSession\n\tsession = AgspSession()\n\tsession.login(u\"masnumeriqueAgStream\", u\"1AgStream\", updateAgribaseInfo=True)\n\tsession.describe()\n\tfor abs in session.agribases :\n\t    print (u\"****************************************\")\n\t    print (abs)\n\t    df = session.getAgribaseDataframe(abs)\n\t    print (df.tail())\n    print(u\"Fin du programme\")\n\nOutput :\n\n\t**************************************************\n\t* Example 1 :  simplest way to get data\n\t* get the data, and feed an xlsfile\n\t**************************************************\n\t****************************************\n\tCompteur Mourvedre Rang 9(2301) AGRIBASE3S_STC SIGFOX containing 3 sensors\n\tR\u00c3\u00a9cuperation de 864 donn\u00c3\u00a9es\n\t\t\t\t\t\t\tcompteur d'eau  alimentation #4  humectation foliaire\n\t2021-03-28 14:18:28+02:00             0.0            3.312                   0.0\n\t2021-03-28 14:33:29+02:00             0.0            3.316                   0.0\n\t2021-03-28 14:48:29+02:00             0.0            3.318                   0.0\n\t2021-03-28 15:03:29+02:00             0.0            3.314                   0.0\n\t2021-03-28 15:18:29+02:00             0.0            3.310                   0.0\n\tEcriture des  donn\u00c3\u00a9es dans le fichier Compteur Mourvedre Rang 9.xlsx\n\t****************************************\n\tDebitmetre Grenache Rang 10(2299) AGRIBASE3S_STC SIGFOX containing 3 sensors\n\tR\u00c3\u00a9cuperation de 39 donn\u00c3\u00a9es\n\t\t\t\t\t\t\thumectation foliaire  compteur d'eau  alimentation #4\n\t2021-03-31 11:07:31+02:00                   0.0             0.0            0.000\n\t2021-03-31 11:22:20+02:00                   0.0             0.0            3.298\n\t2021-03-31 11:37:20+02:00                   0.0             0.0            3.299\n\t2021-03-31 11:52:20+02:00                   0.0             0.0            3.298\n\t2021-03-31 12:07:20+02:00                   0.0             0.0            3.301\n\tEcriture des  donn\u00c3\u00a9es dans le fichier Debitmetre Grenache Rang 10.xlsx",
    "bugtrack_url": null,
    "license": "",
    "summary": "Agriscope python library to access data",
    "version": "1.0.4",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "3510397906b0252409f1052192c2feac",
                "sha256": "4dccfff267aba4e79bda1383c8793ac399f367c04a581953431cab89f0fa1de5"
            },
            "downloads": -1,
            "filename": "agstream-1.0.4.tar.gz",
            "has_sig": false,
            "md5_digest": "3510397906b0252409f1052192c2feac",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 14720,
            "upload_time": "2021-06-15T08:08:59",
            "upload_time_iso_8601": "2021-06-15T08:08:59.123319Z",
            "url": "https://files.pythonhosted.org/packages/b8/86/fca90651e58af3bc749f9a94c50d966c1cdd2ec4cf1cdee9e1c753e66fa1/agstream-1.0.4.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-06-15 08:08:59",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "agriscope",
    "error": "Could not fetch GitHub repository",
    "lcname": "agstream"
}
        
Elapsed time: 0.30109s