A python wrapper for firefish/calckey
Project description
firefish.py
Simple python wrapper for the Firefish API.
Getting started
You're going to want to install requests and python-dotenv in order for this to work.
You can either install this with pypi by doing pip install firefish.py
or by building it yourself.
I'm running this with 3.11.3, which is (i think) the latest Python3 version and it should work with all versions of Python3. I haven't tested it though
Once you install firefish.py, create a .env file with the following:
TOKEN=<your firefish api token>
INSTANCE=<the firefish instance associated with your api token>
Don't include the < > keys when typing them in, and format your instance as "subdomain.domain.com". lethallava.land is a pretty decent public Firefish instance if you don't already have an account on an instance.
Additionally, keep in mind that this might work on Misskey as well. You can try, but keep in mind I haven't tested Misskey out for myself yet.
Examples
Simple posting bot:
import firefish
firefish.createnote('example', 'null')
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for firefish_py-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27d7f994dedda459e9b32cd0afcc97f0de24dec2047544ab496c9f802ca48cdc |
|
MD5 | ab67f5b6df1bc4564bbd1c6c9cdce02e |
|
BLAKE2b-256 | 724fadc7406e9791d968d98120d900f391f68db37eacdf2c38ac99b686d7f0d8 |