semvec/pypi-packages huggingface dataset:
surilibs 0.0.3
Library with features for file validation

# Suri validator file

[PT] Biblioteca com recursos para validação de arquivos.<br>
[EN] Library with features for file validation.


## Funcionalidades:
* Checar se colunas existem
* Checar se tipo das colunas estão corretos

## Como usar:

### Instalação
```
    pip install suri_file_validator
```

### Parâmetros

- filepath: Diretório do arquivo 
- extension: Extensão do arquivo
- schema: Estrutura das colunas


### Exemplo
```
    from suri_file_validator.validator import Validator

    validator = Validator(filepath, extension, schema)
    validator.validate()  
```

### Links:
[![Badge](https://img.shields.io/static/v1?label=Acesse&message=o%20site&color=yellowgreen)](https://github.com/Suridata-Tecnologia/suri-file-validator)
suri-file-validator 0.0.1
Library with features for file validation

# Suri validator file

[PT] Biblioteca com recursos para validação de arquivos.<br>
[EN] Library with features for file validation.


## Funcionalidades:
* Checar se colunas existem
* Checar se tipo das colunas estão corretos

## Como usar:

### Instalação
```
    pip install suri_file_validator
```

### Parâmetros

- filepath: Diretório do arquivo 
- extension: Extensão do arquivo
- schema: Estrutura das colunas


### Exemplo
```
    from suri_file_validator.validator import Validator

    validator = Validator(filepath, extension, schema)
    validator.validate()  
```

### Links:
[![Badge](https://img.shields.io/static/v1?label=Acesse&message=o%20site&color=yellowgreen)](https://github.com/Suridata-Tecnologia/suri-file-validator)
Jellyfin-CLI 1.6
A Jellyfin command line client.

# Jellyfin CLI

##### A Jellyfin command line client written in Python with urwid.  
![Image](https://i.imgur.com/I3Nbd3R.png)
----

### How to install  
This app requires Python3.6 or higher  
You can install it by executing `pip3 install --user jellyfin-cli`  
You will also need to install MPV. 
I recommend symlinking the script to your path so you can execute it directly from the terminal:
This will typically require something like the following:
`ln -s $HOME/.local/bin/jellyfin-cli /usr/bin/jellyfin-cli`

### How to use
The first time you run it, you will be greeted by a minimalist login prompt. This will repeat every time the token is invalidated.
After that you can use the interface.
### Development

Want to contribute? Sure! You are free to create bug reports, feature requests and pull requests. I will try my best to review all of them.
PyTaskFarmer 0.1.0
Simple task farmer using file locks to syncrhonize among multiple nodes.

# PyTaskFarmer

This is a small project of a Python TaskFarmer for running jobs at NERSC's Cori
(though it should be flexible to run on other systems). It is very loosely based
on the concept of [Shane Canon's TaskFarmer](https://github.com/scanon/taskfarmer).

[Full Documentation](https://pytaskfarmer.readthedocs.io/en/latest/)

## Usage

The executable script is:

    usage: pytaskfarmer.py [-h] [--proc [Processes]] [--timeout TIMEOUT]
                            [--workdir WORKDIR] [--verbose VERB]
                            [--runner RUNNER] [--tasklist TASKLISTHANDLER]
                            tasklist

The `tasklist` argument is a simple text file with one task per line. The
interpretation of the task is up to the `TASKLISTHANDLER`. By default, the task
is treated as a command to run. It is not important how complex the command is.

The `--verbose` flag adds a bit more output (though not much) telling you what
the script is doing as it runs (default False).

The `--timeout` option allows you to set a timeout for the script, so that after
 some number of seconds the tasks will be automatically killed (default none).

The `--proc` option tells the script how many parallel workers to create
(default8).

The `--workdir` option tells the script where to store the progress (task
status, log files..) of a single run (default is `tasklist_workdir`).

The `--runner` options indicates which runner to execute the command with. See
the dedicated section on the available runners and how they work.

The `--tasklist` options indicates which tasklist handler to parse the tasklist
with. See the dedicated section on the available runners and how they work.

## What it does (60 second version)

The basic behavior, with the default runner/handler, is as follows. Each access
to a file is protected using a file locking mechanism.

1. The tasklist is read and a `toprocess` file is created in the `workdir` with
   unprocessed tasks.

2. A number of workers (`multiprocessing.Pool`) are constructed to run on
   the tasks.

3. When some work is done, the command is placed into a `finished` or `failed`
   files, depending on the status code.

4. Duration and start times of completed tasks (timeline) are saved into a
   `timeline.json` file. This can then be opened with
   [Perfetto](ui.perfetto.dev).

5. The tasks are processed by the workers until 1) the work is completed; 2) the
   timeout is reached; or 3) a signal is intercepted.
setup-teardown 0.0.5
A setup/teardown context manager decorator for unit tests
Requires Python: >=3.6

# Setup Teardown Content Decorator

This is a simple package that aims to make adding setup and teardown to pytest flavored tests quick and painless.

# Installation
```
python3 -m pip install setup-teardown
```

## Provided Postgres Database Class Decorator Usage
Extend and implement the session.
```
class TableScrub(PostgresScrub):
    """Extend to add session."""

    @cached_property
    def session(self):
        """Only fetch the session one time."""
        return new_session()
```

## Example class with decorator usage
```
class TestHandlerDatabaseRequired:
    @TableScrub(table="table_name")
    def test_handler_success(self, mock_datetime):
        """
        Example of using the SetupTeardown ContextDecorator
        with arbitrary setup and teardown.
        """
        assert 1 == 1
        # Effect the database test that may leave db in dirty state
```

## Example function with decorator usage
```
    @TableScrub(table="table_name")
    def test_insert():
        with TableScrub(setup=setup, teardown=teardown):
            assert 1 == 1
            # Effect the database test that may leave db in dirty state
```

## Example function with context manager usage

```
    def setup(self):
        db.session.new_session().query(self.table).delete()

    def teardown(self):
        db.session.new_session().query(self.table).delete()


    def test_insert():
        with SetupTeardown(setup=setup, teardown=teardown):
            assert 1 == 1
            # Effect the database test that may leave db in dirty state
```