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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file firefish_py-0.0.1.tar.gz.

File metadata

  • Download URL: firefish_py-0.0.1.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for firefish_py-0.0.1.tar.gz
Algorithm Hash digest
SHA256 637cf2d0488b8c017b8c606cd5231cc87f961f8d42aecf8da23f613c9b16a64e
MD5 9795f816ff69112f771106901f7c6144
BLAKE2b-256 88f90cf76677df50e310654e1130aca05b457bfeb76d1ca7ee5bd76486cfdfbd

See more details on using hashes here.

File details

Details for the file firefish_py-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: firefish_py-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for firefish_py-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 85da1ae20e762f169e533b249fef4a42e9978c858d4d7a43b143dbbe8e9e8c86
MD5 c86d369dfd96f81ea517684c934db6ef
BLAKE2b-256 bb81ebf359d0c0e3a6a53c93e5e317890e5294048749398ed90a90f8d6319185

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page