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}]

Metadata

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 Provenance Actions
pysaltcorn-0.3.1.tar.gz 6.7 kB Without provenance Details for pysaltcorn-0.3.1.tar.gz

Built distribution (wheel)

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

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

Security for pysaltcorn 0.3.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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