Skip to main content

Python 3 CLI File Uploader for Diced/Zipline v3/v4 Upload Server and Django Files.

Project description

PyPI Version GitHub Release Version TOML Python Version PyPI Downloads Pepy Total Downloads Codacy Badge Quality Gate Status Workflow Test Workflow Lint Workflow Release Deployment PyPi Deployment Docs GitHub Last Commit GitHub Repo Size GitHub Top Language GitHub Contributors GitHub Discussions GitHub Forks GitHub Repo Stars GitHub Org Stars Discord Ko-fi

Zipline CLI

Zipline CLI

Python 3 CLI File Uploader for Diced/Zipline v3/v4 Upload Server and Django Files.

[!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...

Quick Start

python -m pip install zipline-cli
zipline --setup

View Documentation

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: ~/.zipline or $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 -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:

If you are experiencing an issue/bug or getting unexpected results, you can:

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:

Please consider making a donation to support the development of this project and additional open source projects.

Ko-fi

For a full list of current projects visit: https://cssnr.github.io/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zipline_cli-0.3.0.tar.gz (14.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zipline_cli-0.3.0-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

File details

Details for the file zipline_cli-0.3.0.tar.gz.

File metadata

  • Download URL: zipline_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zipline_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 4a659f2bf8e5810453268c79f127eb65b754a08857a65bff0c270aceefc72f3a
MD5 196cff75d98075a43f4c9caf8fd35643
BLAKE2b-256 22d85e57ff8298fc0511e1b8d68beab2b593f9deb0a45acd37be829a979be1ab

See more details on using hashes here.

Provenance

The following attestation bundles were made for zipline_cli-0.3.0.tar.gz:

Publisher: release.yaml on cssnr/zipline-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file zipline_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: zipline_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for zipline_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a870f89e617a7675b987a577fbdb0932daf64bfae665968d051c74dad90aba16
MD5 ba8285191ff21a79e3c58d796cdb61fd
BLAKE2b-256 fdcba309c78220b6c29cb974e0c0a1f9dacd2c7ce7b3c066c9f2216d47b90f12

See more details on using hashes here.

Provenance

The following attestation bundles were made for zipline_cli-0.3.0-py3-none-any.whl:

Publisher: release.yaml on cssnr/zipline-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page