Skip to main content

IPFS RPC Client

Project description

ipfsclient

IPFS RPC Client

Installation

pip install ipfsclient

Documentation

https://ipfsclient.readthedocs.io/

Build docs locally

mkdocs serve

Tests

To only run tests: pytest
To run all checks: nox

Before running tests:

Regenerate pb2.py files

cd protobuf;
protoc --python_out=../proto --proto_path=protobuf protobuf/sample.proto

Ipfs setup

https://docs.ipfs.tech/install/

Run the ipfs daemon

ipfs daemon --api /ip4/0.0.0.0/tcp/5001

Check the status of your node at:

IPFS troubleshooting

Set the log level, send the logs to a file, and search the file for relevant messages

export IPFS_LOGGING=<debug|info|error>
ipfs daemon --debug 2>&1 | tee ipfs.log
cat ipfs.log | grep test_directory

If you find something important, you can show the first few lines around that message

grep -C 10 '2023-04-13T17:31:49.712-0400' ipfs.log

Here is an example of an error message in these logs:

2023-04-13T17:31:49.712-0400	DEBUG	cmds/http	http/handler.go:90	incoming API request: /files/mkdir?arg=test_directory
2023-04-13T17:31:49.712-0400	DEBUG	cmds	go-ipfs-cmds@v0.8.2/command.go:161	error occured in call, closing with error: paths must start with a leading slash

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

ipfsclient-0.1.1.tar.gz (5.5 kB view details)

Uploaded Source

Built Distribution

ipfsclient-0.1.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file ipfsclient-0.1.1.tar.gz.

File metadata

  • Download URL: ipfsclient-0.1.1.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ipfsclient-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d49729f2438572b8d422cfbd3b7391e9887d01ade516cd5bbbbcbb19e8f52311
MD5 a7f1e3a5c5aa3ae368f53a185cba89cc
BLAKE2b-256 21487f2c19af3dc95fde12276cd7a0cdaa469e214c381b174353dace1d92a94e

See more details on using hashes here.

File details

Details for the file ipfsclient-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: ipfsclient-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for ipfsclient-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f1c42ecc1400f305ac7fd69eca2eddf47eade0e871505728f9e42bb652a7982f
MD5 14bfa0b0bc6857268b66aff502876d48
BLAKE2b-256 5c9c96b3ddcc74daf9f2e352993409f6daa070ac0052f2c995ea0d2aeb166483

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page