Skip to main content

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

Project description

cbmc.py

Coverage CodeFactor GitHub issues GitHub pull requests

PyPI PyPI - License PyPI - Downloads

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

Installation

pip install cbmc.py

Usage

# Import the library
from cbmc import AsyncCbmc, SyncCbmc

api = SyncCbmc()

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

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

# Directly call the method also works
# Creating an instance is not required, but it is recommended for future updates.
# (some planned new features will require that)
SyncCbmc.get_post(1)

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

Documentation

Credits

License

This project is licensed under MIT License. See the LICENSE for more details.

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.4.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

cbmc.py-0.0.4-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

Details for the file cbmc.py-0.0.4.tar.gz.

File metadata

  • Download URL: cbmc.py-0.0.4.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for cbmc.py-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a12aeffa6286327c4cbd8817f22f1b1ac0fe73d88114e9a6163c617ddf665dbf
MD5 403cd82f31d0a4d5b715deebbc607bad
BLAKE2b-256 3e0840c648ea783db37be88a4ac2bbb4769e29101f665b3f9b67a001cf5c3e03

See more details on using hashes here.

File details

Details for the file cbmc.py-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: cbmc.py-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 10.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for cbmc.py-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 28f088dea07b425677ebde0c6d1dd322aef16273d62f008d9db6e3985fb2da4f
MD5 9f48014168dc91ac58f7eaed9c6c60f8
BLAKE2b-256 f2f74dda3be606fabe62e39a024d215f00b059515d84557a72459f677a0091e1

See more details on using hashes here.

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