Skip to main content

A library for interacting with the learning platform anton.app.

Project description

antonLib

antonLib is a python library created for interacting with the learning platform "anton.app".

Installing

To install antonLib simply type

pip install antonLib

into your command prompt.

To dwonload the source code you can just type this.

git clone https://github.com/Antonabi/antonLib.git

Requirements

If you downloaded the source code you have to install the requirements like this:

pip install -r requirements.txt

Usage

With antonLib you can make a lot of things. View the full documentation here.

Examples

Here ill list a few examples that show what the library does.

Logging in

There are two different ways of logging in with antonLib.
The first one is the simplest:

import antonLib

session = antonLib.loginWithCode("yourLoginCode") #creates a session object

For the second one you need to have your logId:

import antonLib

session = antonLib.logInWithLogId("yourLogId") #also creates a session object

If you dont know what a logId is, here is a description.

Pixel Paint

When you are logged in, you can do many things. Here is how you like a pixel paint image:

import antonLib

session = antonLib.loginWithCode("yourLoginCode") #logging in

session.likePixelPaint("imageUid") #liking the image

If you dont know how to get the uid of an image, its actually quite simple.
To get it, you just need to click on the image, and then click on "share image". Then you will get a link that looks like this: https://anton.app/pixelPaintImage/RqfT06Mp. The uid is at the end of the link. In this example it is "RqfT06Mp".

Creating Users

With antonLib you can also create users. Creating a user is very simple. This is an example script that does it:

import antonLib

createdUser = antonLib.createUser("username") #creating the user

session = antonLib.logInWithLogId(createdUser.logId) #logging in (you have to log in with the logId because a created user object doesnt give you a login code)

Full Documentation

Check out the full documentation here.

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

antonLib-0.1.1.3.2.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

antonLib-0.1.1.3.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

Details for the file antonLib-0.1.1.3.2.tar.gz.

File metadata

  • Download URL: antonLib-0.1.1.3.2.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for antonLib-0.1.1.3.2.tar.gz
Algorithm Hash digest
SHA256 d92543f466f9b8049c1696b963760ee60411e0616b5852ba0e8626a853268565
MD5 04c22911fb3457c1d53b95a73cd1bd90
BLAKE2b-256 d7fc54a284be992a6f1a20dc02239222376114547bf8bd87e1c3e3e105a14ad1

See more details on using hashes here.

File details

Details for the file antonLib-0.1.1.3.2-py3-none-any.whl.

File metadata

  • Download URL: antonLib-0.1.1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.4

File hashes

Hashes for antonLib-0.1.1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d90a1572b3178d6b366122a36035195bfa770dc311595805e15a610f56a2a7b6
MD5 5a119d321e32b7c60d55b96eb3015576
BLAKE2b-256 97609d7ad641044eef2d3a8ffeb52407dfaa6a28dab1bc1f390b99ee48f38fb8

See more details on using hashes here.

Supported by

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