Skip to content
Danielle edited this page Jun 1, 2023 · 12 revisions

fuzzly Logo
Current Version: 0.0.5

Installation

You can install the fuzzly client library directly from pip

pip python

Defaults to pip's python version

$ pip install fuzzly

Ensures package is installed to the python3 command's py version

$ python3 -m pip install fuzzly

Or, you can clone and install the package manually

[home]$ git clone [email protected]:kheina-com/fuzzly.git
Cloning into 'fuzzly'...
remote: Enumerating objects: 89, done.
remote: Counting objects: 100% (89/89), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 89 (delta 35), reused 76 (delta 22), pack-reused 0
Receiving objects: 100% (89/89), 35.66 KiB | 0 bytes/s, done.
Resolving deltas: 100% (35/35), done.
[home]$ cd fuzzly/
[fuzzly]$ python3 -m pip install .
Defaulting to user installation because normal site-packages is not writeable
Processing /home/fuzzly
  ...

Client Setup

Initialize your client locally

# this code should run as-is
import asyncio
from fuzzly import FuzzlyClient

client: FuzzlyClient = FuzzlyClient()
print(asyncio.run(client.post('Lw_KpQM6')))

If you have gone through the process to obtain a bot token, initialize your client with your bot token

token: str = 'aGV5IG1hbi4gaXQncyB3ZWlyZCB0aGF0IHlvdSBsb29rZWQgYXQgdGhpcywgYnV0IHRoaXMgaXNuJ3QgYSByZWFsIHRva2Vu'
client: FuzzlyClient = FuzzlyClient(token)
print(asyncio.run(client.post('Lw_KpQM6')))
Clone this wiki locally