https://github.com/educationwarehouse/edwh-files-plugin
`edwh` plugin for files.edwh.nl
https://github.com/educationwarehouse/edwh-files-plugin
edwh file-sharing python transfersh
Last synced: about 2 months ago
JSON representation
`edwh` plugin for files.edwh.nl
- Host: GitHub
- URL: https://github.com/educationwarehouse/edwh-files-plugin
- Owner: educationwarehouse
- Created: 2023-06-19T08:29:45.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-03-07T10:38:33.000Z (7 months ago)
- Last Synced: 2025-07-06T22:41:27.424Z (3 months ago)
- Topics: edwh, file-sharing, python, transfersh
- Language: Python
- Homepage: https://pypi.org/project/edwh-files-plugin
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# edwh-files-plugin
[](https://pypi.org/project/edwh-files-plugin)
[](https://pypi.org/project/edwh-files-plugin)-----
**Table of Contents**
- [Installation](#installation)
- [Usage](#usage)
- [License](#license)## Installation
```console
pip install edwh-files-plugin
```But probably you want to install the whole edwh package:
```console
pipx install edwh[files]
# or
pipx install edwh[plugins,omgeving]
```## Usage
(Arguments between `< >` are required, arguments between `[ ]` are optional)
### Upload
```bash
edwh file.upload --server [str] --max-downloads [int] --max-days [int] --encrypt [str]
```- `path_to_file`: which file to upload
- `server` is `files.edwh.nl` by default, but can be any `transfer.sh` instance.
- `max-downloads`: how often can the file be downloaded?
- `max-days`: for how long can the file be downloaded?
- `encrypt`: secret to encrypt the file withThis command outputs the upload status code, file url and deletion url.
### Download
```bash
edwh file.upload --decrypt [str] --output-file [str]
```- `url`: file url from `file.upload`
- `decrypt`: if `--encrypt` is used in `file.upload`, the same secret can be used to decrypt the file.
- `output-file`: where to store the download### Delete
```bash
edwh file.upload
```- `url`: deletion url from `file.upload`
## License
`edwh-files-plugin` is distributed under the terms of the [MIT](https://spdx.org/licenses/MIT.html) license.