Post
Share your knowledge.
Python Library for Building a Caching System
I am looking to build a caching system in Python for fetching daily data. Initially, I considered using Kubo, but after encountering discussions about it not being the same as IPFS and references to projects like https://github.com/ipfs/boxo, I am unsure. The concern about maintenance costs and bandwidth limitations with various libraries has me questioning if directly interacting with CLI and HTTP APIs is a better approach.
Ideally, I want an interface similar to interacting with a database, with a focus on simplicity. While exploring options, I came across a quote from the boxo project mentioning the transition from Kubo to IPFS tooling in different languages. However, I am specifically interested in a Python-specific solution. Can someone recommend a suitable Python library for implementing a caching system with potential for a pubsub interface?
- IPFS
- Kubo
Answers
1It is a valid question. In Python, there is no inherent limitation that prevents calling something over HTTP. There are reliable Python bindings available that can facilitate this process. Depending on your proficiency level, you could potentially migrate a significant portion of Boxo within a few days to a week or two. This integration enables the execution of the Go runtime within a Python interpreter, allowing for seamless interaction between Go and Python.
One notable drawback of Kubo is its current state of being in an "as-is" condition. While it may suffice if all required functionalities are accessible through the Kubo API, encountering a need for unavailable features or subpar performance could pose significant challenges. Although there exist some workarounds, the options are limited.
By leveraging Boxo, you gain the flexibility to customize and extend functionalities as needed. This includes implementing missing components or introducing necessary shims to enhance the overall capabilities.
Do you know the answer?
Please log in and share it.
The InterPlanetary File System (IPFS) is a protocol, hypermedia and file sharing peer-to-peer network for storing and sharing data in a distributed file system.