MCPcopy Index your code
hub / github.com/Blutsh/Swish

github.com/Blutsh/Swish @1.0.2

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0.2 ↗ · + Follow
47 symbols 70 edges 10 files 1 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Swish :rocket:

A Command Line Tool for Infomaniak's SwissTransfer Service. :cloud:

This project is not affiliated with Infomaniak and is not an official tool. :warning:

Installation

All the binaries are available in the releases section. :inbox_tray:

Download the binary for your platform and add it to your PATH. :arrow_down:

Usage

Usage: swish [OPTIONS] <FILE>

Arguments:
  <FILE>  could be a file or a folder or a link

Options:
  -p, --password <password>    Sets the password for the file(s) downloaded / uploaded
  -m, --message <Hello World>  Define the message for the file(s) uploaded
  -n, --number-download <250>  Define the max number of downloads for the file(s) uploaded
  -d, --duration <30>          Define the number of days the file(s) will be available for download
  -o, --output <output>        Define an output directory for the downloaded files
  -v, --verbose                Enable verbose mode
  -h, --help                   Print help
  -V, --version                Print version

Examples

Upload a file :rocket::

 swish /tmo/super-file.pdf

Upload a file with a password :closed_lock_with_key:

swish -p mypassword /tmo/super-file.pdf

Download a file :arrow_down::

swish https://www.swisstransfer.com/d/188be047-5b8c-48bf-9c4a-e70076c0e53c

Download a file with a password :closed_lock_with_key::

swish -p mypassword https://www.swisstransfer.com/d/188be047-5b8c-48bf-9c4a-e70076c0e53c

This tool does not provide any encryption feature. :warning:

I strongly recommend you to encrypt your file before uploading it to any cloud service :lock:

Known Issues

File Upload Limit

When uploading many times the same file, it seems that infomaniaks servers flags you as suspicous traffic and you won't be able to upload for a while. It seems to be linked to your IP address, no extensive testing has been done. Use the debug mode to see the error message. :warning:

Contributing

If a developer who truly has the skills and doesn't face the same skill issues as me wants to contribute to this project, feel free to do so. PRs and stuff. :handshake:

License

This project is licensed under the GPL-3.0 License - see the LICENSE file for details. :page_facing_up:

Contact

You can contact me at compote.interroge.0i@icloud.com :email:

Donate

I drank some during the project, it would be nice if you could   Buy Me a Coffee at ko-fi.com

Core symbols most depended-on inside this repo

post
called by 3
src/api/mod.rs
download
called by 2
src/swissfiles/mod.rs
upload
called by 2
src/swissfiles/mod.rs
new_easy2_data
called by 2
src/api/mod.rs
get
called by 2
src/api/mod.rs
hash_file
called by 2
tests/integrations.rs
is_swisstransfer_link
called by 1
src/main.rs
path_exists
called by 1
src/main.rs

Shape

Function 18
Method 18
Class 9
Enum 2

Languages

Rust100%

Modules by API surface

src/main.rs10 symbols
src/swissfiles/swissfile/mod.rs9 symbols
src/swissfiles/mod.rs9 symbols
src/api/handlers/mod.rs5 symbols
src/api/mod.rs4 symbols
src/errors.rs3 symbols
src/api/chunks/mod.rs3 symbols
tests/integrations.rs2 symbols
src/swissfiles/uploadparameters/mod.rs2 symbols

For agents

$ claude mcp add Swish \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact