semvec/pypi-packages huggingface dataset:
pyfsr 0.2.2
Python implementation of the FortiSOAR REST API
License: MIT
Requires Python: >=3.10
Keywords: api, fortinet, fortisoar, rest

# pyfsr

[Documentation](https://ftnt-dspille.github.io/pyfsr/) | [Installation](#installation) | [Quick Start](#quick-start)

**PyFSR** is a Python client library for the FortiSOAR REST API, allowing you to interact with FortiSOAR
programmatically.

## Installation

```bash
pip install pyfsr
```

## Quick Start

```python
from pyfsr import FortiSOAR

# Initialize the client
client = FortiSOAR('your-server', 'your-token')
# or
# client = FortiSOAR('your-server', ('your-username', 'your-password'))

# Generic get call to Alerts endpoint
response = client.get('/api/v3/alerts')

# Create an alert
alert_data = {
    "name": "Test Alert",
    "description": "This is a test alert",
    "severity": "High"
}
alert_record = client.alerts.create(**alert_data)

# List all alerts
alerts = client.alerts.list()

# Get a specific alert
alert = client.alerts.get("alert-id")
```

## Features

- Simple API interface
- Support for all FortiSOAR API endpoints using a generic `get`, `post`, `put`, `delete` methods
- Authentication handling
- Type hints for better IDE support

## Roadmap

- Add support for more API endpoints
- Add support for more complex API calls
    - Filtering
    - Pagination
    - Starting Playbooks
- HMAC Authentication
- Better Unit Testing

## Important Notes

This library is a work in progress and is not yet ready for production use.
FatmaBouzgarrou-DATALIB 0.1.0
A simple data manipulation and analysis library
License: MIT
Requires Python: >=3.7

# DataLib

**DataLib** est une bibliothÃ¨que Python simple pour la manipulation, l'analyse et la visualisation des donnÃ©es. Elle fournit des outils pratiques pour normaliser des donnÃ©es, gÃ©rer les valeurs manquantes, calculer des statistiques descriptives et crÃ©er des visualisations courantes.

## FonctionnalitÃ©s

- **Chargement et traitement des donnÃ©es** :
  - Chargement de fichiers CSV.
  - Normalisation des colonnes numÃ©riques.
  - Gestion des valeurs manquantes (remplissage ou suppression).
  
- **Statistiques descriptives** :
  - Calcul de la moyenne, mÃ©diane et Ã©cart-type.
  - Analyse des corrÃ©lations entre colonnes.

- **Visualisation** :
  - Histogrammes.
  - Matrices de corrÃ©lation.

## Installation

Vous pouvez installer la bibliothÃ¨que directement via pip aprÃ¨s publication sur PyPI :

```bash
pip install datalib
```


## Exemples  d'utilisation

### 1. Chargement et traitement des donnÃ©es

**Charger un fichier CSV :**

```python
import DataLib

data = DataLib.load_csv("path_to_file.csv")
```

**Normaliser les colonnes numÃ©riques :**

```python
normalized_data = DataLib.normalize(data)
```

**GÃ©rer les valeurs manquantes (remplissage avec la moyenne) :**

```python
clean_data = DataLib.fill_missing_values(normalized_data, method='mean')
```

### 2. Statistiques descriptives

**Calculer la moyenne, la mÃ©diane et l'Ã©cart-type :**

```python
mean = DataLib.mean(data)
median = DataLib.median(data)
std_dev = DataLib.std(data)
```

**Analyser les corrÃ©lations entre les colonnes :**

```python
correlation_matrix = DataLib.correlation(data)
```

### 3. Visualisation des donnÃ©es

**CrÃ©er un histogramme pour une colonne spÃ©cifique :**

```python
DataLib.plot_histogram(data, column='age')
```

**CrÃ©er une matrice de corrÃ©lation :**

```python
DataLib.plot_correlation_matrix(data)
```
```
exaroton 0.0.7
Python API wrapper for exaroton
License: MIT
Requires Python: <4.0,>=3.9

# exaroton

An unoffial Python Wrapper for the [exaroton API](https://developers.exaroton.com/)

Simply get an API Token from [your Account](https://exaroton.com/account/) and you're good to go.

[![Python: 3.7+](https://img.shields.io/badge/Python-3.7%2B-blue)](https://www.python.org/downloads)
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License: MIT](https://img.shields.io/badge/License-MIT-red)](https://gitlab.com/ColinShark/exaroton/-/blob/master/LICENSE)
<!-- [![Gitmoji: 💻🔥](https://img.shields.io/badge/Gitmoji-%F0%9F%92%BB%F0%9F%94%A5-yellow)](https://github.com/carloscuesta/gitmoji#readme) -->

## Installation

exaroton requires Python 3.7 or newer.

```sh
python3 -m pip install -U exaroton
```

A Virtual Environment is recommended to not mess with system installs.
This module has minimal requirements (`requests`), but you can never be safe enough.

```sh
python3 -m venv venv
source ./venv/bin/activate
pip install exaroton
```

## Example Usage

Currently all methods are (in my opinion) well documented and properly typehinted.
If you see something wrong, don't hestitate to [create an Issue](https://github.com/ColinShark/exaroton/issues/new).

I may create a full list of all available methods, or even utilize readthedocs.org

```python
# Import exaroton and set our token
>>> from exaroton import Exaroton
>>> exa = Exaroton("API_TOKEN")

# Get information about the authenticated account
>>> exa.get_account()
{
    "_": "Account",
    "name": "Username",
    "email": "email@example.org",
    "verified": true,
    "credits": 420.69
}

# Get a list of our servers
>>> exa.get_servers()
[
    {
        "_": "Server",
        "id": "7ZxuNK5RX879BFaH",  # Thanks, random.org!
        ...
    },
    {
        "_": "Server",
        "id": "Kf48Td5iVlr8Xu24",  # Thanks, random.org!
        ...
    }
]

# Upload logs to https://mclo.gs
>>> exa.upload_logs("7ZxuNK5RX879BFaH")
{
    "_": "Logs",
    "id": "N5FR4K2",  # Thanks, random.org!
    "url": "https://mclo.gs/N5FR4K2",
    "raw": "https://api.mclo.gs/1/raw/N5FR4K2"
}

# Print logs (this'll most likely spam your output lol)
>>> exa.get_server_logs("7ZxuNK5RX879BFaH")
'one extremely long string with lines seperated by the newline escape character \n'
# It'll print each line seperately when used with `print()`!
```

All you need to make calls to the API is the Authentication Token you can get
from your account page. If you make server-specific calls, you'll need that
servers ID, too.


## The boring stuff

Licensed under [MIT](https://github.com/ColinShark/exaroton/blob/master/LICENSE)