Skip to main content

Slurpit SDK

The Slurpit SDK is a Python package for interacting with the Slurpit API, enabling developers to easily manage devices and planning resources. It is designed for simplicity and flexibility, offering methods for listing devices, retrieving planning data, and exporting information to CSV format.

Installation

Install the SDK:

pip install slurpit_sdk

To run the examples, install dependencies using Poetry (recommended):

poetry install

Alternatively, use pip:

pip install -r requirements.txt

To build from source:

cd src
python setup.py install

Quick Start

To quickly test the examples, copy .env.example to .env (includes default sandbox credentials):

# From the examples/ folder run:
cp .env.example .env

Working with Devices

Retrieve and print the hostnames of all devices:

devices = api.device.get_devices()
for device in devices:
    print(device.hostname)

Exporting Data to CSV

To export planning data to a CSV file:

plannings_csvdata = api.planning.get_plannings(export_csv=True)
result = api.device.save_csv_bytes(plannings_csvdata, "csv/plannings.csv")

Exporting Data as Pandas DataFrame

To export planning data as a pandas dataframe

plannings_df = api.planning.get_plannings(export_df=True)

Pagination

Handle large sets of devices with pagination:

devices = api.device.get_devices(offset=100, limit=1000)
for device in devices:
    print(device.hostname)

Metadata

Release files for slurpit_sdk 0.9.158

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

Source distribution (sdist)

Source distribution for slurpit_sdk 0.9.158
File Size Uploaded Provenance Actions
slurpit_sdk-0.9.158.tar.gz 34.9 kB Without provenance Details for slurpit_sdk-0.9.158.tar.gz

Built distribution (wheel)

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

Total release size: 93.0 kB

Release files / slurpit_sdk-0.9.158.tar.gz

Download URL slurpit_sdk-0.9.158.tar.gz
Size 34.9 kB
Tags Source
SHA-256 checksum
How to use checksums
641dc8b6b8cc178155b406f7fdfb5c3f992799e8e3848ca4e12ca34e17661d68
BLAKE2b-256 checksum
How to use checksums
13cf9c32d88728efc7239479c519af09a354ded50703065e3e3df71ab7a57f5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.15.2 Linux/7.0.0-42-generic

Release files / slurpit_sdk-0.9.158-py3-none-any.whl

Download URL slurpit_sdk-0.9.158-py3-none-any.whl
Size 58.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
050c87fdd558afa3916a30b08a13ed6edf7567af06940c6065c2deb14ae8ba0a
BLAKE2b-256 checksum
How to use checksums
5a82d1e4dc147e75b1a9812cd56eee491bc74e282636fae6f9bb3cb60ef9906c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.5.1 CPython/3.15.2 Linux/7.0.0-42-generic

Security for slurpit_sdk 0.9.158

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.

Release history Release notifications | RSS feed

This release

0.9.158 This release

2 release files No provenance

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