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.0.post1.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.0.post1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file fshstorage-1.0.0.post1.tar.gz.

File metadata

  • Download URL: fshstorage-1.0.0.post1.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.0.post1.tar.gz
Algorithm Hash digest
SHA256 a1dc658d4504ddc8a977d2bd8968ccf9718e62e6efcdbec4d100b535ed615e1f
MD5 3a98f67a6a8b6d8354e8bb4773e63f12
BLAKE2b-256 8c7ee4aff977c0e04b5158f9dd49ba015071f35fd373eb3e7b1b0121ea0864cc

See more details on using hashes here.

File details

Details for the file fshstorage-1.0.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for fshstorage-1.0.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 c22f3b4068faa41335f9153af7f6645302a9d4dd45a1486d67adcd27ac5990d2
MD5 49882b237ba0be75d9920df14cd7d52d
BLAKE2b-256 de2f4605f376342c603008d5daf2d182b1f9ddfbda8c2bd7769ca7e565a81347

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

This release

1.0.0.post1 This release

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