comments
A simple Python wrapper for the https://comments.bot API.
Basic usage
import comments
client = comments.Client("YOUR_API_KEY_HERE", owner_id=YOUR_USER_ID_HERE)
post = client.createPost(type="text", text="Hello world")
print(post.post_id)
print(post.link)
You will get something like this:
xxxxxxxx
https://comments.bot/thread/xxxxxxxx
createPost() arguments:
owner_id:
required if not passed on Client.
type:
must be text or photo. text is used by default if not specified.
text:
required if type equals to text. It must be a string betwen 0-4056 characters.
photo_url:
required if type equals to photo. It must be a string containing a link to the image.
caption:
Caption for the image. Only valid for photo type.
parse_mode:
Parse mode for the text/caption. It must be markdown or html.
administrators:
A string with user_ids (numbers) separated by comma. Example: 123456789,987654321,012345678.
disable_notifications:
Pass True if you don't want to receive notifications about new comments for your post.
Metadata
Release files for comments 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| comments-1.0.0.tar.gz | 2.4 kB | Without provenance | Details for comments-1.0.0.tar.gz |
Security for comments 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release files / comments-1.0.0.tar.gz
How to use checksums
0487a2463789821f65be966f402bb6ab2c067de9d2203da7c9e1619e23f8b7b1How to use checksums
7c9447a30a2af0b670c66cebbae6caa4756a34bef198a37a0d037f773c2641bbWhat is trusted publishing?
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3