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
Built Distribution
File details
Details for the file ezoff-0.1.11.tar.gz
.
File metadata
- Download URL: ezoff-0.1.11.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5b68f6fce139f3834c7a687b3fa86552ecb23b85cc1017f66930270e71e608a |
|
MD5 | a8ded595230b531ac1d4456d65a65d98 |
|
BLAKE2b-256 | 5d83fdec85ea252fd21a9b53c439c80a3318ea2e4397685ed2dabbcf50929acc |
Provenance
The following attestation bundles were made for ezoff-0.1.11.tar.gz
:
Publisher:
python-publish.yml
on pepsimidamerica/ezoff
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ezoff-0.1.11.tar.gz
- Subject digest:
a5b68f6fce139f3834c7a687b3fa86552ecb23b85cc1017f66930270e71e608a
- Sigstore transparency entry: 146808102
- Sigstore integration time:
- Predicate type:
File details
Details for the file ezoff-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: ezoff-0.1.11-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d9605a82415e65f3a5b83b232c8b59444b0ec0f30dbd4f349407d95a1fbb39a |
|
MD5 | b0c5f0b841c180cccc0c86a3d60da8ec |
|
BLAKE2b-256 | f70ae4056cde15ccbbf5654fa028f494f142dc0a28972a14d72df48e0dc03a3f |
Provenance
The following attestation bundles were made for ezoff-0.1.11-py3-none-any.whl
:
Publisher:
python-publish.yml
on pepsimidamerica/ezoff
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
ezoff-0.1.11-py3-none-any.whl
- Subject digest:
6d9605a82415e65f3a5b83b232c8b59444b0ec0f30dbd4f349407d95a1fbb39a
- Sigstore transparency entry: 146808103
- Sigstore integration time:
- Predicate type: