mirror of
https://github.com/NohamR/gofilepy.git
synced 2026-01-10 00:08:17 +00:00
Revise README with improved installation and usage instructions, add development section, and simplify Python usage example. Bump version to 1.1.2, add optional 'dev' dependencies (pylint) in pyproject.toml, and introduce a minimal test.py script for upload testing.
7 lines
274 B
Python
7 lines
274 B
Python
from gofilepy import GofileClient
|
|
|
|
client = GofileClient()
|
|
# client = GofileClient(token="YOUR_TOKEN_HERE") # Optional token for private uploads
|
|
file = client.upload(file=open("./test.py", "rb"))
|
|
print(file.name)
|
|
print(file.page_link) # View and download file at this link |