Giter VIP home page Giter VIP logo

elixir-ipfs-api's People

Contributors

jdjkelly avatar zabirauf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

elixir-ipfs-api's Issues

Are you thinking about keeping this project?

Hello!

I've been working a lot with the IPFS API lately in some side projects and I've been using this library quite often.

As the title says, I want to know if you are thinking about keeping this project and/or if I can jump in to help keeping it updated.

I've some suggestions like "transactions" (I believe this is/was a planned feature) and also adding a function to the library (which I keep adding to the projects I'm using IPFS), to parse the binary data that often comes in commands such as /api/v0/object/get.

Let me know your ideas!

Add test for core scenarios

  • Add to IPFS
  • Get from IPFS
  • Add folder recursively to IPFS
  • List files in IPFS directory
  • Get stats about the file

When multiple endpoints are supported

  • Connect to multiple endpoints of IPFS and get content from them

Add a function to parse binary data

In some commands such as /api/v0/object/get there is a field called Data that contains the binary data of an object. I think it could be useful to add a function to parse it like:

def parse_body_data(data, fun \\ & &1) when is_binary(data) do
  if String.printable?(data) do
    data
  else
    data
    |> String.split("")
    |> Stream.filter(&filter_body_data(&1))
    |> Stream.filter(&fun.(&1))
    |> Enum.join()
end

defp filter_body_data(""), do: false
defp filter_body_data(s), do: String.printable?(s)

The fun argument is to allow filtering specific characters, for example the \b. This function will only return printable characters to allow printing the string, otherwise it would be returned in the <<>> binary format anyway.

mix deps.get fails

Hello! I wanted to build something with IPFS and your library, but it seems like there is something wrong with dependencies.

Added {:elixir_ipfs_api, "~> 0.1.0"} to mix.exs file

Running command mix deps.get fails with that output:

Resolving Hex dependencies...
Dependency resolution completed:
New:
  certifi 1.0.0
  elixir_ipfs_api 0.1.0
  ex_doc 0.10.0
  hackney 1.6.6 RETIRED!
    (invalid)
  httpoison 0.8.3
  idna 4.0.0
  metrics 1.0.1
  mimerl 1.0.2
  poison 1.5.2
  ssl_verify_fun 1.1.1
* Getting elixir_ipfs_api (Hex package)
* Getting ex_doc (Hex package)
* Getting httpoison (Hex package)
* Getting poison (Hex package)
* Getting hackney (Hex package)
* Getting certifi (Hex package)
* Getting idna (Hex package)
* Getting metrics (Hex package)
* Getting mimerl (Hex package)
* Getting ssl_verify_fun (Hex package)
dependency :ssl_verify_fun is using Rebar 2, which is no longer maintained and no longer works in recent Erlang/OTP versions. Remove the :manager option or set it to :rebar3 instead

elixir version

iex --version
Erlang/OTP 23 [erts-11.1.8] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1]

IEx 1.13.4 (compiled with Erlang/OTP 22)

I'm new to elixir, so all of it doesn't make sense yet. What can be done to make it work?

Update README

  • Include information of starting IPFS before using int
  • Include the link to package
  • Include the link to documentation
  • Include license information
  • Update TODO

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.