Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
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.
Agstream is written to be use with python 3 It requires Pandas (>= 0.12.0)::
pip install pandas
pip install agstream
code :
from agstream.session import AgspSession
session = AgspSession()
session.login("masnumeriqueAgStream", "1AgStream", updateAgribaseInfo=True)
session.describe()
for abs in session.agribases :
print ("****************************************")
print (abs)
df = session.getAgribaseDataframe(abs)
print (df.tail())
print("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
Code for UTC:
from agstream.session import AgspSession
session = AgspSession(timezoneName='UTC')
session.login("masnumeriqueAgStream", "1AgStream", updateAgribaseInfo=True)
session.describe()
for abs in session.agribases :
print ("****************************************")
print (abs)
df = session.getAgribaseDataframe(abs)
print (df.tail())
print("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 12:18:28+00:00 0.0 3.312 0.0
2021-03-28 12:33:29+00:00 0.0 3.316 0.0
2021-03-28 12:48:29+00:00 0.0 3.318 0.0
2021-03-28 13:03:29+00:00 0.0 3.314 0.0
2021-03-28 13:18:29+00: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 09:07:31+00:00 0.0 0.0 0.000
2021-03-31 09:22:20+00:00 0.0 0.0 3.298
2021-03-31 09:37:20+00:00 0.0 0.0 3.299
2021-03-31 09:52:20+00:00 0.0 0.0 3.298
2021-03-31 10:07:20+00:00 0.0 0.0 3.301
Ecriture des données dans le fichier Debitmetre Grenache Rang 10.xlsx
FAQs
Agriscope python library to access data
We found that agstream demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.