Skip to main content

fshstorage

An API wrapper written in python for https://storage.fsh.plus/

Examples

Logging in and getting a list of files

from fshstorage import FshStorageWrapper, FshStorageFile

fsh = FshStorageWrapper("token")
print(fsh.list_files()) # Returns a dictionary of file_name: FshStoragePartailFile's

Downloading a file

file1 = api.download_file("name.png")
print(file1) # Returns a FshStorageFile

# ------

list_of_files = api.files()

file2 = list_of_files["name.png"]
print(list_of_files["name.png"]) # Returns a FshStoragePartialFile

file2 = file2.download()
print(file2) # Returns a FshFile

Sharing a file

file1.share() # Returns a https://link.fsh.plus/... (FshShortenedLink object)
api.share_file("name.png") # Returns a https://link.fsh.plus/... (FshShortenedLink object)

Saving a file

file1.save() # Defaults to the name attribute in file1 (will download to your current working directory)
file2.save("name.png") # Saves the file to the specified path/name 

Uploading a file

fsh.upload_file("meow.png", "meow.png") # Works with str and Path objects

# -----

with open("image.png", "rb") as fp:
  fsh.upload_file("image.png", fp)

Deleting a file

api.delete_file("name.png")

Renaming a file

api.rename_file("name.png", "waaaaaa.png")

Metadata

Release files for fshstorage 1.0.3

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

Source distribution (sdist)

Source distribution for fshstorage 1.0.3
File Size Uploaded Provenance
fshstorage-1.0.3.tar.gz 4.5 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 9.4 kB

Release files / fshstorage-1.0.3.tar.gz

Download URL fshstorage-1.0.3.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
04277400f0bdec094220856708a6698cef2d4cc8281cb5f928749ec0e11066ef
BLAKE2b-256 checksum
How to use checksums
9ad12c3085ea12b49c2877af0bbf85eab25eb95ac60216591457fbef3b466319
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / fshstorage-1.0.3-py3-none-any.whl

Download URL fshstorage-1.0.3-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9a3f8e56eb1c4b7d1240ded0c56faa8dd2630b2ae2305ff139f672369764ece4
BLAKE2b-256 checksum
How to use checksums
756240fe21c311b23dcb326293a5f7fc994c1a00077f9f268d6942ff17364c8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for fshstorage 1.0.3

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