semvec/pypi-packages huggingface dataset:
CiscoConfigurationParser 0.0.4
This Package Will Parse Cisco IOS, IOS-XE and IOS-XR Configuration File.
Requires Python: >=3.6

# ConfigParser
## This Package will parse the Cisco running-configuration File in a parent/child style

## Install the package 

```ruby
pip install CiscoConfigurationParser
```

## Regex Search Strings:

* to find lines in the configuration starting with "router"
```ruby
parse.find_parent_child("^router")
```


* to parse all confuguration into parent and child format
```ruby
parse.find_parent_child("^.")
```


* to find lines in the configuration that has "Loopback" in them
```ruby
parse.find_parent_child("^.*Loopback")

```


## Examples:

* Finding Routing Protocol
```ruby
    from ConfigParser import ConfigParser
    
    
    my_file = "switch01_running_config.txt"
    parse = ConfigParser(my_file)
    
    
    obj_list = parse.find_parent_child("^router")
    for i in obj_list:
        print(i.parent)
        for child_obj in i.child:
            print(child_obj)
 
 ```
 Output:
 
 ```
 router eigrp 252
 !
 address-family ipv4 vrf vrf_A autonomous-system 252
  network 10.10.10.0 0.0.0.63
  passive-interface default
  no passive-interface Vlan3123
  no passive-interface Vlan3124
  eigrp stub connected summary
 exit-address-family
 !
 address-family ipv4 vrf vrf_B autonomous-system 252
  network 10.20.10.0 0.0.0.3
  network 10.20.11.0 0.0.0.3
  passive-interface default
  no passive-interface Vlan3223
  no passive-interface Vlan3224
  eigrp stub connected summary
 exit-address-family
 !

 ```
 
 * Finding Interface and Helper address Example 

```ruby
    from ConfigParser import ConfigParser


    my_file = "switch01_running_config.txt"
    parse = ConfigParser(my_file)
    obj_list = parse.find_parent_child("^interface")

    for i in obj_list:
        vlan_200 = re.search("Vlan200", i.parent)
        if vlan_200:
            print(i.parent)
            for c_obj in i.child:
                if str(c_obj).startswith(" ip helper"):
                    print(str(c_obj))
```
Output: 

```
interface Vlan200
 ip helper-address 192.168.1.10
 ip helper-address 172.31.10.10
```

* Finding SVI in the config with all its child configuration

```ruby 

from ConfigParser import ConfigParser



file = "switch_01-run_config.txt"
parser = ConfigParser(file)

res = parser.get_svi_objects()

for i in res:
    if "lan200" in i.intf:
        print(i.intf)
        print(i.ip_add)
        print(i.description)
        print(i.vrf)
        print(i.state)
        print(i.helper)
        print("!")
```

output:

```
interface Vlan200
 ip address 10.20.80.1 255.255.254.0
 description USER VLAN-
 ip vrf forwarding vrf_A
 no shutdown
[' ip helper-address 10.10.1.10 ', ' ip helper-address 10.20.1.10']
!
interface Vlan100
 ip address 10.20.81.1 255.255.254.0
 description USER VLAN-
 ip vrf forwarding vrf_B
 shutdown
[' ip helper-address 10.10.1.10 ', ' ip helper-address 10.20.1.10']
```
h2-vulnerability-db 2.0.2
AppThreat's vulnerability database and package search library with a built-in file based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities.
Requires Python: >=3.8

# Introduction

This repository contains a vulnerability database and a package search for OSV, NVD, GitHub, and NPM sources.
Data on vulnerabilities is downloaded from the sources and stored in a custom file-based storage system with indexes that enables offline access and quick searches. 

## Installation

```bash
pip install h2-vulnerability-db
```

## Usage

This package is ideal as a vulnerability management library. This is how [h2-depscan](https://gitlab.com/hhammoudi/h2-depscan), a dependency auditing tool, works.
However, a limited cli capability with few features is available for testing this tool directly. 

### Cache vulnerability data

Cache from all sources

```bash
vdb --cache
```

Cache from just [OSV](https://osv.dev)

```bash
vdb --cache --only-osv
```

It is possible to customise the cache behaviour by increasing the historic data period to cache by setting the following environment variables.

- NVD_START_YEAR - Default: 2016. Supports upto 2002
- GITHUB_PAGE_COUNT - Default: 5. Supports upto 20

### Periodic sync

To periodically sync the latest vulnerabilities and update the database cache.

```bash
vdb --sync
```

### Basic search

It is possible to perform simple search using the cli.

```bash
vdb --search android:8.0

vdb --search google:android:8.0

vdb --search android:8.0,simplesamlphp:1.14.11
```

Syntax is package:version,package:version or vendor : package : version (Without space)
drtest 0.0.1
This is a test module that currently performs data reduction on arrays by different methods.

# pyDRtest:
## _Data reduction test module_

This is a test module that can perform data reduction in several ways.

## Features

- Can perfrom data reduction on arrays
- Select from several data reduction methods
- Tested with an .abf file using pyabf module


## Installation

```sh
pip install drtest
```

## Usage
Importing:
```sh
import drtest as dr
```
Use the DataAnalysis class for some xdata, ydata:
```sh
da = dr.DataAnalysis(xdata, ydata)
```
Perform data reduction with different methods:
```sh
xdec, ydec = da.data_reduction(method='decimate', reduction_factor=4)
xavr, yavr = da.data_reduction(method='average', reduction_factor=4)
xmin, ymin = da.data_reduction(method='min', reduction_factor=4)
xmax, ymax = da.data_reduction(method='max', reduction_factor=4)
xminmax, yminmax = da.data_reduction(method='min/max', reduction_factor=4)
```