Skip to main content

Python Spamprotection API Wrapper

Project description

Welcome to the Python-Spam-Protection-API wiki!

This library handles All Requests done to https://api.intellivoid.net/spamprotection/v1/lookup. To understand how this is meant to be used, please see read the following Documentation

Getting Started

  • Installing the library:

    pip install Intellivoid-SPB

  • For those who wants to try out Development Builds:

    pip install git+https://github.com/intellivoid/Python-Spam-Protection-API@dev

Usage

from spamprotection import SPBClient
import asyncio

client = SPBClient()

async def main():
    user = input("Enter a Username or UserID to check Spam Prediction on SPB: ")
    status = await client.check_blacklist(user)
    if status.success:
        print(status.private_telegram_id)
    else:
        print("Polish Cow did not Approve this!")

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main())
    loop.close()

Examples

All Examples are in Examples Directory

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

Intellivoid SPB-0.1.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

Intellivoid_SPB-0.1.1-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file Intellivoid SPB-0.1.1.tar.gz.

File metadata

  • Download URL: Intellivoid SPB-0.1.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.20.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for Intellivoid SPB-0.1.1.tar.gz
Algorithm Hash digest
SHA256 f399cf772a1c8a0673b1d806005ab3c63c08ba9e7b966b653f6965c04cb63a46
MD5 c2e68e1e799b39994b0a37944de07c9e
BLAKE2b-256 8001cef2830d0052f9f1e7d95595163baada6ed11ef7366fc2e30cf1b2ea2db2

See more details on using hashes here.

File details

Details for the file Intellivoid_SPB-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: Intellivoid_SPB-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 19.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.20.0 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.3

File hashes

Hashes for Intellivoid_SPB-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 374677b252b6c7bee49c3649b5fda610e17b9066f581e33fef1197f3c6a66914
MD5 62af57e1bcb70421cf6adb60ddf6ce2f
BLAKE2b-256 b3d987ff7a9559a8d8b773b811a960edc2353e640a78c3e7fa9725a65960ff43

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