Skip to content

Commit

Permalink
Create pipfs_hub.py
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH authored May 11, 2024
1 parent 9998a44 commit 7cb06c2
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hub/pipfs_hub.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# hub/pipfs_hub.py
import logging
from neo4j import GraphDatabase

class PipfsHub:
def __init__(self, db_uri):
self.db = GraphDatabase(db_uri)

def get_pipfs(self):
try:
# ...
except Exception as e:
logging.error(f"Error fetching pipfs: {e}")
return {"error": str(e)}

0 comments on commit 7cb06c2

Please sign in to comment.