semvec/pypi-packages huggingface dataset:
process-nwb 0.1.4
ECoG preprocessing scripts for NWB files.

# process_nwb

[![Build Status](https://travis-ci.com/BouchardLab/process_nwb.svg?branch=master)](https://travis-ci.com/BouchardLab/process_nwb) [![codecov](https://codecov.io/gh/BouchardLab/process_nwb/branch/master/graph/badge.svg)](https://codecov.io/gh/BouchardLab/process_nwb)



Functions for preprocessing (ECoG) data stored in the NWB format


## Installation

process_nwb is availble on PyPI

```bash
pip install process-nwb
```

### From source
To install, you can clone the repository and `cd` into the process_nwb folder.

```bash
# use ssh
$ git clone git@github.com:BouchardLab/process_nwb.git
# or use https
$ git clone https://github.com/BouchardLab/process_nwb.git
$ cd process_nwb
```

If you are installing into an active conda environment, you can run

```bash
$ conda env update --file environment.yml
$ pip install -e .
```

If you are installing with `pip` you can run

```bash
$ pip install -e . -r requirements.txt
```
file-validation-decorator 0.0.8
This decorator validates the file extension and file size of an in memory file object.
Requires Python: >=3.6

# File Validation Decorator
A decorator for validating file types and sizes. If the validation fails, an Exception will be raised and the code will stop before reaching the function you are decorating. A successful validation will execute the function being decorated - business as usual.

![Alt_Text](https://source.unsplash.com/Q9y3LRuuxmg)

---

## Example Of A Successful File Validation
Successful file validations allow the function that is being decorated to execute. **The first parameter defined in your function needs to be the file object.**
```
from file_validation_decorator.file_validation import file_validation

@file_validation(accepted_file_extensions=['txt'], accepted_mime_types=['text/plain'])
def hello(file):
    print('Hello World!')

with open('test.txt', 'r') as file:
    hello(file)
```

## Example Of A File That Is Too Large In Size
The decorator is provided a file size of .000001 and will raise a FileSizeExceeded error.
```
from file_validation_decorator.file_validation import file_validation

@file_validation(accepted_file_extensions=['txt'], max_file_size=.000001)
def hello(file):
    print('Hello World!')

with open('test.txt', 'r') as file:
    hello(file)
```

## Example Of A File Extension That Is Not Allowed
The example file being uploaded here is a .txt but a text file is not provided in the accepted file extensions list. This will raise a FileTypeNotAllowed error. 

```
from file_validation_decorator.file_validation import file_validation

@file_validation(accepted_file_extensions=['jpeg'])
def hello(file):
    print('Hello World!')

with open('test.txt', 'r') as file:
    hello(file)
```

## Exceptions 

- **FileExtensionNotAllowed** - *Raised when the file's extension is not found in the list of accepted_file_extensions*


- **FileTypeNotAllowed** - *Raised when the file's type is not found in the list of accepted_file_types*


- **FileMimeTypeNotAllowed** - *Raised when the file's mime type is not found in the list of accepted_mime_types*


- **FileSizeExceeded** - *Raised when the file's size is larger than the max_file_size*
oplab-client-python 0.2.7
Oplab's API Client Package
Requires Python: >=3.7.5

<img align="left" width="100" height="100" src="https://github.com/oplab-team/oplab-client-python/blob/master/bin/python_logo.png?raw=true">

# oplab-client-python

[![PyPI version fury.io](https://badge.fury.io/py/oplab-client-python.svg)](https://pypi.org/project/oplab-client-python/)
<img src="https://img.shields.io/discord/701830367912656928?logo=discord"
            alt="chat on Discord"></a>

## Description

This pip package's intent is to provide a safe and easy way to interact with [Oplab's public API](https://apidocs.oplab.com.br). With it, you should be able to use the latest feature additions to the API as we publish them.

## Installation

`pip install oplab-client-python`

## Usage

// TODO

## Support

You can go to our Discord server and ask for some help over the **[#devtalk](https://discord.gg/FyskfG8JUq)** channel. You can also just open an issue asking for help. Use the `help` label.

## Roadmap

If you have ideas for releases in the future, it is a good idea to list them in the README.

## Contributing

We accept contributions. Just send us a pull request if you have some improvement to contribute!

## Authors and acknowledgment

Made with care by the oplab-team.

## License

MIT

## Project status

This project is still @ it's dawn. If you feel like contributing, or participating in any forms, just send us an issue.