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, FshStorageFile

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 

Uploading a file

fsh.upload_file("meow.png", "meow.png")

# -----

with open("image.png", "rb") as fp:
  fsh.upload_file("image.png", FshStorageFile(fp, "image.png"))

Deleting a file

api.delete_file("name.png")

Renaming a file

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

Metadata

Release files for fshstorage 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fshstorage 1.0.2
File Size Uploaded Provenance
fshstorage-1.0.2.tar.gz 4.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for fshstorage 1.0.2
File Interpreter ABI Platform
fshstorage-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 8.9 kB

Release files / fshstorage-1.0.2.tar.gz

Download URL fshstorage-1.0.2.tar.gz
Size 4.3 kB
Tags Source
SHA-256 checksum
How to use checksums
ef3dd089f42d7907bdc51908ef2a2e50b588e46a7f90c21f615a9a410297e4c4
BLAKE2b-256 checksum
How to use checksums
ae94d157be9bc856bc4377d6cce07701c106a6e22875876260e26b4e73104a46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / fshstorage-1.0.2-py3-none-any.whl

Download URL fshstorage-1.0.2-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0d298fc45d1237d3edc5465ac1adf0b57c081cc840c4ffde26193d11a9a3871d
BLAKE2b-256 checksum
How to use checksums
763d88d9eb49e0f9f5cff1ab306c81eaaee534e4e8eebe5a1e16ada670c21a89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Security for fshstorage 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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