GithubHelp home page GithubHelp logo

mrflip / worblehat Goto Github PK

View Code? Open in Web Editor NEW

This project forked from diffalot/archive

3.0 2.0 1.0 145 KB

This is a gem for storing files on The Internet Archive, http://Archive.org/ .

License: Other

Python 41.93% Ruby 58.07%

worblehat's Introduction

archive
===========

This is a gem for storing files on The Internet Archive, http://Archive.org/ .

COPYRIGHT
=========

Copyright (c) 2009 Papyromancer. See LICENSE for details.

Use cases

* create a payload
  - add files
  - specify payload metadata

* transfer payload from one place to another
  - check availability on destination
  - create repository on destination
  - transfer bundle (files and metadata files)
  - verify transfer succeeded

Classes

A Payload contains PayloadFiles and has associated freeform metadata describing
the Payload as a whole.

A PayloadFile describes a single file within a payload, along with its freeform
metadata.

A repository contains many payloads. It can be a RemoteRepository or a Local
Repository

A PayloadInstance is a realization of a payload -- perhaps a directory on disk,
or its instance on archive.org

An ArchiveOrgFormatPayloadInstance is in archive.org format; it can be local or
remote.

* Payload -- specifies [PayloadItem]s to include and the associated metadata
* PayloadItem -- a file within a payload

* GenericPayloadInstance
  - add items
  - list items
  - metadata_store
  - load
  - save

* PayloadInstance::GenericRemote
  - local_payload_instance
  - fetch_from_remote
  - send_to_remote

* PayloadInstance::GenericLocalDir --
  - root_path 		-- directory containing payload
  - metadata_file_path   -- 
  - listing_file_path    -- file on disk
  - contents_file_paths	-- paths to the actual PayloadFiles on disk
  
* ArchiveOrg::RemotePayloadInstance -- the instantiation of a given payload on the
  archive.org servers.

* ArchiveOrg::LocalDirPayloadInstance --
  - metadata_store      -- archive.org _meta.xml file on disk
  - listing_store       -- archive.org _files.xml file on disk
  - files 		-- the actual PayloadFiles on disk

* ArchiveOrg::PayloadMetadataXml
  - Archive.org format XML stream for metadata
* ArchiveOrg::PayloadListingXml
  - Archive.org format XML stream for file listing

* TmpDirPayloadInstance 
  Specifically locates payload instance in the tmp dir

* PayloadTransferStrategy
  Figures out how to transfer data from one payload instance to another

worblehat's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

joegermuska

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.