semvec/pypi-packages huggingface dataset:
compressed-file-iterator 0.0.1
Configurable iterator-based access to compressed files.
Requires Python: >=3
Keywords: iterator,archived,compressed

# compressed_file_iterator
Configurable iterator-based access to compressed files.

This is a simple package to provide configurable iterator-based access to compressed files.

### Usage:
foo.json
```
{
    ".gz": {
        "base_command": {
            "posix": "/bin/gzip"
        },
        "base_options": {
            "posix": [ '-d', '-c', ]
        },
        "type": "Gzip"
    },
    ".*": {
        "base_command": {
            "posix": "/bin/cat"
        },
        "base_options": {
            "posix": []
        },
        "type": "Plain"
    }
}
```

```py
import compressed_file_iterator
# ...
    my_iterator = compressed_file_iterator.MyIterator(
                                                      'foo.txt',
                                                      config_file='foo.json',
                                                      case_sensitive=True,
                                                      )

    for line in my_iterator:
        print(line)
# ...
```


### Installation

_TODO_: (Upload to allow for install via pip.)

```
$ pip install compressed_file_iterator
```


### Documentation

#### Class definition

```py
class compressed_file_iterator():
        def __init__(self, 
                     args, 
                     cwd='./',
                     config_file='compressed_file_iterator.json',
                     case_sensitive=True,
                     ):
```



#### Parameters
- args : list
  - Contains file name to open.
- cwd : string, optional
  - Working directory. (Default: '.').
- config_file : string, optional
  - JSON configuration defining extensions and how to handle them.
- case_sensitive : boolean, optional
  - Perform match attempts against JSON configuration in a 
case-sensitive manner. If False, process via string.casefold() 
before testing. (Default: True)



#### JSON Format
```
{
        '.extension': {
                'base_command': {
                    os_name: path_to_executable,
                },
                'base_options': {
                        os_name: [ command_line_options ],
                'type': string
        },
}
```



#### Parameters
- .extension: string
  - A string representation of a file extension, as separated by pathlib.Path().suffixes.
  - _A default definition should be included for '.*' to be used if 
no other match can be made._
- base_command: dictionary
  - Contains one or more commands, indexed by the value of os.name on the system.
- base_options: dictionary
  - Contains one or more lists consisting of zero or more options 
required by the appropriate base_command to output content on STDOUT.
Indexed by the value of os.name.
- type: string
  - String identifier for the compression configuration. (Currently unused.)



## Acknowledgements
- To my friend, Chris Jones, for suggesting I add the option of case-insensitive extension matching.
- To the members of #python on the Libera.Chat IRC network, for patiently enduring my numerous questions.
leopardo 0.0.5
Configurable fast-access toolset
Requires Python: >=3.7

<h1 align="center">
  <img src="https://user-images.githubusercontent.com/50381946/167810957-14b78013-00cf-436e-b535-d2b89f881c44.png">
  <br>
  <code>
    leopardo
  </code>
  <br>
</h1>

Proin lacinia metus auctor est posuere, in ornare dui hendrerit. Aliquam eget est gravida, iaculis tortor a, aliquam ligula.

Morbi semper metus at egestas vulputate:

- Nullam viverra nisi vel tellus finibus tincidunt.
- Pellentesque at velit placerat, gravida eros eu, blandit est.
- Curabitur id odio et magna semper vestibulum.
- Donec id lectus ut mi tincidunt commodo et eget risus.


## Motivation

<div align="center">

![image](https://user-images.githubusercontent.com/50381946/190855236-6804df02-7f64-46a7-890a-9e0b60df7969.png)

</div>

## Installation

    pipx install leopardo

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. 

Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem.

Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?

## Usage

    grep -lrEe 'leopardo' | xargs sed 's/\leopardo/xxx/g'
    mv PROJECT_NAME xxx

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. 

Et harum quidem rerum facilis est et expedita distinctio.

    grep --color -rEe '[*]PROJECT_\B'

Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Temporibus autem quibusdam et aut officiis debitis aut rerum necessitatibus saepe eveniet ut et voluptates repudiandae sint et molestiae non recusandae. 

_Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat._

## Changelog

### v0.0.0

- yes