Skip to main content

UCube

What is it?

UCube creates internal cache for the communities a user follows on United-Cube.
This is a wrapper for United-Cube's private API, but may be referred to as an API on this repository.

API Documentation

Discord Support Server

A UCUBE DISCORD BOT CAN BE FOUND HERE

Functionalities

  • Asynchronous and Synchronous Support
  • Receive all the posts the artists in your communities have made. This includes all images/videos/comments made by them.
  • Cache is split under a hierarchy directly under a club.
  • Keep track of notifications on your user account, you can easily create a loop to update your notification cache on updates. (Usage of this can be found in the examples folder)
  • Event hook for new notifications.

Installation

In a terminal, type pip install UCube.

To install from source:
pip install git+https://github.com/MujyKun/united-cube.git

How to Use

There are two ways to log in.
The first way is using a username and password to login which will automatically refresh your token.
The second way is getting your account token manually and being logged in for a very short amount of time.

In order to get your account token, go to United-Cube and Inspect Element (F12).
Then go to the Network tab and filter by XHR. Then refresh your page (F5) and look for popup or clubs under XHR.
Under Headers, scroll to the bottom and view the request headers. You want to copy everything past Authorization: Bearer.

For example, you may see (This is just an example):
Authorization: Bearer ABCDEFGHIJKLMNOPQRSTUVWXYZ
Then ABCDEFGHIJKLMNOPQRSTUVWXYZ would be your auth token for UCube. It is suggested to have the auth token as an environment variable.

The first method to log in (username & password) is the best way and SHOULD be the way that you log in.

CODE EXAMPLES

Asynchronous Example
Synchronous Example

API Documentation

Release files for UCube 0.0.2.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 UCube 0.0.2.2
File Size Uploaded
UCube-0.0.2.2.tar.gz 19.6 kB Details

Built distribution (wheel)

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

Total release size: 45.3 kB

Release files / UCube-0.0.2.2.tar.gz

Download URL UCube-0.0.2.2.tar.gz
Size 19.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3ac986c6723431c5be6430c97bf9401d311a9d44e7db49cc96b9182724f78d71
BLAKE2b-256 checksum
How to use checksums
4195958ac165f6bc7b563e84fc8d69159a978accd25bb2cdfde39ff4e1f42d44
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release files / UCube-0.0.2.2-py3-none-any.whl

Download URL UCube-0.0.2.2-py3-none-any.whl
Size 25.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41dea3301895985e4db0decb384903f28c970cb23a1de741980092a4194cd317
BLAKE2b-256 checksum
How to use checksums
f2d4b3ca48fc44da701775440918d56129c500ec8de0ac935d80f6d91e7d3a4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.0.2.2 This release

2 release files

0.0.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