Skip to main content

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.

Metadata

Release files for antonLib 0.1.1.3.2

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

Source distribution (sdist)

Source distribution for antonLib 0.1.1.3.2
File Size Uploaded
antonLib-0.1.1.3.2.tar.gz 10.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for antonLib 0.1.1.3.2
File Interpreter ABI Platform
antonLib-0.1.1.3.2-py3-none-any.whl Python 3 none any Details

Total release size: 21.6 kB

Release files / antonLib-0.1.1.3.2.tar.gz

Download URL antonLib-0.1.1.3.2.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d92543f466f9b8049c1696b963760ee60411e0616b5852ba0e8626a853268565
BLAKE2b-256 checksum
How to use checksums
d7fc54a284be992a6f1a20dc02239222376114547bf8bd87e1c3e3e105a14ad1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release files / antonLib-0.1.1.3.2-py3-none-any.whl

Download URL antonLib-0.1.1.3.2-py3-none-any.whl
Size 10.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d90a1572b3178d6b366122a36035195bfa770dc311595805e15a610f56a2a7b6
BLAKE2b-256 checksum
How to use checksums
97609d7ad641044eef2d3a8ffeb52407dfaa6a28dab1bc1f390b99ee48f38fb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Release history Release notifications | RSS feed

This release

0.1.1.3.2 This release

2 release files

0.1.1

2 release files

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