semvec/pypi-packages huggingface dataset:
webdriver-cache-manager 0.0.9
Optimize WebDriver usage in Selenium with Python. Manage processes, terminate efficiently, and handle PIDs using CSV. Simplify automation!
Requires Python: >=3.8

# webdriver_cache_manager

`webdriver_cache_manager` simplifies managing ChromeDriver instances in Selenium using Python. Track active processes, terminate unused instances, and handle associated PIDs with ease.

[![Upload Python Package](https://github.com/mnawaz6935/webdriver_cache_manager/actions/workflows/python-publish.yml/badge.svg?branch=main)](https://github.com/mnawaz6935/webdriver_cache_manager/actions/workflows/python-publish.yml)
## Installation

Install via pip:

```bash
pip install webdriver_cache_manager
```


## Features

- **Process Tracking:** Monitor active ChromeDriver instances.
- **Termination:** Safely terminate unused ChromeDriver processes.
- **CSV Management:** Handle PIDs efficiently using CSV files.
  
## Usage

1. **Import Package:**
    ```python
    from webdriver_cache_manager import ManageChromeDriverCache
    ```

   2. **Initialize Manager:**
      - Create a `Chrome Driver` instance.
      - Utilize the methods for managing ChromeDriver instances.
      - ````python
         ManageChromeDriverCache(driver)
         ````

## Examples

Check out the provided examples and utilities for managing ChromeDriver instances in the `examples` directory.

## Contributions

Contributions are welcome! If you encounter issues or have suggestions, feel free to create an issue or submit a pull request.

## License

This project is licensed under the [MIT License](LICENSE).
parseid 0.2.0
suck, parse identifiers or accession numbers
Keywords: pypi, cicd, python

\n# parseID: suck, parse identifiers or accession numbers

## Introduction
parseID is a bioinformatics data structure library optimized for sucking identifiers or 
accession numbers into memory, parse those identifiers accession numbers to each other. 

Identifiers or accession numbers are defined and referenced by various biological databases.
Their number could be million size or even billion level.
Some data operations, such as query or parse, are very common.

parseID employs Data structure "trie" and "ditrie". Trie could suck tremendous identifiers into memory at a time. 
Ditrie could suck a large number of mapping of identifiers. Through the trie and ditrie, 
huge data operations including insert, get, search, delete, scan etc could be quickly called.

## testing

```
pytest -s tests
```

## quick start
There is one example about how huge accession numbers are sucked into Trie.
The mapping file could be downloaded from https://ftp.ncbi.nlm.nih.gov/gene/DATA/gene_refseq_uniprotkb_collab.gz into local space.
Retrieve 176,513,729 (03/25/2024) UniProt Accession numbers from the file and feed them into Trie.
Showed as the example below, accession numbers are stored in the object uniprotkb_acc_trie. 
```
from parseid import ProcessID
infile = 'gene_refseq_uniprotkb_collab'
uniprotkb_acc_trie = ProcessID(infile).uniprotkb_protein_accession()
```

Retrieve pairs of NCBI protein accession number and UniProt Accession numbers
from file and feed them into Ditrie. Showed as the example below, 
the mapping fo two accession numbers are stored in the object map_trie, 
which is ready for query or parsing.
```
from parseid import ProcessID
infile = 'gene_refseq_uniprotkb_collab'
ncbi_uniprotkb_ditrie = ProcessID(infile).map_ncbi_uniprotkb()
```
echo-logger 0.1.6
A simple logger for python, with color and time

# Echo Logger

pip repo is [here](https://pypi.org/project/echo-logger/).

This is a simple echo logger for informative, warning and error messages.

Time and colored printing are supported.

This repository is mostly for my own use, but feel free to use it if you want.

## Usage

```python

# build (before you do this, don't forget to change the version id in setup.py)
python setup.py sdist bdist_wheel

# upload (before you do this, please rmv the outdated files of previous versions in dist/)
twine upload dist/*

# install
pip install echo-logger

# upgrade
pip install echo-logger --upgrade
```



## Demo

Simple usage:

```python
print_info("Hello World!")
print_warn("Hello World!")
print_err("Hello World!")
```

<img src="README.assets/image-20230529154733777.png" alt="image-20230529154733777" style="zoom: 67%;" />

If you want to print with time:

```python
print_info("Hello World!", with_time=True)
print_warn("Hello World!", with_time=True)
print_err("Hello World!", with_time=True)
```

<img src="README.assets/image-20230529155434474.png" alt="image-20230529155434474" style="zoom:67%;" />

If you want nothing to be printed (Let's say, you finished unit testing and want to run the whole program without any logger output):

```python
echo_logger.echo_logger_debug = False  # disable any logger functions from echo_logger
print_info("Hello World!")
print_warn("Hello World!")
print_err("Hello World!")
# No output at all.
```

Just so simple and straightforward.