Akkoma.py
Python wrapper for the Akkoma (https://akkoma.dev/AkkomaGang/akkoma) API.
# Register your app! This only needs to be done once. Uncomment the code and substitute in your information.
from akkoma import Akkoma
'''
client_id, client_secret = Akkoma.create_app(
'app_name',
to_file="app_clientcred.txt",
api_base_url = 'https://yourakkoma.instance'
)
'''
# Then login. This can be done every time, or use persisted.
from akkoma import Akkoma
akkoma = Akkoma(client_id = "app_clientcred.txt", api_base_url = 'https://yourakkoma.instance')
grant_type = 'password'
akkoma.log_in(
client_id,
client_secret,
grant_type,
'user',
'password',
to_file = "app_usercred.txt"
)
# To post, create an actual API instance.
from akkoma import Akkoma
akkoma = Akkoma(
access_token = 'app_usercred.txt',
api_base_url = 'https://yourakkoma.instance'
)
akkoma.status_post('Posting from python using Akkoma.py !')
Metadata
Release files for Akkoma.py 0.1.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| Akkoma.py-0.1.6.tar.gz | 15.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| Akkoma.py-0.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 30.0 kB
Release files / Akkoma.py-0.1.6.tar.gz
| Download URL | Akkoma.py-0.1.6.tar.gz |
|---|---|
| Size | 15.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5eedf7dadb5fd4c948a4adb39a74ca9949b19be7ef08905b7cabe43e2f849a8e
|
|
BLAKE2b-256 checksum How to use checksums |
98bd949e61ee454a58462d9255db29fd5e6b00d9d42a013583ea900f0d736a6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Release files / Akkoma.py-0.1.6-py3-none-any.whl
| Download URL | Akkoma.py-0.1.6-py3-none-any.whl |
|---|---|
| Size | 15.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38204d36d79280baf072e19ceb60128adc64238351823244a5df604eefa465cc
|
|
BLAKE2b-256 checksum How to use checksums |
7c6bc5607b35fc3486bfbeb496968d4c3b10d2757fb9aa33a6108bfab26612d4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|