Python 3 CLI File Uploader for Diced/Zipline v3/v4 Upload Server and Django Files.
- Zipline: https://zipline.diced.sh/
- Django Files: https://django-files.github.io/
Tip
If you have any trouble getting started, support is available.
You can also request new features
or report any issues.
Important
A new app is in progress which supports ShareX Configurations.
All new features will be added to this app.
Please let us know what you want to see...
python -m pip install zipline-cli
zipline --setupFrom PyPI: https://pypi.org/p/zipline-cli
python -m pip install zipline-cliFrom GitHub using pip.
python -m pip install git+https://github.com/cssnr/zipline-cli.gitFrom Source using pip.
git clone https://github.com/cssnr/zipline-cli.git
python -m pip install zipline-cliUninstall.
python -m pip uninstall zipline-cliTip
View the Getting Started guide online.
Setup Zipline URL and Token:
zipline --setupUpload a File:
zipline test.txtUpload Multiple Files:
zipline file1.txt file2.txtCreate Text File from Input
cat test.txt | ziplineCreate Text File from Clipboard
zipline
# Paste or Type contents, followed by a newline, then Ctrl+D (Ctrl+Z on Windows)Environment Variables are stored in the .zipline file in your home directory.
- Location:
~/.ziplineor$HOME/.zipline
| Variable | Description |
|---|---|
ZIPLINE_URL |
URL to your Zipline Instance |
ZIPLINE_TOKEN |
Authorization Token from Zipline |
ZIPLINE_FORMAT |
Output Format. Variables: {filename}, {url} and {raw_url} |
See .zipline.example for an example .zipline file.
You may override them by exporting the variables in your current environment or using the corresponding command line arguments.
zipline -hInitialize the class with your Zipline URL. Everything else is a header passed as a kwarg. The API does not yet support environment variables.
Zipline Token/Authorization is a header kwarg and can be passed as follows:
from zipline import Zipline
zipline = Zipline('ZIPLINE_URL', authorization='ZIPLINE_TOKEN')Upload a File
from zipline import Zipline
zipline = Zipline('ZIPLINE_URL', authorization='ZIPLINE_TOKEN')
with open('text.txt') as f:
url = zipline.send_file('test.txt', f)
print(url)For general help or to request a feature, see:
- Q&A Discussion: https://github.com/cssnr/zipline-cli/discussions/categories/q-a
- Request a Feature: https://github.com/cssnr/zipline-cli/discussions/categories/feature-requests
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
If you are experiencing an issue/bug or getting unexpected results, you can:
- Report an Issue: https://github.com/cssnr/zipline-cli/issues
- Provide General Feedback: https://cssnr.github.io/feedback/
- Chat with us on Discord: https://discord.gg/wXy6m2X8wY
All contributions are welcome including bug reports, feature requests, or pull requests (please start a discussion).
See the CONTRIBUTING.md for more details.
More Zipline Projects:
- Zipline CLI - Source Code
- Zipline Web Extension - Source Code
- Zipline Android Application - Source Code
Please consider making a donation to support the development of this project and additional open source projects.
For a full list of current projects visit: https://cssnr.github.io/