GithubHelp home page GithubHelp logo

mytardis-app-atom's Introduction

MyTardis Atom App

This app can be used to ingest datasets via Atom. Please see tests/atom_test for format examples.

New metadata is ingested first, with data files being copied asynchronously afterwards.

Installation

Symlink this app into a MyTardis tardis/apps directory. The preferred name for the app is atom.

Configuration

Celery is used to schedule periodic file ingestion.

The atom_ingest.walk_feeds task takes a variable number of feeds and updates them. Here's an example for settings.py that checks two Picassa feeds every 30 seconds:

CELERYBEAT_SCHEDULE = dict(CELERYBEAT_SCHEDULE.items() + {
  "update-feeds": {
    "task": "atom_ingest.walk_feeds",
    "schedule": timedelta(seconds=30),
    "args": ('http://example.org/feed.atom',
             'http://example.test/feed.atom')
  },
}.items())

You must run celerybeat and celeryd for the scheduled updates to be performed. MyTardis provides a Procfile for this purpose, but you can run both adhoc with:

bin/django celeryd --beat

HTTP Basic password protection is available via settings.py in MyTardis:

REMOTE_SERVER_CREDENTIALS = [
  ('http://localhost:4272/', 'username', 'password')
]

In a production environment, you should combine HTTP Basic password protection with SSL for security.

mytardis-app-atom's People

Contributors

crawley avatar steveandroulakis avatar tjdett avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

mytardis-app-atom's Issues

Follow 'next' page links

ATOM allows the following of 'next page' links to serve more entries. The nodejs-based atom-dataset-provider supports this, for example.

The harvester needs to know how to follow 'next' links to harvest as many updated entries as needed.

Celery Issues

Hey Tim,

Here's a screenie (for coloured syntax!) of the error I'm encountering trying to run django celery --beat. Looks like something isn't being wired up.

http://i.imgur.com/ZvLP7.png

(I think imgur hates OS X screenies.. renders large)

I'm running a fresh buildout install, all tests pass, preliminary clicking around of the site has worked, and the celery tables etc have been created fine.

Cheers,
Steve

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.