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.2.tar.gz (2.8 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.2-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easysaveservice-0.2.2.tar.gz
  • Upload date:
  • Size: 2.8 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.2.tar.gz
Algorithm Hash digest
SHA256 4d723c471cae76402e563b7106e91f95d5ecc6119fc7776423b62a9548e68374
MD5 0781bda7e5aad23c38d2bd4428054e2d
BLAKE2b-256 f48cc593649fd465045b2de2a15906694f8de160f6d8c7873520c84e8eb8aa8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easysaveservice-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6f3353965e602a610145cc4bfa5982d0a89a8f11170adc2f154b57ccd2c06a0
MD5 f5fc85650ce90634145518239ab66159
BLAKE2b-256 416e92a4611d2b0f7d2ec20125c3dd7408fe36b506fd541edd4270712e36dd47

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