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

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 

Deleting a file

api.delete_file("name.png")

Renaming a file

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

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fshstorage-1.0.1.tar.gz (4.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fshstorage-1.0.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file fshstorage-1.0.1.tar.gz.

File metadata

  • Download URL: fshstorage-1.0.1.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for fshstorage-1.0.1.tar.gz
Algorithm Hash digest
SHA256 1a48880a107806e803f28eb1f33f91f36efae67e3d40e64b0edc7b277efb61cc
MD5 f7a1bf335040ee3af80130a7a6bbe945
BLAKE2b-256 32b1c3ed65007b30c7734109ae93a97040181cccbac2e7d4f00e0421434b5151

See more details on using hashes here.

File details

Details for the file fshstorage-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: fshstorage-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for fshstorage-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f2c1d7bc495f198dfe4f413635e14525e4d120d0095c76eac25467ca4c7a744c
MD5 02068b9c7fb2fcc929524e20776c49b1
BLAKE2b-256 4efd66ec7ce98053255faf945416adf71e129193e4ca58f8f550d037de8cad2b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 files

1.0.0.post1

2 files

1.0.0

2 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