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://<elements-host> <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.
API usage
To use it from within python, see the following example and the usage docs for more
from elements_http_upload import upload
upload_info = {
"source": "<local-file>",
"target": "<remote-folder>/<remote-file>",
}
upload(
upload_info,
host="https://<elements-host>",
api_token="<api-token>",
)
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.
Metadata
Release files for elements-http-upload 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| elements_http_upload-0.2.0.tar.gz | 25.0 kB | Without provenance | Details for elements_http_upload-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| elements_http_upload-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for elements_http_upload-0.2.0-py3-none-any.whl |
Total release size: 50.0 kB
Release files / elements_http_upload-0.2.0.tar.gz
| Download URL | elements_http_upload-0.2.0.tar.gz |
|---|---|
| Size | 25.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
34abc579a332f4c9dca2a781a75a62cd32bf60eff351b65e5ac44ac0c095bde9
|
|
BLAKE2b-256 checksum How to use checksums |
21bc161bca58bae2f9da80e570cb4fb29a51622834ab70b5b675f15a980341a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / elements_http_upload-0.2.0-py3-none-any.whl
| Download URL | elements_http_upload-0.2.0-py3-none-any.whl |
|---|---|
| Size | 25.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a10cae24eecc70517e019d1eccbdd705ae10f04ec82302cd199e26a46c0a439a
|
|
BLAKE2b-256 checksum How to use checksums |
01ba9fa974955c7844813f2884db4d485e0d7fa354bcde1a4e25a1155b836adc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for elements-http-upload 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.