Skip to main content

PySaltcorn

This is python client interface for Saltcorn REST API.

Installation

$ pip3 install pysaltcorn==0.3.1

Usage

>>> import io, pysaltcorn; from pprint import pp
>>> cl = pysaltcorn.SaltcornClient("https://url-encoded-email:password@tenant.saltcorn.com")
>>> cl.login_session()
>>> cl.files_upload({'filename.txt': io.StringIO('file content\n')}, '/foldername/')
True
>>> pp(cl.files_list())
[{'filename': 'foldername',
  'location': '/root/.local/share/saltcorn/netbox/foldername',
  'uploaded_at': '2023-06-08T12:20:25.323Z',
  'size_kb': 4,
  'user_id': None,
  'mime_super': '',
  'mime_sub': '',
  'min_role_read': 10,
  's3_store': False,
  'isDirectory': True}]

Release files for pysaltcorn 0.3.1

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

Source distribution (sdist)

Source distribution for pysaltcorn 0.3.1
File Size Uploaded
pysaltcorn-0.3.1.tar.gz 6.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pysaltcorn 0.3.1
File Interpreter ABI Platform
pysaltcorn-0.3.1-py3-none-any.whl Python 3 none any Details

Total release size: 13.2 kB

Release files / pysaltcorn-0.3.1.tar.gz

Download URL pysaltcorn-0.3.1.tar.gz
Size 6.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d69ab9eeb04664ad73089fa7f1f3130c49838c8877a66f2b7fa0d70fd55ccf9f
BLAKE2b-256 checksum
How to use checksums
b23b395e8051c469a56b1908541c30edaeae9dbd2395f25000ce8f20a1a6e0d0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.6 Linux/5.19.0-41-generic

Release files / pysaltcorn-0.3.1-py3-none-any.whl

Download URL pysaltcorn-0.3.1-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60ae34f9e626200ae55f8445df6c63d0de4c0f864c5f8b658c9d969ad946c732
BLAKE2b-256 checksum
How to use checksums
75eb1b11fddbc99aef69acf9b3e5134201d951b09940744a67ba00f214223804
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.12 CPython/3.10.6 Linux/5.19.0-41-generic

Release history Release notifications | RSS feed

This release

0.3.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

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