semvec/pypi-packages huggingface dataset:
comments 1.0.0
Python wrapper for the https://comments.bot API

# comments
![PyPi](https://img.shields.io/pypi/v/comments.svg)
![Python 3](https://img.shields.io/badge/Python-3-2255cc.svg)

A simple Python wrapper for the https://comments.bot API.

## Basic usage

```python
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.
ezdnsbl 0.2.1
Easy DNSBL querying
Requires Python: ~=2.7
Keywords: dnsbl blacklist dns

======
README
======

A first stab at writing something that could be construed as a python script. Aims to simplify querying multiple DNSBLs.


-----
Usage
-----

Run the program with an argument of either an IP address, domain name, AS number, or MD5/SHA1 hash. If no argument is
given, drop into a python shell with dnsbl_query imported as a library.

To utilize HTTBL, provide the `DNSBLResults` instance with `auth_tokens={'HTTPBL': '<your_api_key>'}`.

>>> from ezdnsbl import DNSBLResults
>>> results = DNSBLResults('192.0.32.11', auth_tokens={'HTTPBL': '<your_api_key>'})
>>> print(a)
IPtoASN: IP 192.0.32.11
    Returned 2 result(s):
        40528 | 192.0.32.0/22 | US | arin | 2009-06-29
        40528 | 192.0.32.0/24 | US | arin | 2009-06-29
IPtoASNPeers: IP 192.0.32.11
    Returned 2 result(s):
        2914 3257 11164 | 192.0.32.0/24 | US | arin | 2009-06-29
        2914 3257 11164 16876 | 192.0.32.0/22 | US | arin | 2009-06-29

Take a look at the source for more info.

NOTE: This script makes NO ATTEMPT to rate-limit queries - it is up to YOU to ensure that your usage conforms to the
various AUPs and terms of each of the providers listed below.


----------------------
DNS Blacklists Queried
----------------------

The following DNSBL providers are queried:

APEWS (apews.py)
  http://www.apews.org/
TeamCymru MHR and IP-ASN Mapping (cymru.py)
  http://www.team-cymru.org/
dan.me's TOR Node Blacklist (dan.py)
  https://www.dan.me.uk/
GBUdb (gbudb.py)
  http://www.gbudb.com/index.jsp
Project Honeypot's Http:BL (honeypot.py, httbl_apikey.py)
  http://www.projecthoneypot.org/
LashBack's Unsubscribe Blacklist (lashback.py)
  http://www.lashback.com/
Spamhaus' ZEN and DBL (spamhaus.py)
  https://www.spamhaus.org/
Rik van Riel's Spamikaze instance, Passive Spam Block List (surriel.py)
  https://surriel.com/, https://psbl.org/


----------------
Acknowledgements
----------------

Inspired by vincecarney's dnsbl: https://github.com/vincecarney/dnsbl