Skip to main content

A python wrapper for the MeaxisNetwork API.

Project description

MeaxisNetwork API Python Wrapper

Introduction

This is a python wrapper to include MeaxisNetwork API Endpoints and requests into your code. The following endpoints are supported:

Users
Accounts
Creations
Funfact
Shop
Vote

Code Samples

Get public user data from a MeaxisNetwork User

from meaxisnetwork import users

Meaxis = users.User(platform = "username", query = "Meaxis")

# JSON of the User Object

print(Meaxis.UserJSON)


# Any attribute of the user object will be a variable to use.

print(Meaxis.username + Meaxis.id + Meaxis.description)

Get all Shop Items in the MeaxisNetwork Shop

from meaxisnetwork import shop

Shop = shop.Shop()
print(Shop.items)    

Installation

Go to the following link:

https://pypi.org/project/meaxisnetwork

And then copy the installation link.

Windows

In the search bar, type in 'Command Prompt' and then press 'Yes' to the User Account Control Prompt.

Then paste the command you copied and press enter.

Linux

Run the following command in your terminal:

python3 -m pip install meaxisnetwork

If it says anything about python3 not being found, you need to install python with your Package Manger.

Debian:

sudo apt-get install python

Arch:

sudo pacman -S python

For other distributions, use your package manager to install python.


Changelog


Version 0.0.2

  • Beta Version released
  • Users, Account, Funfact, LeafyStatus, Shop and Creations class.
  • Custom errors for missing keyword arguments.

Version 0.0.3

  • Account, User, Creations, Funfact, LeafyStatus, Shop, Vote classes are split into files.
  • Credentials class is added for storing logcooks and sesscooks (not fully implemented).
  • New function for checking the response codes to format errors in a readable JSON format.

Version 0.0.4

  • (CRITICAL) Fixed a bug where the module did not install properly.

Version 0.0.5

  • (CRITICAL) Fixed a bug where incorrect dependencies were trying to be installed by setuptools configuration.

Version 0.0.6

  • Even more critical bug fixes.

Version 0.0.7

  • BUG FIXES

Version 0.0.8 & 0.0.9

  • Critical Bug Fix Attempts

Version 0.1.0

  • The critical bug has been fixed.
  • Importing the module no longer gives you the "filename has been loaded" screen.

Version 0.1.1 & 0.1.2 & 0.1.3 & 0.1.4

  • Categorisation (v2 APIs go in meaxisnetwork.v2)
  • meaxisnetwork.utils now includes a HTTPRequest class for ease of use for using the module with outdated or deprecated APIs not included in the module.
  • All modules have been switched to the HTTPRequest class instead of the previous request workflow.
  • POST requests have been fixed.
  • Credentials class fully implemented.

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

MeaxisNetwork-0.1.4.dev0.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file MeaxisNetwork-0.1.4.dev0.tar.gz.

File metadata

  • Download URL: MeaxisNetwork-0.1.4.dev0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.24.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.9.2

File hashes

Hashes for MeaxisNetwork-0.1.4.dev0.tar.gz
Algorithm Hash digest
SHA256 6c35acd905868dadc06d3ca341948bcfedabb9d654c1b1c846e39d706a8e0ef5
MD5 392f3853f4e45a1b9005e5ee4078a5e9
BLAKE2b-256 6350d718240fd7e63d5f92f9bfa2ecf2aa1f85e56844f9ff68e673f362aa8784

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