semvec/pypi-packages huggingface dataset:
kogama.py 0.1.4
An API wrapper for the online game KoGaMa written in Python
License: MIT
Requires Python: >=3.5.3
Keywords: kogama,api

# Kogama.py

[![Python Version](https://img.shields.io/badge/python-%E2%89%A53.5.3-yellow.svg)](https://www.python.org/downloads/)  [![Pypi](https://img.shields.io/pypi/v/kogama.py)](https://pypi.python.org/pypi/kogama.py/)

------

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:

```python
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.
vismap 0.2.1
Tile maps rendered with Vispy
License: MIT
Keywords: vispy plot geography map

Vismap
======

Provides a ViewBox for creating maps with
[Vispy](https://github.com/vispy/vispy).  The view automatically gets its tiles
from a [TileProvider](vismap/tile_providers.py) based on the zoom level.
Several tile providers are bundled with this project; adding a tile provider
simply requires knowing the URL at which to grab a tile, and providing the
attribution text for the tiles.  You can add your own data to the map by
creating SceneVisuals and setting the parent to the created `view.scene`.

Run the provided [example](vismap/examples/basic.py) to check out how interacting with
the map works.  The script is installed as ``vismap-example`` if you install
vismap; so from your command line just run

    vismap-example

Use the left and right arrow keys to change the tile provider.

Vismap provides you with a map on which to plot your own data.  An example map:

![Stamen Toner Inverted](stamen_toner_inverted.png)

What's the Point?
-----------------

The idea is to be able to display real-time geographical data on top of a
map–for example, radar data.  This project provides the view which
automatically fills the map based on the current zoom level, and also provides
transforms, so you can actually view data on top of the map.  The transforms
are located in [vismap/transforms.py](vismap/transforms.py).

Currently, two transforms are provided:  `MercatorTransform` and
`RelativeMercatorTransform`.  Use the `MercatorTransform` when your data is
naturally represented in longitude/latitude pairs. For example, the following
will draw a line from Norman, OK to Oklahoma City, OK:

    from vismap import Canvas, MercatorTransform
    import vispy.scene.visuals as visuals
    from vispy import app
    import numpy as np

    c = Canvas()
    c.show()
    line = visuals.Line(np.array([[-97.4395, 35.2226], [-97.5164, 35.4676]]),
                        parent=c.view.scene)
    line.transform = MercatorTransform()  # the magic line!
    app.run()

The `RelativeMercatorTransform` is for plotting data that is naturally
expressed in units of length, but would be nice if it were centered somewhere
geographically.  The motivating use case is radar data: it makes sense to think
of the data in meters, relative to a specific latitude and longitude.

When you are using these transforms, make sure you **always remember to add the
visual to the correct scene**, otherwise the data will not show up and it will
probably be confusing.


Installing
----------

Vismap is available via pip:

    pip install vismap