semvec/pypi-packages huggingface dataset:
ml-mearec 0.1.7
MountainLab wrapper for MEArec

# ml_spyking_circus

MountainLab processor package that wraps [MEArec](https://github.com/alejoe91/MEArec).


## Conda installation

You need to have have previously installed [mountainlab using conda](https://github.com/flatironinstitute/mountainlab-js).

```
conda install -c flatiron ml_mearec
```

## Installation without conda

It is also possible to install this software without using conda. See the [MountainLab documentation](https://github.com/flatironinstitute/mountainlab-js).

## Singularity usage

This repository corresponds to a Singularity container. Therefore it is possible to run these processors without any installation and/or from a shared jupyter notebook.
streamsplit 0.1.1
A utility to extract TCP streams from (large) pcap files

# streamsplit
A utility to extract TCP streams from (large) pcap files
```
usage: streamsplit.py [-h] [-F FILTER] [-f] [-l] [-t] [-b BUFFER] filename

positional arguments:
  filename              PCAP file to be analyzed

optional arguments:
  -h, --help            show this help message and exit
  -F FILTER, --filter FILTER
                        Comma delimited list of hosts (ip:port) to filter
                        results. You can use 'any' in place of an address or
                        port. Example: '192.168.0.1:any,192.168.0.2:53,any:80'
  -f, --filenames       Includes exported filenames in the stream listing.
  -l, --list            Produces list of streams without exporting them to
                        individual PCAP files (faster)
  -t, --notime          Removes timestamps from the stream listing.
  -b BUFFER, --buffer BUFFER
                        (advanced) Adjusts packet buffer sizes for export
                        files. Generally should be left alone.
```
pySafetyNet-Attestation 0.0.5
Verify JWS-attestations from Google's SafetyNet.

# pySafetyNet-Attestation

A package for verifying JWS-attestations from Google's SafetyNet.

## Introduction

This package verifies [SafetyNet attestations](https://developer.android.com/training/safetynet/) by following the steps described on the page. It allows you to specify what parts of the JWS-body you wish to verify, but will always atleast verify the certificate and validity of the JWS.


## Usage

### Online verification

```python
from safetynet_attestation import Attestation

jws_token = "..."
api_key = "..."

attestation = Attestation(jws_token)
attestation.verify_online(api_key)
```

**`verify_online` takes the following optional parameters:**

* `url="<standard url>"`
	* If you for some reason wish to validate against some other url.

`<standard url>` can be found at [Google's SafetyNet documentation](https://developer.android.com/training/safetynet/).

### Offline verification

```python
from safetynet_attestation import Attestation


jws_token = "..."

attestation = Attestation(jws_token)
attestation.verify_offline()
```

**`verify_offline` takes the following optional parameters:**

* `apkPackageName=None`

* `nonce=None`

* `apkDigestSha256=None`
	* `str` of hex-values.

* `apkCertificateDigestSha256=None`
	* Can be `list` of `str` or `str`.

* `check_basicIntegrity=True`

* `check_ctsProfileMatch=True`

* `hostname="attest.android.com"`
	* Used for TLS validation of the certificate. Only modify if you know what you are doing.

A full explanation of the parameters above can be found at [Google's SafetyNet documentation](https://developer.android.com/training/safetynet/)

Once a token has been verified, the following fields can be used:

* `header`
	* A `dict`of the token's header.

* `body`
	* A `dict` of the token's body.

* `certificates`
	* A `list`of base64-decoded certificates present in the `header`.

* `public_key_pem`
	* The public key of the certificate.