Skip to main content

Python package that acts as a wrapper for the EZOffice API.

Project description

ezoff

Python package for interacting with the EZOffice API

Installation

Add as a git submodule for now. Intend on at some point making available as a proper package.

Usage

Several environment variables are required for ezo to function.

Required? Env Variable Description
EZO_BASE_URL Yes Should be https://{companyname}.ezofficeinventory.com/
EZO_TOKEN Yes The access token used to authenticate requests

Project Structure

Project is split up into several files depending on what area of the EZOffice API is being dealt with. Purely for organizational purposes.

Assets

Contains functions for the following:

  • get all asssets
  • get filtered assets
  • search for an asset
  • create an asset
  • update an asset
  • delete an asset
  • check asset in
  • check asset out
  • get an asset's history

Groups

Contains functions for the following:

  • get subgroups

Locations

Contains functions for the following:

  • get locations
  • get location details
  • get item quantities in location
  • create a location
  • activate a location
  • deactivate a location
  • update a location

Members

Contains functions for the following:

  • get members
  • get a member's details
  • create a member
  • update a member
  • deactivate a member
  • activate a member
  • get custom roles
  • get teams

Work Orders

Contains functions for the following:

  • get work orders
  • get work order details
  • get work order types
  • create a work order
  • start a work order
  • end a work order
  • add work log to a work order
  • add linked inventory to a work order
  • get checklists

Notes

The official EZOffice documentation is mistaken on custom fields (insofar as how to fill them out when creating an object or updating the custom field on an already existing object). It says to put underscores in place of spaces in the field name, but this is incorrect. After testing the API, it appears it wants the actual name of the field with the spaces, not underscores. At least on members.

Similarly, the documentation isn't exhaustive when it comes to listing the valid fields when creating or updating something. Frequently there are fields on the actual page that aren't mentioned in the EZOffice documentation. Throughout this program I check that keys provided are valid to prevent the API call from potentially erroring out. So there may be times where a valid key is provided but the function does not allow it, because the key wasn't documented. Just have to add to list of valid key whenever we run into one.

When wanting to clear a field out of its current value with an update function, generally the empty string ("") should be used.

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

ezoff-0.1.4.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

ezoff-0.1.4-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file ezoff-0.1.4.tar.gz.

File metadata

  • Download URL: ezoff-0.1.4.tar.gz
  • Upload date:
  • Size: 10.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for ezoff-0.1.4.tar.gz
Algorithm Hash digest
SHA256 bb9233a71cf4d4a5f2f5c776215e674d07e0d0cd2a484a722f30c715f26db5d8
MD5 0a66182535aae7c05c9a6304d189ab94
BLAKE2b-256 f7d0a32b228f3d62d582e6e93aab59cd302ed9f95566e3886a3e4b370865809d

See more details on using hashes here.

File details

Details for the file ezoff-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ezoff-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 13.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for ezoff-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7cb03104204d7e92ba5690ec3fe1cd16b8f215a4adf3ef04d99de0d20b1b97a4
MD5 3dd1eadde4b17ce497f3914a7dd5c18c
BLAKE2b-256 22e427229a3e62f6bf2d430b335ee5e7c6126a45da9fa420347d5ec2b03f4e31

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page