Metadata-Version: 2.1
Name: itchio
Version: 1.1.0
Summary: Interact with the REST-API of itch.io
Home-page: https://github.com/Tch1b0/itchio-lib
Author: Johannes Pour
Author-email: Johannes@ben11.de
License: MIT
Description: # itchio-lib
        Since I didn't find one, I made it on my own.
        
        ## Purpose
        Use the REST-API of itch.io in python in a simple way
        
        ## How does it work?
        When you want to use the lib, you first need to create a `Session` object, in which you have to pass your
        API-key. It could look something like this:
        ```py
        import itchio
        
        session = itchio.Session(key)
        ```
        
        If you want to access your games, you can just now create an `GameCollection` object with your session.
        ```py
        gameCollection = itchio.GameCollection(session)
        ```
        After that you can get a game by its `id` or you can just get all of your games.
        ```py
        all_my_games = gameCollection.all()
        ```
        The `all_my_games` variable is now a list containing Game objects. You can now easily access the information of a game.
        ```py
        my_game = all_my_games[0]
        
        print(my_game.views_count)
        ``` 
        ```
        35
        ```
        
        ## Examples
        ```py
        import itchio
        
        session = itchio.Session("1234")
        #                        ^
        #                        This is your API-key
        
        userCollection = itchio.UserCollection(session)
        
        me = userCollection.me()
        
        print(me.username)
        ```
        ```
        Tch1b0
        ```
        
        ## Installation
        You can install this library via [pip](https://pypi.org)
        ```
        $ pip install itchio
        ```
Platform: UNKNOWN
Description-Content-Type: text/markdown
