A small convenience command-line utility to upload files via HTTP to an elements instance
Project description
Elements HTTP Upload Uitility
A small convenience command-line utility to upload files via HTTP to an elements instance
The command-line utility provided by this package has been tested with an ELEMENTS installation of v25.1.2. It mimics the upload of the web interface when uploading a file via HTTP(S). The file is split into chunks and uploaded one by one.
Note that the authors of this package are not affiliated in any kind with syslink GmbH (the copyright holders of elements).
Installation
Install this package in a dedicated python environment via
python -m venv venv
source venv/bin/activate
pip install elements-http-upload
To use this in a development setup, clone the source code from gitlab, start the development server and make your changes::
git clone https://codebase.helmholtz.cloud/hcdc/elements/elements-http-upload
cd elements-http-upload
python -m venv venv
source venv/bin/activate
make dev-install
More detailed installation instructions my be found in the docs.
Command-line usage
To upload a file, run
elements-http-upload -t <api-token> -H https://<your-elements-installation> <local-file>:<remote-folder>/<remote-file>
An API token can be retrieved from the MAMS web interface by clicking your profile in the upper right corner and selecting the API tab. For further instructions, please have a look into the usage docs.
Technical note
This package has been generated from the template https://codebase.helmholtz.cloud/hcdc/software-templates/python-cli-package-template.git.
See the template repository for instructions on how to update the skeleton for this package.
License information
Copyright © 2025 Helmholtz-Zentrum hereon GmbH
Code files in this repository are licensed under the Apache-2.0, if not stated otherwise in the file.
Documentation files in this repository are licensed under CC-BY-4.0, if not stated otherwise in the file.
Supplementary and configuration files in this repository are licensed under CC0-1.0, if not stated otherwise in the file.
Please check the header of the individual files for more detailed information.
License management
License management is handled with reuse.
If you have any questions on this, please have a look into the
contributing guide or contact the maintainers of
elements-http-upload.
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 elements_http_upload-0.1.0.tar.gz.
File metadata
- Download URL: elements_http_upload-0.1.0.tar.gz
- Upload date:
- Size: 24.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7b3144dac09f88a6b347e3a28f816056cd38e424d9d016b898ab2bc8c8357725
|
|
| MD5 |
374658235e8f0dd5398a14f3303b964e
|
|
| BLAKE2b-256 |
e296db30031132cb59d272c4f1c4a19ba4d72784363986397f5660f3acebc6b9
|
File details
Details for the file elements_http_upload-0.1.0-py3-none-any.whl.
File metadata
- Download URL: elements_http_upload-0.1.0-py3-none-any.whl
- Upload date:
- Size: 24.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
908ab61879fccf7d72dbeed287ab471984b34aa29bd7ef3de8e460ea6f5c1cf8
|
|
| MD5 |
249bb11c4ad53fe2a09f806dca98ebb5
|
|
| BLAKE2b-256 |
11ee4d54a9e794cf614494cc9a5c3f937e48dd1a9afd0c0feb08620adf8e02a9
|