All Projects → gkbrk → Rust Ipfs Api

gkbrk / Rust Ipfs Api

Licence: mit
Rust crate for interfacing with the IPFS API

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to Rust Ipfs Api

Orion
[Moved to Gitlab] Easy to Use, Inter Planetary File System (IPFS) desktop client
Stars: ✭ 115 (+9.52%)
Mutual labels:  p2p, ipfs, client
Js Dag Service
Library for storing and replicating hash-linked data over the IPFS network.
Stars: ✭ 81 (-22.86%)
Mutual labels:  p2p, ipfs
Uploadcare Php
PHP API client that handles uploads and further operations with files by wrapping Uploadcare Upload and REST APIs.
Stars: ✭ 77 (-26.67%)
Mutual labels:  api, client
Flickr Sdk
Almost certainly the best Flickr API client in the world for node and the browser
Stars: ✭ 104 (-0.95%)
Mutual labels:  api, client
Igdb
Go client for the Internet Game Database API
Stars: ✭ 65 (-38.1%)
Mutual labels:  api, client
Dimscord
A Discord Bot & REST Library for Nim.
Stars: ✭ 67 (-36.19%)
Mutual labels:  api, client
Ipfs Companion
Browser extension that simplifies access to IPFS resources on the web
Stars: ✭ 1,247 (+1087.62%)
Mutual labels:  p2p, ipfs
Dsc Mercado Livre
Biblioteca de integração com o Mercado Livre
Stars: ✭ 55 (-47.62%)
Mutual labels:  api, client
Python Nomad
Client library Hashicorp Nomad
Stars: ✭ 90 (-14.29%)
Mutual labels:  api, client
Telebot.nim
Async client for Telegram Bot API in pure Nim [Bot API 5.1]
Stars: ✭ 93 (-11.43%)
Mutual labels:  api, client
Python Binance Chain
Binance Chain Exchange API python implementation for automated trading
Stars: ✭ 96 (-8.57%)
Mutual labels:  api, client
Fredr
An R client for the Federal Reserve Economic Data (FRED) API
Stars: ✭ 61 (-41.9%)
Mutual labels:  api, client
Ipfsfb
InterPlanetary File System for Business (IPFSfB) is an enterprise blockchain storage network based on InterPlanetary File System.
Stars: ✭ 57 (-45.71%)
Mutual labels:  p2p, ipfs
Cups Ipp
CUPS Implementation of IPP - PHP Client API
Stars: ✭ 70 (-33.33%)
Mutual labels:  api, client
Adrestia
APIs & SDK for interacting with Cardano.
Stars: ✭ 56 (-46.67%)
Mutual labels:  api, client
Zhihu Oauth
尝试解析出知乎官方未开放的 OAuth2 接口,并提供优雅的使用方式,作为 zhihu-py3 项目的替代者,目前还在实验阶段
Stars: ✭ 1,237 (+1078.1%)
Mutual labels:  api, client
Swiftagram
A modern Swift wrapper for Instagram Private API.
Stars: ✭ 100 (-4.76%)
Mutual labels:  api, client
Y Ipfs Connector
Y.js connector over IPFS
Stars: ✭ 49 (-53.33%)
Mutual labels:  p2p, ipfs
Sechub
SecHub - one central and easy way to use different security tools with one API/Client
Stars: ✭ 52 (-50.48%)
Mutual labels:  api, client
Node Epicgames Client
Unofficial EpicGames Launcher in javascript.
Stars: ✭ 84 (-20%)
Mutual labels:  api, client

Rust IPFS API Client

Crates.io Docs.rs

A client library for the IPFS API.

This library allows you to use the local IPFS daemon from Rust.

Usage

[dependencies]
ipfsapi = "0.2"

Examples

Reading a file from IPFS

Here's an example that gets the contents of a file from IPFS and displays it.

let api = IpfsApi::new("127.0.0.1", 5001);

let bytes = api.cat("QmWATWQ7fVPP2EFGu71UkfnqhYXDYH566qy47CnJDgvs8u").unwrap();
let data = String::from_utf8(bytes.collect()).unwrap();

println!("{}", data);

The code gets the content of the IPFS hash and displays "Hello World".

Subsribing to messages on IPFS Pubsub

let api = IpfsApi::new("127.0.0.1", 5001);

let messages = api.pubsub_subscribe("chat").unwrap();

for message in messages {
    println!("{:?}", message);
}

Implemented Functionality

  • Getting file contents from IPFS (cat)
  • Pubsub
  • IPNS publish and resolve
  • Object/Hash stats (size, etc.)
  • Version information of the daemon
  • Pinning and unpinning files
  • Shut down IPFS daemon
  • Get and put blocks
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].