Skip to main content

Python Library for Pixelfed

Project description

Pixelfed Python API

A limited Python library for Pixelfed (https://pixelfed.org). Only few methods are implemented.

Authentication

You need a token from a Pixelfed instance. Navigate to /settings/applications on the Pixelfed instance and generate a new Personal Access Tokens. Use that token for authentication. The token must be available in the environment variable PIXELFED_API_TOKEN.

Pixelfed Domain

The domain can be stored in the environment variable PIXELFED_DOMAIN_URI or passed as a parameter to the Pixelfed() constructor.

Installing

pip install pixelfed-python-api

Usage

>>> from pixelfed_python_api import Pixelfed
>>> pfi = Pixelfed().instance()
>>> print(pfi['version'])
'2.7.2 (compatible; Pixelfed 0.11.4)'

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

pixelfed_python_api-0.0.1.tar.gz (14.4 kB view hashes)

Uploaded Source

Built Distribution

pixelfed_python_api-0.0.1-py3-none-any.whl (14.7 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