Agriscope python library to access data
Project description
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
- (2019/09) v 0.0.6 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
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 (u"Récuperation de %d données" % (df.shape[0] * df.shape[1]))
print (df.head())
xlsFileName = u"%s.xlsx" % abs.name
print (u"Ecriture des données dans le fichier %s " % xlsFileName)
df.to_excel(xlsFileName,engine=u'openpyxl')
print(u"Fin du programme")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agstream-0.0.8.tar.gz
(10.5 kB
view hashes)
Built Distribution
agstream-0.0.8-py3-none-any.whl
(24.7 kB
view hashes)