Skip to main content

An API wrapper for the online game KoGaMa written in Python

Project description

Kogama.py

Python Version Pypi


Copyright © 2019 Ars3ne

Licensed under the MIT License (see LICENSE.txt for details).

Kogama <https://www.kogama.com> is an online game where you can create, share and play multiplayer games created by other users.

Some features has been removed from the public version, in order to prevent abuse. If you need one of them, get in touch on Discord: Ars3ne#0497


Installation:

To install the library, just run the following command:

pip install kogama.py

Requirements:

  • Python ≥ 3.5.3
  • requests
  • beautifulsoup4

Usually pip will install these for you.

Example


Here's a quick example of the library used to make a simple bot that get comments from a post and prints the content and id of them:

from kogama import Kogama
import json

k = Kogama.Kogama("www")
l = k.Auth().login("username", "password")

if l:
  comments = k.User().get_post_comments(20782273)
  for comment in comments['data']:
    comment_text = json.loads(comment['_data'])
    print("Comment: {}. ID: {}".format(comment_text['data'], comment['id']))
else:
  exit("Unable to login.")

Documentation

Coming soon.

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

kogama.py-0.1.4.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file kogama.py-0.1.4.tar.gz.

File metadata

  • Download URL: kogama.py-0.1.4.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.6.8

File hashes

Hashes for kogama.py-0.1.4.tar.gz
Algorithm Hash digest
SHA256 cdefa6d9d20d09267a2266a1c314139a9cb9f0526b156692cf781f86e4e4effe
MD5 b261be1bbab56526e62bca3658a5c515
BLAKE2b-256 2c2e1e27c99388878396ebf27d24c9de21b2aaf0bd0b8130fdbe93e9684afa85

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page