Skip to content

Simple web server that accepts a specifically-formatted payload and outputs Coldfront-compatible import files.

Notifications You must be signed in to change notification settings

uoracs/cfingestor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

cfingestor

Simple web server that accepts a specifically-formatted payload and syncs those associations with Coldfront.

To run it, activate the coldfront virtual environment, then run the server like this:

coldfront shell < /path/to/main.py

Yes this is super ugly but it's just a stop-gap until we can convert to coldfront full-time.

The input data should look like this:

{
  "users": [
    {
        "username":  "username1",
        "firstname":  "userfirstname",
        "lastname":  "userlastname"
    },
    {
        "username":  "user2",
        "firstname":  "user2firstname",
        "lastname":  "user2lastname"
    }
  ],
  "projects": [
    {
      "project": "project1",
      "owner": "username1",
      "admins": [
        "username1"
      ],
      "users": [
        "username1",
      ]
    },
    {
      "project":  "project2",
      "owner":  "user2",
      "admins":  [
        "user2"
      ],
      "users":  [
        "user2",
        "username1"
      ]
    },
  ]
}

About

Simple web server that accepts a specifically-formatted payload and outputs Coldfront-compatible import files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages