Skip to main content

An unofficial 麥塊匿名發文平台 API wrapper.

Project description

cbmc.py

Coverage CodeFactor

PyPI PyPI - License PyPI - Downloads

Unofficial 麥塊匿名發文平台 API Wrapper for Python

Installation

pip install cbmc.py

Usage

# Import the library
from cbmc import AsyncCbmc, SyncCbmc

# Obtain post with post id, raise cbmc.NotFound if not found
SyncCbmc.get_post(1)

# List recent posts, maximum 300 posts.
SyncCbmc.get_posts()

# Also available in async
async def main():
    await AsyncCbmc.get_post(1)
    await AsyncCbmc.get_posts()

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

cbmc.py-0.0.3.tar.gz (6.9 kB view hashes)

Uploaded Source

Built Distribution

cbmc.py-0.0.3-py3-none-any.whl (10.2 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