Skip to main content

A no-brainer pastebin on IPFS - think distributed sprunge.us

Project description

https://img.shields.io/travis/drozdziak1/merkleshare.svg https://img.shields.io/pypi/v/merkleshare.svg

A no-brainer pastebin on IPFS - think distributed http://sprunge.us

Why this if there’s ipfs add?

Good question! ipfs add currently doesn’t support showing a full link, let alone xclip-compatible output - the user has to select the hash, paste it in a browser and manually add the rest of their preferred IPFS link format.

Usage

A typical stdin pipe situation:

$ echo "Hello, world" | mersh -t gateway
https://ipfs.io/ipfs/QmaMLRsvmDRCezZe2iebcKWtEzKNjBaQfwcu7mcpdm8eY2

How about some file input?

$ echo "Hello, friends." > file.txt
$ mersh file.txt
/ipfs/QmZRyLRgWiXN2Zks6rjH5jPYQzbWj3BYTWERa9m7QQc3kW

Or maybe you only need the hash? No problem:

$ echo "Rollin' with the hash\!" | mersh -t hash
QmWjZ4dF4brEPqjtWx2EqZbeAmcpHiCVkhAxJyi51TPJzh

Features

  • Read from stdin or a specified file

  • Only the link gets printed to stdout, everything else is stderr - effortlessly pipe it to your favourite clipboard manager!

  • Output the link in the format you need:

    • Regular: /ipfs/<hash>

    • Gateway: https://ipfs.io/ipfs/<hash> - great for sharing links with non-IPFS friends

    • Local: http://localhost:8080/ipfs/<hash>

    • Bare: <hash>

Planned Features

  • (optional) static WebUI

  • Clipboard support

History

Pre-release

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

merkleshare-0.1.3.tar.gz (28.0 kB view details)

Uploaded Source

Built Distribution

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

merkleshare-0.1.3-py2.py3-none-any.whl (6.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file merkleshare-0.1.3.tar.gz.

File metadata

  • Download URL: merkleshare-0.1.3.tar.gz
  • Upload date:
  • Size: 28.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for merkleshare-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b2ba46a33d372d862ee3d8bbab9f90abbbfdfe2ed9d2bcb4e38be59dd3195054
MD5 327e2153616989fa71e0a9002d9e71f0
BLAKE2b-256 c99ffd5dbc975861b6e60466a5c9b7d6031addcdf780f7d01c39423d642e57fc

See more details on using hashes here.

File details

Details for the file merkleshare-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for merkleshare-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8a17bd4e9409bc87954266b1da8fb3d5aa26de6314653b657a640851f131381e
MD5 035a7bcce0dd92ec793e00bfb0b313c3
BLAKE2b-256 9cd52b968889d0e889fd471252217c1602c8cd9e5d1b538759e09e028d6d6a3d

See more details on using hashes here.

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