User Guide: DeSci Nodes v1.0 [Capybara]
  • Welcome to DeSci Nodes
  • General user overview
    • Explore
    • Node
      • [New] Node Home
    • Node Workspace
      • Navigation Bar
      • Viewer
      • Node Drive Panel
      • Node Contributors Panel
      • Information Panel
    • Profile
  • Create and Publish
    • Quick Start
    • Introduction
    • Sign Up & Login
    • Create a Node
      • Create Node
      • Add Components
        • Data
        • Manuscript
        • Code & Executables
        • External Links
        • Folder
      • Add Information
        • Add License
        • Add Metadata
        • Add Contributors
        • Add Comments
        • Claim Attestations
      • Organise, Access & Present
        • Return to most recent Node
        • Component Presentation
          • Pinning components
          • Renaming components
          • Moving components
        • Add Cover Art
      • Collaborate
      • Delete Before Publication
        • Delete Unpublished Components
        • [TBD] Delete Unpublished Nodes
    • Publish
      • Update Your Node
        • Editing a published Node
        • Publish a new version of your Research Node
        • Delete Components After Publication
        • Delete Published Node - Cannot
    • Submit for Curation
    • Share
      • Cite
      • Share Link
      • Persistent Identifier (dPID)
      • Content Identifier (CID)
      • Social Media
    • Interact & Reuse
      • Browse
      • Download
      • Support
        • [TBD] Comment
        • [TBD] Attest
      • Compute
        • [TBD] Node IDE
        • [TBD] Compute to data
        • [TBD] Data to compute
      • Communities
        • [TBD] Apply for Comms Curation
        • [TBD] Apply for Comms Attestations
        • [TBD] Become a Comms Member
  • Validate and Curate
    • Community Curation
    • Community Home
    • Validate and Curate
  • Find Help
    • FAQ
      • Fundamentals
      • Using Nodes
      • Nodes and Journals
      • FAIR
      • Benefits of using Nodes
      • Your identity
      • Metrics, citations and PIDs
      • Governance
    • Community Support
    • Feedback & Contact
  • TECHNICAL BACKGROUND
    • Persistent Identifiers 101
    • FAIR Data
      • All About FAIR
        • The FAIR Principles
        • GoFAIR Criteria
        • Red and Blue Principles
        • FAIR Digital Object Framework (FDOF)
        • The FAIR Hourglass
        • The Internet of FAIR Data and Services (IFDS)
      • FAIR Compliance
        • DeSci Nodes FIP
        • Standardized Assessments
        • FAIR Metadata Publishing
    • Open State Repository
      • PID
      • Data
      • Metadata
      • Methods
    • Roadmap
Powered by GitBook
On this page
  1. Create and Publish
  2. Interact & Reuse
  3. Compute

[TBD] Data to compute

Import code and data locally into your IDE

Previous[TBD] Compute to dataNextCommunities

Last updated 1 year ago

Data to Compute is currently disabled.

Compute is in testing phase with trusted users.

Basic dPid Fetch usage (WIP)

You can find the dPid Fetch repository here

Quick start guide

  1. Clone the dpid fetch repository

  2. Open up the file 'example-run.py', take note of the dpid being passed in, and the mapping of files to variables (WIP - EXAMPLE BEING UPDATED FOR LATEST RESOLVER).

  3. Run the example in your IDE using 'python3 example-run.py'

Syntax Guide

import desci.fetch as dpid

with dpid.fetch([('hello.py', 'imported')], dpid="3/v1/1"):

import imported

print(str.upper(imported.hello()) + " world!")

Given the above example, the parameters passed in are as such;

dpid.fetch([('hello.py', 'imported')], dpid="3/v1/1")

The first parameter is an array of tuples that accepts a valid string path to a python file within the imported code repository, and a variable name that the imported code should be assigned to, e.g. in this instance, 'hello.py' will be assigned to variable 'imported'.

dpid.fetch([('hello.py', 'imported')], dpid="3/v1/1")

The second parameter is a string that accepts a dpid query that points to a code file, as a reminder the syntax for dPIDs is as follows; {dpid}/{version}/{component Index}

dpid: The identifier assigned for a published node.

version: A number that's zero indexed, or a version with a 'v' prefix. e.g. for the first version specify "0" or "v1", for the second version specify "1" or "v2"

component index: The index number of the component as specified in the manifest file, which you could access by appending ?raw to the dpid link as such: "https://beta.dpid.org/2/v1?raw"

https://github.com/desci-labs/desci-fetch
https://github.com/desci-labs/desci-fetch
Page cover image