Skip to main content

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
    

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 details)

Uploaded Source

Built Distribution

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

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

Uploaded Python 3

File details

Details for the file dmm-api-0.1.4.tar.gz.

File metadata

  • Download URL: dmm-api-0.1.4.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.9 Linux/4.19.128-microsoft-standard

File hashes

Hashes for dmm-api-0.1.4.tar.gz
Algorithm Hash digest
SHA256 924bac6e3b4081afe0fae83e6aedcba2372da6d5f2276d5d94afd41b616e203a
MD5 0d1fcd869c44c50353f7177e3bf29bbf
BLAKE2b-256 24dbe04a5a236a57bc932c31ef62045a7f1079c9619b4bf2b14c416c032f0320

See more details on using hashes here.

File details

Details for the file dmm_api-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: dmm_api-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 6.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.4 CPython/3.7.9 Linux/4.19.128-microsoft-standard

File hashes

Hashes for dmm_api-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6320ff4a2bf1686cf1ea2cd96eaf6e457c77cf81545e5b17ef303e6bf4ba500d
MD5 375fc530a50bcd4f8b501f68c5ed7e8a
BLAKE2b-256 6a1e9a3dfc1d9e1650f3b3387b16cbf23c5b87c4286b5d203ae89daf53b25535

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.4 This release

2 files

0.1.3

2 files

0.1.2

2 files

Supported by

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