Skip to main content

No project description provided

Project description

plusoft-api

Use Edusense API funcionalities in your python application.

Instalation

pip install plusoft-api

Usage Examples

You can use this package in order to access Edusense API Rest Api Methods.

First one, you need to instantiate the PlusoftApi object, by passing your username, password and domain:

from plusoft_api import PlusoftApi


# We recommend the use of environment variables to improve security to your credentials
plusoft_api = PlusoftApi(
    username="your-login",
    password="your-password",
    domain="your-domain" # You can get this in your environment url, for example: https://{your-domain}.edusense.app
)

After that, you can access the api methods, for example to insert new users:

from plusoft_api import PlusoftApi


# We recommend the use of environment variables to improve security to your credentials
plusoft_api = PlusoftApi(
    username="your-login",
    password="your-password",
    domain="your-domain" # You can get this in your environment url, for example: https://{your-domain}.edusense.app
)

users = [
    {"login": "user1", "name": "User 1", "email": "user1@gmail.com"},
    {"login": "user2", "name": "User 2", "email": "user2@gmail.com"},
    {"login": "user3", "name": "User 3", "email": "user3@gmail.com"},
    {"login": "user4", "name": "User 4", "email": "user4@gmail.com"}
]

for user in users:
    plusoft_api.users.insert_users.add_to_payload(**user) # This method will check and store in memory the user to use later to generate payload and upload to plusoft

plusoft_api.users.insert_users.upload() # This method will upload to plusoft the users stored by add_to_payload method

This library is under development and not all methods are available.

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

plusoft_api-0.1.3.tar.gz (8.9 kB view details)

Uploaded Source

Built Distribution

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

plusoft_api-0.1.3-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file plusoft_api-0.1.3.tar.gz.

File metadata

  • Download URL: plusoft_api-0.1.3.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for plusoft_api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 e11059111e97c9efe68b88a12c0f97d3cb65c72bbab0026347ae477ea9351b2c
MD5 e77f0e4271017542a1cef95fb28b9ac8
BLAKE2b-256 0d3ed5561716de8823da78329a6679753bfc2639f90d6a21741ba60c44f6b552

See more details on using hashes here.

File details

Details for the file plusoft_api-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: plusoft_api-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for plusoft_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f5c4b839659bd3849bacf52975ba265ff6955dc313c65b75e04fd4a750dd673b
MD5 50c74091672c76cca5687a90b6c84344
BLAKE2b-256 8411ccc9b3bc5c4c15b881b2833db1290afe8d2a4728069ce20312969f0606ce

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