Skip to main content

A package for interacting with the uu battery data handler project

Project description

UU Battery Package

This is a package intended for interacting with the UU battery data handler project. For more information, see UU-Battery-Data-Handler on GitHub.

Installation: pip install uu-battery

Requires

Features

The package features a function get_data(file_id) which fetches data with a specific ID and outputs it as a pandas dataframe. The file ID can be obtained at https://researchcloud.kemi.uu.se/datasets, for more information please refer to UU-Battery-Data-Handler on GitHub. On the first call of the session, the user will be prompted for their UU joint-weblogin authentication details. Note that it may take a few seconds to contact the CAS servers to authenticate the user. The session is then valid for 2 hours if active or 1 hour if inactive and no further entering of credentials is needed during this time. To forcefully invalidate the session call logout().

Example code:

import pandas as pd
import uu_battery

file_id="6316ffd3-67f3-4bd0-98c5-2beb6e944938" #Obtain from the frontend
cas_key="0cb1ab7c3196a6ac3263d24c34f248d7" #Obtain a new key for each new session

data=uu_battery.get_data(file_id, cas_key)
print(data.head(5))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uu_battery-0.2.0.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uu_battery-0.2.0-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file uu_battery-0.2.0.tar.gz.

File metadata

  • Download URL: uu_battery-0.2.0.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for uu_battery-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fb981f7bab753d2fd8fd332f072db569b41675d9ca0ffe620a7dfb43223331a4
MD5 638304850219dc85baf4141b54261edc
BLAKE2b-256 678fb0e5b8dcf3a4af7d45e56c171e5f88a335cc9d51021a965beac0402d3b84

See more details on using hashes here.

File details

Details for the file uu_battery-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: uu_battery-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.5

File hashes

Hashes for uu_battery-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bf6671c0b389d736159f14aa4302f2e88bc0a17d4b6443e5f22db8524e664006
MD5 5ff8d98c373eac5d4f0b6a8f4cc4aa04
BLAKE2b-256 a84eaa8bfbe91bf4afe7bab28bc73bf1d711225caec61848737a7a3777c46476

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page