Skip to main content

Command-line tool to download compound structures from the IMPPAT database

Project description

IMPPAT Downloader

PyPI version Python License A command-line tool to download compound structures from the IMPPAT database in bulk. Built for researchers, bioinformaticians, and cheminformatics enthusiasts who want quick access to phytochemical structure files.

Installation

Option 1: From source Clone this repo and install dependencies:

git clone https://github.com/Eswar-mse/imppat_downloader.git
cd imppat_downloader
pip install -e .

Option 2: From PyPI (when you publish)

pip install imppat_downloader

Usage

Run the tool from the command line:

imppat_downloader --start 1 --end 100 --delay 2

Options

--start → first compound ID (default: 1)

--end → last compound ID (default: 10)

--delay → delay between requests in seconds (default: 2)

--skip-existing → skip already-downloaded files

Example

Download compounds 1–50 with a 3-second delay:

imppat_downloader --start 1 --end 50 --delay 3

Output

  • Each compound gets its own folder named by ID.
  • Downloaded files include available structure formats (.sdf, .mol, .smi, etc.).
  • A manifest.csv file tracks successes and failures with timestamps.

Requirements

Python 3.8 or higher Dependencies: requests, beautifulsoup4

License

This project is licensed under the Apache License 2.0 – see the LICENSE file for details.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

imppat_downloader-1.0.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

imppat_downloader-1.0.0-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file imppat_downloader-1.0.0.tar.gz.

File metadata

  • Download URL: imppat_downloader-1.0.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for imppat_downloader-1.0.0.tar.gz
Algorithm Hash digest
SHA256 de689e0793ba21286ac1d92cd24ebaa02f43d2b29538ab977a67757d2f00096e
MD5 189c2fa25ab298f3ae8dc753b2525ec5
BLAKE2b-256 07a8757cf9045bcdf44c44bb9cc09d1b1f25d47b5bc828432b33a744c3cd185e

See more details on using hashes here.

File details

Details for the file imppat_downloader-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for imppat_downloader-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 86aa34247288abe408780d40a2488967d237af8f9d1ada636a80a5e557e42b5e
MD5 77deaa09d90b2ec7ae0a3858d820ef09
BLAKE2b-256 43f5335b09bfd77d6cf1813e34674f5216deaa79473294139aff343a29fc8e54

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page