Skip to main content

Cara API

Python Package developed by Red_wolf2467


This package is designed to make it easier for you to work with the Cara API (developed by CatC_guy). The package is based on the data found on the API doc page of the BOT / API.



Now follow sample codes that you can simply copy / paste and use.

Chatfilter

from cara_api import CaraAPI

caraAPI = CaraAPI("YOUR API-KEY")

bad_word_list = ["word1", "word2"]

request = caraAPI.chatfilter(message=message.content, levenshtein=2 ,FilteredWords=bad_word_list, GuildID=message.guild.id,

ChannelID=message.channel.id, AuthorID=message.author.id, MessageID=message.id,

GuildName=message.guild.name, ChannelName=message.channel.name, AuthorName=message.author.name, log=True)
# OnlyASCII = OPTIONAL; True = Delete non ASCII symbols, False = Ignore non ASCII symbols
# GoodWords = OPTIONAL; List of words that are allowed (for words that are misrecognized, structure as in "bad_word_list ")

 
print(request.result) # INT
# OK = 0, //Not filtered
# CustomBadWord = 1, //Direct Match
# Levenshtein = 2, //Disguised Bad Word
# Leet = 3, //Levenshtein + Leet
# NSFW = 4, //NSFW Content (not returned yet)
# BannedMessage = 5, //Registered Spam Message
# SuspiciousActivity = 6, //User was flagged for suspicious activity
# BotActivity = 7, //Bot activity
# SpammerNotAllowed = 8 //Registered spammer, not allowed on server

  
print(request.reason) # STRING

Uer

from cara_api import CaraAPI

caraAPI = CaraAPI("YOUR API-KEY")
request = caraAPI.get_user(user_id=message.author.id)

print(request.user_name)
print(request.isSpammer)
print(request.reason)

Metadata

Release files for cara-api 1.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cara-api 1.6.2
File Size Uploaded
cara_api-1.6.2.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cara-api 1.6.2
File Interpreter ABI Platform
cara_api-1.6.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / cara_api-1.6.2.tar.gz

Download URL cara_api-1.6.2.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
20ebf4a57920beb9258fe6e99a46e755fd5dedad44abcc411a050c84e3981585
BLAKE2b-256 checksum
How to use checksums
8e9eb10a6b3416a8d0cad8db82d8b24791d44b9c085d81888aa219022cf1d61e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / cara_api-1.6.2-py3-none-any.whl

Download URL cara_api-1.6.2-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c94518cda4ed5069ce942248bcd87c114d2c03370b5bab0d4b3040e166f2fff3
BLAKE2b-256 checksum
How to use checksums
0f61c625689cfae4304a8c8e9802ebf9b972b8d8e5ed12c7992126a864a39e50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

1.6.2 This release

2 release files

1.6.1

2 release files

1.6

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5

2 release files

1.4.10

2 release files

1.4.9

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.5

2 release files

1.4.4

2 release files

1.4.3

2 release files

1.4.2

2 release files

1.4.1

2 release files

1.4

2 release files

1.3.1

2 release files

1.3

2 release files

1.2.9

2 release files

1.2.6

2 release files

1.2.5

2 release files

1.2.4

2 release files

1.2.3

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2

2 release files

1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page