Skip to main content

DMM API Client for Python

Project description

DMM Affiliate API Client for Python

  • This SDK is unofficial
  • API Guide is here.

Install

pip install dmm-api

Usage

import os

from dmm_api import DMMApiClient

API_ID = os.environ.get('DMM_API_ID', '')
AFFILIATE_ID = os.environ.get('DMM_AFFILIATE_ID', '')

client = DMMApiClient(API_ID, AFFILIATE_ID)
res = client.get_floor()
print(res.json())

Supported API list

v3

  • 商品情報 API (ItemList)
  • フロア API (FloorList)
  • 女優検索 API (ActressSearch)
  • ジャンル検索 API (GenreSearch)
  • メーカー検索 API (MakerSearch)
  • シリーズ検索 API (SeriesSearch)
  • 作者検索 API (AuthorSearch)

For developers

  • Setup

    Require: poetry

    git clone git@github.com:takelushi/dmm-api-py.git
    cd dmm-api-py
    poetry install
    
  • Lint and Test

    flake8 src/ tests/
    export API_ID='...'
    export AFFILIATE_ID='...'
    pytestz
    
  • Build

    poetry build
    
  • Register PyPI and install.

    poetry publish
    pip --no-cache-dir install --upgrade dmm-api
    

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

dmm-api-0.1.4.tar.gz (6.2 kB view hashes)

Uploaded Source

Built Distribution

dmm_api-0.1.4-py3-none-any.whl (6.1 kB view hashes)

Uploaded Python 3

Supported by

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