Skip to main content

Spire API Python Client

A robust and extensible Python client for interacting with the Spire Business Software API. This client provides an object-oriented interface to get, create, update, delete, query, filter, sort, and manage various Spire modules such as Sales Orders, Invoices, Inventory Items, and more.


Documentation

https://sanjid-sharaf.github.io/spyre/

✨ Features

  • ✅ Object-oriented resource wrappers for each module (e.g., salesOrder, invoice, item)
  • 🔍 Full-text search via q parameter
  • 🔁 Pagination with start and limit support
  • 🧾 JSON-based advanced filtering (supports $gt, $lt, $in, $or, etc.)
  • ↕️ Multi-field sorting with ascending/descending control
  • 🔧 Clean abstraction layer for API endpoints
  • 📦 Powered by pydantic models for validation

📦 Installation

pip install spyreapi

⚙️ Configuration

  • How to set up your spire client

Find your Spire URL

The base URL for the Spire API is the same url provided by Spire that you use to access Spire server and uses port 10880 as default: Replace {spire-url} with the url provided by Spire.

  • https://{spire-url}:10880/api/v2/

Spire Cloud If you are using Spire cloud you do not need to specify a port. The base URL for API for Spire Cloud customers would be:

  • https://{spire-cloud-url}/api/v2/

Set up your client with your credentials

from spyre import Spire
# host is your spire url and the port if applicable
client = Spire(host = 'your-spire-host', company = 'comapany-name' , username = 'username' , password = 'password' )

Example : Updating the status of an inventory item

item = client.inventory.items.get_item(1101)    # Gets item with id 1101
item.status = 1                                 # Use either item. or item.model. . item.model. will bring up all attributes
item.update()

Metadata

Release files for spyreapi 0.0.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for spyreapi 0.0.11
File Size Uploaded
spyreapi-0.0.11.tar.gz 22.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for spyreapi 0.0.11
File Interpreter ABI Platform
spyreapi-0.0.11-py3-none-any.whl Python 3 none any Details

Total release size: 51.4 kB

Release files / spyreapi-0.0.11.tar.gz

Download URL spyreapi-0.0.11.tar.gz
Size 22.1 kB
Tags Source
SHA-256 checksum
How to use checksums
6d7fe12f7f039c40be0ad3734d0900c5cdcb28d4707bc255692c5178427fa7b5
BLAKE2b-256 checksum
How to use checksums
6edbc9a0f1ef9f9230848b27c3f31c11c352869d54019fae1c437ce652f831f2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release files / spyreapi-0.0.11-py3-none-any.whl

Download URL spyreapi-0.0.11-py3-none-any.whl
Size 29.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef025896646886eae40c5fff4e00d494e15a29f683bee28a2b3b291ebd431bc1
BLAKE2b-256 checksum
How to use checksums
b579b2dcf3810ed7aedf6dc29e0e32f163b1dcf70799ecafce97b2ea61869606
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.0

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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