Skip to main content

Python wrapper for the [Akkoma]( API.

Project description

Python wrapper for the 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(
    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'

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 !')

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 (15.0 kB view hashes)

Uploaded source

Built Distribution (15.1 kB view hashes)

Uploaded py3

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