Skip to main content

pantry-cloud

PyPI version Language GitHub issues GitHub forks GitHub stars GitHub license GitHub last commit (branch) Pull Requests

This lightweight package is a python implementation of Free JSON Storage API pantry.

Features

  • Creates a basket.
  • Deletes a basket.
  • Updates a basket.
  • Shows account details.
  • Writes basket data in json file.

The aim of this package is to make pantry api usage simple.

Installation

pantry-cloud requires python3.7+ to run.

Windows

pip install pantry-cloud
or
pip install --upgrade pantry-cloud

Linux

pip3 install pantry-cloud
or 
pip3 install --upgrade pantry-cloud

Module Usage

Creating basket

from pantry_cloud import Pantry

pantry = Pantry(api_key='your api key')
res = pantry.create(basket='hello', inputfile='path to json file') # Use inputfile if you want to upload data
print(res)

Basket detail

from pantry_cloud import Pantry

pantry = Pantry(api_key='your api key')
res = pantry.basket(basket='hello', outputfile='path to json file') # Use outputfile if you want to write data data
print(res)

CLI Usage

usage: pantry [-h] -a API [-o OUTPUT_FILE] [-i INPUT_FILE] [-s] [-b BASKET] [-u UPDATE] [-c CREATE] [-d DELETE]

optional arguments:
  -h, --help            show this help message and exit
  -a API, --api API     api key.
  -o OUTPUT_FILE, --output OUTPUT_FILE
                        output file.
  -i INPUT_FILE, --input INPUT_FILE
                        input file.
  -s, --show            Shows account details.
  -b BASKET, --basket BASKET
                        Shows data of a basket.
  -u UPDATE, --update UPDATE
                        Updates a basket.
  -c CREATE, --create CREATE
                        Creates a new basket , or replace an existing one.
  -d DELETE, --delete DELETE
                        Deletes the entire basket.

Metadata

Release files for pantry-cloud 1.2.0

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

Source distribution (sdist)

Source distribution for pantry-cloud 1.2.0
File Size Uploaded
pantry_cloud-1.2.0.tar.gz 4.3 kB Details

Release files / pantry_cloud-1.2.0.tar.gz

Download URL pantry_cloud-1.2.0.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
c961a08e3b4d63a89c37a07e5134cba688108ad665250a67bfece285a3ef4d40
BLAKE2b-256 checksum
How to use checksums
d48d1df336fe7dc27db0484810c6b537104dfab766a7111207c97027a5339b2f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.7.0 requests/2.25.1 setuptools/51.1.1 requests-toolbelt/0.9.1 tqdm/4.55.0 CPython/3.8.6

Release history Release notifications | RSS feed

This release

1.2.0 This release

1 release file

1.1.0

1 release file

1.0.0

1 release file

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