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

Currently the package consists of a single function get_data(file_id, cas_key) which fetches data with a specific ID and outputs it as a pandas dataframe. As input the function requires a string with the ID of the file with the data and a CAS key of a user-session which is authorized to access to data. Both of these can be obtained at https://researchcloud.kemi.uu.se/datasets, for more information please refer to UU-Battery-Data-Handler on GitHub. While the file ID is constant for a specific file, note that the cas_key expires on session. The length of a session is configured by the CAS setup but by default this is 2 hours for an active session and 1 hour for an inactive session. After the end of a session the user needs to reauthenticate at https://researchcloud.kemi.uu.se to obtain a new CAS key.

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.1.2.tar.gz (2.8 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.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: uu_battery-0.1.2.tar.gz
  • Upload date:
  • Size: 2.8 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.1.2.tar.gz
Algorithm Hash digest
SHA256 ad361fb6073c7c2808a8b73a12ebb981b4824de038c04db1d69b4a82b3267bf4
MD5 5d94b3e9f66279ec1055dbdf0dc351bc
BLAKE2b-256 9ef941d6a2d93dd7cb37a44f6efe6f5fa25737df3bc769f8f39ae61867b7085d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: uu_battery-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8b75a1b9774252abcea562f69a2389beec445c591f96540f426d497d0ece72c9
MD5 9ddf2aa0205a68a9112a725eb0be7b90
BLAKE2b-256 27ae97bc1346cd59b6dac0cf941ece8dc43ec9e1f9f80df82425c31bd0f1ad9b

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