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

Uploaded Source

Built Distribution

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

pixelfed_python_api-0.0.1-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pixelfed_python_api-0.0.1.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.8

File hashes

Hashes for pixelfed_python_api-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4ef0176074f067b5ca6241278b25c5da3d1017ae1dcb0e0e561cd56c9ace41fc
MD5 f8bd1f62dbd6fa0f8d637f307f857073
BLAKE2b-256 8ad67ab01240943777d04d6358365b6e09c04b816ce373d2c25ba5a52792b38f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pixelfed_python_api-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.11.3 pkginfo/1.8.3 requests/2.28.1 requests-toolbelt/0.9.1 tqdm/4.64.1 CPython/3.10.8

File hashes

Hashes for pixelfed_python_api-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37c817f1466bfc07a658a480b8c5212e1af75b91a4b16db272dfbb3a1bd05b32
MD5 4426570ea08133442ccd77cee12a9f21
BLAKE2b-256 c31f362d5c2ed0d1ef1d639f274d706939643cc484a354831912130ed8a3b10f

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