Skip to main content

Fiix CMMS client for Python

The unofficial Fiix CMMS client for Python.

Installation

pip install fiixclient

Setup

Get API keys from your Fiix web application. Not sure how? Read here.

Once you've obtained your API Aplication Key, Access Key and API Secret you're ready to get started. Keep them nearby as we'll use them next.

Basic Usage and Getting Started

from fiixclient import FiixClient

# Add the client version as required.
client_version = {"clientVersion": {"major": 2, "minor": 8, "patch": 1}}

# Hook up your API Keys. You could also export these to your environment variables.
SUBDOMAIN = "" # eg mycmmstenant (do not include the whole URL)
API_KEY = "" # also known as Application Key
ACCESS_KEY = ""
API_SECRET = ""


# Setup the Fiix Client
fiix = FiixClient(subdomain=SUBDOMAIN, api_key=API_KEY,
              access_key=ACCESS_KEY, api_secret=API_SECRET, version=client_version)
              

# Add context to your requests. For more info check out the CRUD examples https://fiixlabs.github.io/api-documentation/guide-nosdk.html#crud_example
context = {
    "className": "Account",
    "fields": "id, strCode, strDescription"
}

# Methods available are create(), retrieve(), update(), delete() and batch().
r = fiix.retrieve(context)
print(r.json())
# This will return a response in Json

# Batch example

batch_context = {
    "requests": [
		{
			"_maCn" : "FindRequest",
			"className": "Account",
			"fields": "id, strCode, strDescription"
		},{
			"_maCn" : "FindRequest",
			"className": "PurchaseOrder",
			"fields": "id, intCode, intPurchaseOrderStatusID, intSupplierID",
			"filters": [{"ql": "intSupplierID > ? and intSupplierID < ?", "parameters" : [259605, 259610]}]
		}
	  ]
}

obj = fiix.batch(batch_context)
print(obj)

# Objects returned are based on the Requests library. By default it will return a status code (eg 200).. append .json() to get the json data from the body.

Refer to the documentation for more information, especially the request context.

License

see LICENSE for more information.

Metadata

Release files for fiixclient 1.1.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 fiixclient 1.1.2
File Size Uploaded Provenance Actions
fiixclient-1.1.2.tar.gz 4.5 kB Without provenance Details for fiixclient-1.1.2.tar.gz

Release files / fiixclient-1.1.2.tar.gz

Download URL fiixclient-1.1.2.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
e0550596a88a7c963b234b831f9422aa6711a3bb90872ff62504e52293231b53
BLAKE2b-256 checksum
How to use checksums
2adb3ac303f7efc2b8aa45b61dbf4e2333276db9f0ce7b59f55a337ad56494f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.2 importlib_metadata/4.8.0 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.5

Security for fiixclient 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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