Skip to main content

Malpedia REST API Client.

Project description

Malpedia REST Client

This repository contains a Python interface for the Malpedia REST API. To use the basic functionalities of this client, no user account on Malpedia is needed. However, for the analytics and some other extended functionalities, an account and the connected credentials are required.

Requirements

  • Python 3.6 or higher
  • requests library

Installation

Since version v0.3.1 malpediaclient is available via PyPI, which simplifies installation to:

pip install malpediaclient

In case you want to install locally from the repository, please use:

pip install -e .

or

python setup.py install

CLI Usage

Either use python run.py --help in this directory or malpediaclient --help from anywhere.

Configuration

You can configure your Malpedia credentials in several ways:

  1. Create a JSON configuration file in one of these locations:

    • ./malpedia.json or ./.malpedia.json (current directory)
    • $HOME/.malpedia.json (user's home directory)
    • /etc/malpedia.json (system-wide)
    • %APPDATA%\malpedia\malpedia.json (Windows)

    The JSON file should have this structure:

    {
      "username": "your_username",
      "password": "your_password"
    }
    

    Or with an API token:

    {
      "apitoken": "your_api_token"
    }
    
  2. Pass credentials via command line arguments (see --help for details)

Changelog

  • 2025-07-25: v0.3.2: Removed dependency issue in setup.py, disabled scan functions, and published to PyPI (THX to dspruell-rs).
  • 2025-03-13: v0.3.0: Updated to Python 3, removed Python 2 compatibility code, improved error handling (THX to Marc R).
  • 2020-08-10: Added support for a JSON config file to enable storing an apitoken or user/password for authentication (THX to Luca Corbatto).

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

malpediaclient-0.3.2.tar.gz (16.4 kB view details)

Uploaded Source

File details

Details for the file malpediaclient-0.3.2.tar.gz.

File metadata

  • Download URL: malpediaclient-0.3.2.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for malpediaclient-0.3.2.tar.gz
Algorithm Hash digest
SHA256 d5067a2d038a469bd2604fa9a29166777f295b9c19e5c7f39a6fbfb4658c9458
MD5 a69951490ecb55b94d676dcb9d63cb29
BLAKE2b-256 2767ed99ef899fda5a2a271431812127608d41ad19ea0f03ec459b00a77b4216

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