Skip to main content

This library have methods to use mindsight auth api in your python project.

Project description

mindsight-auth-api

PyPI Latest Release

Use mindsight auth functionalities in your python application.

Instalation

pip install mindsight-auth-api

Configuration

Environment variables

To use mindsight-auth-api, you need to set two environment variables:

# ---DOTENV EXAMPLE---

MINDSIGHT_AUTH_API_TOKEN= # Token to authenticate
MINDSIGHT_AUTH_API_COMPANY=your-company
MINDSIGHT_AUTH_API_SERVER=your.server # Example auth.mindsight.com.br
MINDSIGHT_AUTH_API_VERSION=v1 # Default value is 'v1'

Usage Example

You can use mindsight-auth-api in order to create, update and delete records.

List registers

You can use get methods to list registers of system table. See the following example:

# Using this library to retrieve all users records
import os
os.environ["MINDSIGHT_AUTH_API_TOKEN"] = "token"
os.environ["MINDSIGHT_AUTH_API_COMPANY"] = "your_company"
os.environ["MINDSIGHT_AUTH_API_SERVER"] = "your.server"
os.environ["MINDSIGHT_AUTH_API_VERSION"] = "v1"             # Default value "v1"

from mindsight_auth_api import MindsightAuthApi


users = MindsightAuthApi.users()

data = users.get_list_users().get_all().results

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

mindsight_auth_api-0.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

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

mindsight_auth_api-0.0.2-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file mindsight_auth_api-0.0.2.tar.gz.

File metadata

  • Download URL: mindsight_auth_api-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.20

File hashes

Hashes for mindsight_auth_api-0.0.2.tar.gz
Algorithm Hash digest
SHA256 905448bc841f767be2b6c37b0b440c42bf7394729264315ca238f46aadd37069
MD5 b78a633c8955261689c260d0c6e70424
BLAKE2b-256 51e8b64443f036152537b7494627489c0d90aa7d26e71db44f2a41a0a957cb81

See more details on using hashes here.

File details

Details for the file mindsight_auth_api-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for mindsight_auth_api-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fd8956d5f44fc6fdedfea311d24d77871191438720248500278cdb1f91e4279e
MD5 be357ecfcd2d69b34124744b85180ec6
BLAKE2b-256 23e013ab630c7d5c3c298982ed26ae4e4bdf6c3215fae26eae6250b94db52f2c

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