Skip to main content

A small example package

Project description

firefish.py

Simple python wrapper for the Firefish API.

Getting started

I don't have this project setup on pypi. You're gonna have to git clone this for now and enter the firefish.py directory when you want to make a project with this.

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

Make sure you have requests and python-dotenv installed as well.

Once you clone 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

firefish_py-0.0.1.tar.gz (9.4 kB view hashes)

Uploaded Source

Built Distribution

firefish_py-0.0.1-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

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