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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file firefish_py-0.0.2.tar.gz.
File metadata
- Download URL: firefish_py-0.0.2.tar.gz
- Upload date:
- Size: 14.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2ab29531c152f81645b9eeb7de63c7629ebf6f37e9ac16a6a19f7e0563752a1f
|
|
| MD5 |
e4a4c4c9c3d6c19ce3c708eb1956a23d
|
|
| BLAKE2b-256 |
21a65592a9adf19647a9177a8affacddd869a0a576eb836eb19c105bdf514fa1
|
File details
Details for the file firefish_py-0.0.2-py3-none-any.whl.
File metadata
- Download URL: firefish_py-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27d7f994dedda459e9b32cd0afcc97f0de24dec2047544ab496c9f802ca48cdc
|
|
| MD5 |
ab67f5b6df1bc4564bbd1c6c9cdce02e
|
|
| BLAKE2b-256 |
724fadc7406e9791d968d98120d900f391f68db37eacdf2c38ac99b686d7f0d8
|