Skip to main content

EasySave service python library

Project description

easySaveClient

easySaveClient is a Python client library for interacting with the EasySave API. It provides a high-level interface for performing CRUD (Create, Read, Update, Delete) operations on data blocks using a simple and intuitive design.

Features

  • Authenticate with EasySave API using username and password.
  • Create new data blocks using string or typed inputs.
  • Retrieve blocks with flexible filtering.
  • Update or delete existing blocks.
  • Serialize and deserialize blocks easily.

Installation

pip install easysaveservice

Getting Started

Importing the service

import easysave

Configuring client

es = easysave.easySaveClient("USERNAME", "PASSWORD")

Basic Usage

Retrieve data block/s

blocks = es.getBlocks("name")

You can retrieve all blocks that match the following pattern: name*. This means any value starting with name will be retrieved in the form of a list.

block = es.getBlocks("name", strict=True)

Setting strict=True will ensure only the block which exactly matches name will be retrieved.

The above functions return a list of dictionaries in the following format:

{"identifier": identifier, "value": value}

If you wish to retrieve a list of blocks using the easysave.Block class, use the following alteration of the function:

es.getBlocksTyped(identifier)

Creating data block

es.createBlock("identifier", "value")

Alternative, you can use the typed version:

es.createBlockTyped(BlockInstance)

Altering data block

es.updateBlock("identifier", "newvalue")

Deleting data block

es.deleteBlock("identifier")

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

easysaveservice-0.2.3.tar.gz (5.3 kB view details)

Uploaded Source

Built Distribution

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

easysaveservice-0.2.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file easysaveservice-0.2.3.tar.gz.

File metadata

  • Download URL: easysaveservice-0.2.3.tar.gz
  • Upload date:
  • Size: 5.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for easysaveservice-0.2.3.tar.gz
Algorithm Hash digest
SHA256 222317b3eed81736eefb0163882ca84e19fb960f74688c1dfb271f5a3d7b60ac
MD5 77a6f224c2dc91ce8b7990e40742f600
BLAKE2b-256 79dc185ebf66fd13f181696a9322ed018464ce867281db7e040acca97be81ebc

See more details on using hashes here.

File details

Details for the file easysaveservice-0.2.3-py3-none-any.whl.

File metadata

File hashes

Hashes for easysaveservice-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cb0010658810320430c3cb4f7fab6ff8e4ef1189137d88a29fa5a521db77f65f
MD5 b8b7f8f3c3c4d76fc6d759cf9098d0b3
BLAKE2b-256 257ff6dc2a06e3c5fbcaba59bdf9f8fe7029b6fb12e28b632e90d9b18949c840

See more details on using hashes here.

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