Metadata-Version: 2.4
Name: eggnog-mapper-fixurl
Version: 0.0.1
Summary: Fix outdated URLs in eggnog-mapper's download_eggnog_data.py
Author-email: Anthony Aylward <anthony.aylward@protonmail.com>
Project-URL: Homepage, https://gitlab.com/aaylward/eggnog-mapper-fixurl
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: eggnog-mapper
Dynamic: license-file

# eggnog-mapper-fixurl

Fix outdated URLs in [eggnog-mapper](https://github.com/eggnogdb/eggnog-mapper)'s `download_eggnog_data.py`.

## Installation

Install the package with pip:

```sh
pip install eggnog-mapper-fixurl
```

## Usage

You can confirm that `download_eggnog_data.py` is detected in your current environment by running:

```sh
which download_eggnog_data.py
```

If it's detected, you can make the fix by simply running

```sh
eggnog-mapper-fixurl
```

This will update the outdated URLs in `download_eggnog_data.py`, after which the script should work correctly.

The fix will also take place if this package is imported in a Python script

```python
import eggnog_mapper_fixurl
```

If you need to specify the location of `download_eggnog_data.py`, there are a few ways to do so:

1. By command line option: `eggnog-mapper-fixurl --pyscript <path/to/download_eggnog_data.py>`
1. By environment variable: `export EGGNOG_MAPPER_FIXURL_PYSCRIPT="<path/to/download_eggnog_data.py>"`
1. By configuration file, add `download_eggnog_data_pysript = "<path/to/download_eggnog_data.py>"` to `~/.eggnog-mapper-fixurl-config.toml`
1. In a Python script:

```python
import eggnog_mapper_fixurl
eggnog_mapper_fixurl.fixurl(
    download_eggnog_data_pysript="<path/to/download_eggnog_data.py>"
)
```
