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
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
pixelfed_python_api-0.0.1.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for pixelfed_python_api-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4ef0176074f067b5ca6241278b25c5da3d1017ae1dcb0e0e561cd56c9ace41fc |
|
MD5 | f8bd1f62dbd6fa0f8d637f307f857073 |
|
BLAKE2b-256 | 8ad67ab01240943777d04d6358365b6e09c04b816ce373d2c25ba5a52792b38f |
Close
Hashes for pixelfed_python_api-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37c817f1466bfc07a658a480b8c5212e1af75b91a4b16db272dfbb3a1bd05b32 |
|
MD5 | 4426570ea08133442ccd77cee12a9f21 |
|
BLAKE2b-256 | c31f362d5c2ed0d1ef1d639f274d706939643cc484a354831912130ed8a3b10f |