Python 3 CLI File Uploader for Diced/Zipline v3/v4 Upload Server and Django Files.
Project description
Zipline CLI
Python 3 CLI File Uploader for Diced/Zipline v3/v4 Upload Server and Django Files.
- Zipline: https://zipline.diced.tech/
- 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.
Quick Start
python -m pip install zipline-cli
zipline --setup
Documentation: https://zipline-cli.cssnr.com/
Install
From PyPI: https://pypi.org/p/zipline-cli
python -m pip install zipline-cli
From GitHub using pip.
python -m pip install git+https://github.com/cssnr/zipline-cli.git
From Source using pip.
git clone https://github.com/cssnr/zipline-cli.git
python -m pip install zipline-cli
Uninstall.
python -m pip uninstall zipline-cli
Usage
[!TIP]
View the Getting Started guide online.
Setup Zipline URL and Token:
zipline --setup
Upload a File:
zipline test.txt
Upload Multiple Files:
zipline file1.txt file2.txt
Create Text File from Input
cat test.txt | zipline
Create Text File from Clipboard
zipline
# Paste or Type contents, followed by a newline, then Ctrl+D (Ctrl+Z on Windows)
Environment Variables
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_EMBED |
Set this enable Embed on your uploads |
ZIPLINE_FORMAT |
Output Format. Variables: {filename}, {url} and {raw_url} |
ZIPLINE_EXPIRE |
Reference: Zipline / Django Files |
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 -h
API Reference
Initialize 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)
Support
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
Contributing
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/
Project details
Release history Release notifications | RSS feed
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 zipline_cli-0.2.1.tar.gz.
File metadata
- Download URL: zipline_cli-0.2.1.tar.gz
- Upload date:
- Size: 12.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a773833beb8abf144cd83eb8d0b323b545a4f712de5d2f95d3b7e1f1722c3add
|
|
| MD5 |
3c584351da46f462bf5a957844ac4233
|
|
| BLAKE2b-256 |
bb4ce82cf597e6aac6dfd2aa4ffe5dd92126feca4785321d2a6c909c83cb088f
|
Provenance
The following attestation bundles were made for zipline_cli-0.2.1.tar.gz:
Publisher:
release.yaml on cssnr/zipline-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zipline_cli-0.2.1.tar.gz -
Subject digest:
a773833beb8abf144cd83eb8d0b323b545a4f712de5d2f95d3b7e1f1722c3add - Sigstore transparency entry: 731245316
- Sigstore integration time:
-
Permalink:
cssnr/zipline-cli@80471ded08fa73e728907a06dfe4cd422077b34a -
Branch / Tag:
refs/tags/0.2.1 - Owner: https://github.com/cssnr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@80471ded08fa73e728907a06dfe4cd422077b34a -
Trigger Event:
release
-
Statement type:
File details
Details for the file zipline_cli-0.2.1-py3-none-any.whl.
File metadata
- Download URL: zipline_cli-0.2.1-py3-none-any.whl
- Upload date:
- Size: 9.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66e9f9ed114c06771cb87195f6a62890e1c563610a6a4b3782b6465d57ea77c1
|
|
| MD5 |
e31454203bb67219f68a5309a401f2f0
|
|
| BLAKE2b-256 |
6538b5c4944c0368fa6617d42f418ea6b47b90d859131dca967727855b00f73a
|
Provenance
The following attestation bundles were made for zipline_cli-0.2.1-py3-none-any.whl:
Publisher:
release.yaml on cssnr/zipline-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
zipline_cli-0.2.1-py3-none-any.whl -
Subject digest:
66e9f9ed114c06771cb87195f6a62890e1c563610a6a4b3782b6465d57ea77c1 - Sigstore transparency entry: 731245317
- Sigstore integration time:
-
Permalink:
cssnr/zipline-cli@80471ded08fa73e728907a06dfe4cd422077b34a -
Branch / Tag:
refs/tags/0.2.1 - Owner: https://github.com/cssnr
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@80471ded08fa73e728907a06dfe4cd422077b34a -
Trigger Event:
release
-
Statement type: