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.0.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.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: easysaveservice-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 5f3d8f73b9654f6efac5d958c2bd195983e491f4d3599959146b54bde82e7ca0
MD5 2266087c788317b6a30d2239d989127d
BLAKE2b-256 a2aae7a0edeacb5ef7c716b675cc2d87eb4edfab36dd473be24b481c8e7ba8dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for easysaveservice-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8cb43974459ca25cbff103d3bbcedbb424c09de09814a5a24c633f1e03fe64b
MD5 054222fc272c72b479c54debde1c0b4b
BLAKE2b-256 0513e555750056300033d758f89d095bb82f39657e7343faf1db204fe7b2a8f3

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