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

pip install ezoff

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

Inventories

  • get inventories
  • get inventory details
  • create inventory order
  • get inventory 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 key that would be valid if passed to the API is provided, but the function does not allow it. This is 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


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

ezoff-0.2.17.tar.gz (18.6 kB view details)

Uploaded Source

Built Distribution

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

ezoff-0.2.17-py3-none-any.whl (25.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ezoff-0.2.17.tar.gz
  • Upload date:
  • Size: 18.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ezoff-0.2.17.tar.gz
Algorithm Hash digest
SHA256 cdaf07d4c59cd9cceb9015a3936d4449ff23fa3d245f2c35b07a92b602e8c37b
MD5 e1107801db66c5e76e455ad37da12972
BLAKE2b-256 d7f27834c057fad827919d070429ea665f8e5ec7175be2b81837ce67cbbfb9ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezoff-0.2.17.tar.gz:

Publisher: python-publish.yml on pepsimidamerica/ezoff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: ezoff-0.2.17-py3-none-any.whl
  • Upload date:
  • Size: 25.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for ezoff-0.2.17-py3-none-any.whl
Algorithm Hash digest
SHA256 d5f275ff8c3e365458673478c64c29292fa84cc17fde82da9a9fd0877c3a0552
MD5 14121b1a9b4fd38e08cf30bc544d7c28
BLAKE2b-256 e6a0bd5298a2e8dd58a3cb9b20eae313a4543d4e1cbf1c6d48b1bee9ed3100da

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezoff-0.2.17-py3-none-any.whl:

Publisher: python-publish.yml on pepsimidamerica/ezoff

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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