Skip to main content

fshstorage

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: fshstorage-1.0.0.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.tar.gz
Algorithm Hash digest
SHA256 9e16b47dbf89de99a179d28ae6a10d0b52653b8b08dd48a07b060a1fb755bee9
MD5 4ae0bb0dc355ed4662ad859dba27e818
BLAKE2b-256 e5787dde0d3457b0286760ab5030bc49ca300900a6378309d70df46d08b518d7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fshstorage-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2ecbdee39181672bdce038045eebafa23e58501396662f9e39962293435918af
MD5 352787394397c035f68beec64f96355c
BLAKE2b-256 ae9a84b308feaf0f07ee0ef233f4f8c21f0d6071c19bd203648d56243389cc31

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.1

2 files

1.0.0.post1

2 files

This release

1.0.0 This release

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