This library have methods to use mindsight auth api in your python project.
Project description
mindsight-auth-api
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file mindsight_auth_api-0.0.1.tar.gz
.
File metadata
- Download URL: mindsight_auth_api-0.0.1.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2d77da71d9acded56577f54cccc7733befb0fa37c3ffdbb1c1466aec60c6dff8 |
|
MD5 | 646d93fa063e74aec37b20ce1bda76ae |
|
BLAKE2b-256 | 4019f05987ebb16f35449df589ab4667baf6b6e2957cbe3c2ba378867008a9d3 |
File details
Details for the file mindsight_auth_api-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: mindsight_auth_api-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.20
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c6502cc8f05b7c683417c69ff03ba5b2f3cfc8d0827b9bfa109fc5ef44b52ff5 |
|
MD5 | f213068f8b59627b5f4eb993a7b29101 |
|
BLAKE2b-256 | 91b0e41ccbf451b302effc48de5c1c8ea4e8942f9c218e0e8da61ed041a69755 |