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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file easysaveservice-0.2.1.tar.gz.
File metadata
- Download URL: easysaveservice-0.2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9e6d076e1afd59f7479b52c568dd8feca3a115d1fa2b9d7e94d2b4bbe431fbe7
|
|
| MD5 |
afc4f163b142971110a1b5ff7aa7a4c0
|
|
| BLAKE2b-256 |
13b2278edb7c1ad7f873a0ff8bb9c529a7e162683c66b16f7aac08485e4baa74
|
File details
Details for the file easysaveservice-0.2.1-py3-none-any.whl.
File metadata
- Download URL: easysaveservice-0.2.1-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92039686a7c032944debcf6ae185097108e39dc47ca71afa4c370411f48a89bd
|
|
| MD5 |
da6da1c37e3c9d260e1f48e279e93acd
|
|
| BLAKE2b-256 |
bae4ee63d87b10ea7816d3cf3bcdf3877da10dee1081a9f5176256c02db86762
|