semvec/pypi-packages huggingface dataset:
skn 1.0.0
Accelerate your data analysis from the SKN database with our simplified InfluxDB client!
Requires Python: >=3.10, <3.12

# SKN-Python-Library

## For Users

This library is intended for developers. As a user, you do not need to clone this library. Please go to the SKN
Notebooks repository instead:

https://github.com/RevolveNTNU/SKN-Notebooks

## For Developers

### How to Install

1. Install this repository with pip using the following command:

 ```bash
 pip install git+ssh://git@github.com/RevolveNTNU/SKN-Python-Library.git
 ```

2. Run the `skn-setup` command and enter your InfluxDB credentials when prompted:

 ```bash
 skn-setup
 ```

3. Clone this repository to your local machine:

 ```bash
 git clone git@github.com/RevolveNTNU/SKN-Python-Library.git
 ```

4. If you want to test your changes, do this in the root folder and enter your InfluxDB credentials when prompted:

 ```bash
 pip install .
 skn-setup
 ```

### Test Your Module

To verify the installation, execute the following Python code:

```python
from skn.query import Query
from skn.CAN.fields.channels import *
from skn.CAN.tags.tags import *

result = Query().all_tags(Log_id.CAN_2022_08_20_190944).channels(VCU.INS.VX).execute()
result.plot_line()
result.show()
```

If successful, you should see a VX graph of AsbjÃ¸rn's FSG autocross run from 2022.

### How to Get the Latest Logs

To update the logs, use the following command:

```python
from skn import utils

utils.update_logs()
```

This may take a few seconds. It's not necessary to perform this update every time you query the logs.

### How to Update the Module

To update the SKN module, use the following function:

```python
from skn import utils

utils.update_skn()
```

Select the folder where SKN is installed when prompted.

SKN is now updated and ready to use!