All Projects → bbmoron → rust-ipfs-api

bbmoron / rust-ipfs-api

Licence: MIT license
Rust language IPFS API implementation

Programming Languages

rust
11053 projects

Projects that are alternatives of or similar to rust-ipfs-api

digitalocean
A prototype API for Digital Ocean.
Stars: ✭ 35 (+75%)
Mutual labels:  api-wrapper, rust-library
ehr-blockchain
Electronic Health Record (EHR) and Electronic Medical Record (EMR) systems. However, they still face some issues regarding the security of medical records, user ownership of data, data integrity etc. The solution to these issues could be the use of a novel technology, i.e., Blockchain. This technology offers to provide a secure, temper-proof pl…
Stars: ✭ 41 (+105%)
Mutual labels:  ipfs, ipfs-api
IPFS-Ethereum-Image
【IPFS + 区块链 系列】 入门篇 - IPFS + Ethereum (下篇)-ipfs + Ethereum 大图片存储
Stars: ✭ 57 (+185%)
Mutual labels:  ipfs, ipfs-api
py-vkontakte
A Python wrapper around the vk.com
Stars: ✭ 17 (-15%)
Mutual labels:  api-wrapper
bitflyer
⚡ bitFlyer API wrapper for Ruby
Stars: ✭ 25 (+25%)
Mutual labels:  api-wrapper
gtmetrix-net
GTmetrix .Net client
Stars: ✭ 16 (-20%)
Mutual labels:  api-wrapper
rabe
rabe is an Attribute Based Encryption library, written in Rust
Stars: ✭ 52 (+160%)
Mutual labels:  rust-library
estuary-www
https://estuary.tech
Stars: ✭ 32 (+60%)
Mutual labels:  ipfs
scala-weather
High-performance Scala library for looking up the weather
Stars: ✭ 45 (+125%)
Mutual labels:  api-wrapper
pybuildkite
A Python library for the Buildkite API
Stars: ✭ 29 (+45%)
Mutual labels:  api-wrapper
jokeapi
Official golang wrapper for Sv443's jokeapi.
Stars: ✭ 19 (-5%)
Mutual labels:  api-wrapper
tatsumaki.js
A api wrapper for the Tatsumaki Discord Bot API
Stars: ✭ 9 (-55%)
Mutual labels:  api-wrapper
python-censusbatchgeocoder
A simple Python wrapper for U.S. Census Geocoding Services API batch service
Stars: ✭ 40 (+100%)
Mutual labels:  api-wrapper
edgevpn
⛵ The immutable, decentralized, statically built p2p VPN without any central server and automatic discovery! Create decentralized introspectable tunnels over p2p with shared tokens
Stars: ✭ 223 (+1015%)
Mutual labels:  ipfs
whitepaper
The Fission Technical Whitepaper
Stars: ✭ 15 (-25%)
Mutual labels:  ipfs
hackerone-client
An unofficial wrapper for the HackerOne API
Stars: ✭ 55 (+175%)
Mutual labels:  api-wrapper
actix-derive
[ARCHIVED] development moved into main actix repo
Stars: ✭ 38 (+90%)
Mutual labels:  rust-library
gilfoyle
Distributed video encoding, hosting and streaming (WIP)
Stars: ✭ 73 (+265%)
Mutual labels:  ipfs
acord
An API wrapper for discord, built using aiohttp and pydantic.
Stars: ✭ 25 (+25%)
Mutual labels:  api-wrapper
go-ovh
Simple go wrapper for the OVH API
Stars: ✭ 107 (+435%)
Mutual labels:  api-wrapper

rust-ipfs-api

A Rust client library for the IPFS HTTP API

Rust inspires thousands people to create and develop many services

Assuming this, IPFS is one of the most popular technologies to use to, but there is no easy way to use IPFS API in projects on rust. People have to run Go programs, or create cURL/reqwest/hyper wrappers in order to use IPFS cURL API. Having this repo as a dependency it is mush easier to start developing your apps on top of IPFS!


Let's say, you want to store files in IPFS and read them right from the net:
mod coder;
mod ipfs-api;

use ipfs-api::IPFS;
use coder::Coder;

fn main() {
    let mut ipfs = IPFS::new();
    ipfs.host("http://localhost", 5001);

    let ipfs_response = ipfs.add("./it_works.txt");
    let parsed_response = Coder::to_json2(&ipfs_response);
    let hashsumm = &parsed_response["Hash"].to_string();
    assert_eq!("QmaGXbCcuNazWyCmdiHsN9bdZ1GEx1GArUvbmyzkHmotDH", &hashsumm); // TRUE

    let ipfs_response = ipfs.cat(hashsumm);
    let parsed_response = Coder::decode_to_str(ipfs_response);
    assert_eq!("hello, it really works!\n", parsed_response); // TRUE
}

Easy, huh? That's the most common way to use API :) Try it out and don't forget to help the project!

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].