Skip to main content

itchio-lib

Use the REST-API of itch.io with python in a simple way.

Installation

You can install this library via pip:

$ pip install itchio

You may need to install the typing module, depending on your python version.

Documentation

You can read the docs right here

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:

import itchio

session = itchio.Session(key)

If you want to access your games, you can just now create an GameCollection object with your session.

gameCollection = itchio.GameCollection(session)

After that you can get a game by its id or you can just get all of your games.

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.

my_game = all_my_games[0]

print(my_game.views_count)
35

Examples

import itchio

session = itchio.Session("1234")
#                        ^
#                        This is your API-key

userCollection = itchio.UserCollection(session)

me = userCollection.me()

print(me.username)
Tch1b0

Metadata

Release files for itchio 1.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for itchio 1.1.3
File Size Uploaded
itchio-1.1.3.tar.gz 7.0 kB Details

Release files / itchio-1.1.3.tar.gz

Download URL itchio-1.1.3.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
71eef57a89e31ecd46072de0601a0851ea7b4647b5101acd23c9b1163ef2036f
BLAKE2b-256 checksum
How to use checksums
5d30da1d6a4a860dc82ef3a1b8dfa44c5f8f9170310db9a41e1b51333049c217
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.28.1 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.2 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.1.3 This release

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.0

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page