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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1dc658d4504ddc8a977d2bd8968ccf9718e62e6efcdbec4d100b535ed615e1f
|
|
| MD5 |
3a98f67a6a8b6d8354e8bb4773e63f12
|
|
| BLAKE2b-256 |
8c7ee4aff977c0e04b5158f9dd49ba015071f35fd373eb3e7b1b0121ea0864cc
|
File details
Details for the file fshstorage-1.0.0.post1-py3-none-any.whl.
File metadata
- Download URL: fshstorage-1.0.0.post1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c22f3b4068faa41335f9153af7f6645302a9d4dd45a1486d67adcd27ac5990d2
|
|
| MD5 |
49882b237ba0be75d9920df14cd7d52d
|
|
| BLAKE2b-256 |
de2f4605f376342c603008d5daf2d182b1f9ddfbda8c2bd7769ca7e565a81347
|