Skip to main content

파이썬 라프텔 라이브러리, Unofficial Python Laftel API Wrapper(Laftel)

Project description

img Laftel img

Unofficial Python Laftel.net API Wrapper

Installation

Requires Python 3.6 or upper

python3 -m pip install laftel

Usage

import laftel

# Synchronous
def main():
    laftel.sync.searchAnime("전생슬") # -> List[SearchResult]
    laftel.sync.getAnimeInfo(SerachResult.id) # -> AnimeInfo

# Asynchronous
async def main():
    await laftel.searchAnime("전생슬") # -> List[SearchResult]
    await laftel.getAnimeInfo(SerachResult.id) # -> AnimeInfo

Models

SearchResult:

    id: int # Anime ID (애니 아이디)
    name: str # Anime Title (애니 제목)
    url: str # Anime Link (애니 링크)
    image: str # Cover image URL (커버 사진 URL)
    adultonly: bool # Adult Content (성인인증 필요 여부)
    genres: List[str] # Genres in korean string (장르 태그 목록)

    get_data: Callable # Function returns AnimeInfo for this anime (AnimeInfo 가져오는 함수)
AnimeInfo:

    id: int  # Anime ID (애니 아이디)
    name: str  # Anime Title (애니 제목)
    url: str  # Anime Link (애니 링크)
    image: str  # Cover image URL (커버 사진 URL)
    content: str  # Summary of anime (애니 줄거리)
    ended: bool  # Anime complete or not (애니 완결 여부)
    awards: List[str]  # Arards that granted to anime (애니가 받은 상 목록)

    content_rating: str  # Content Rating in korean (콘텐츠 등급 - 00세 이용가)
    adultonly: bool  # Adult Content (성인인증 필요 여부)
    viewable: bool  # Available in Laftel (라프텔 시청 가능 여부)
    genres: List[str]  # Genres in korean string (장르 태그 목록)
    tags: List[str]  # Anime tags from Laftel (라프텔이 붙인 태그)

    air_year_quarter: str  # Airing quarter (방영분기 - 2020년 1분기)
    air_day: str  # Airing day (방영 요일)
    avg_rating: float  # Average User Rating out of 5 (5점 만점 중 평균 별점)

    series_id: Optional[int]  # Series ID (시리즈 아이디)
    production: str  # Production company (제작사)

Discord Bot Example

image image

Example

View example.py

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

laftel-1.3.1-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file laftel-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: laftel-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.16

File hashes

Hashes for laftel-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74340b646c92a4e0df38f0be67304117b6da634e4bfd7edb358eb8b91f59a1aa
MD5 b154e75edfd08b578bd564e653bd1d2f
BLAKE2b-256 bcb550b6b2b061cf83ae141df9c336b66e3b3614df6db8d9644ecc12f654119c

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