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)
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.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a48880a107806e803f28eb1f33f91f36efae67e3d40e64b0edc7b277efb61cc
|
|
| MD5 |
f7a1bf335040ee3af80130a7a6bbe945
|
|
| BLAKE2b-256 |
32b1c3ed65007b30c7734109ae93a97040181cccbac2e7d4f00e0421434b5151
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2c1d7bc495f198dfe4f413635e14525e4d120d0095c76eac25467ca4c7a744c
|
|
| MD5 |
02068b9c7fb2fcc929524e20776c49b1
|
|
| BLAKE2b-256 |
4efd66ec7ce98053255faf945416adf71e129193e4ca58f8f550d037de8cad2b
|