Internet Archive upload management tool
Project description
dartboard
generalized Internet Archive upload target
dartboard is available on PyPi as dartboard-ia!
Configuration
There are two ways you can provide dartboard with Internet Archive credentials to be able to upload:
- If you use the IA CLI (and you've run
ia configure) dartboard will automatically use those credentials - Otherwise, you can create a config json file (see below) and pass the location of it with
--config-path(default:./config.json)
{
"s3_key": "abcdefg",
"s3_secret": "abcdefg"
}
Usage instructions
You can upload a directory with
dartboard path/to/directory
dartboard will try to upload to the item with the same identifier as the name of the directory. If the item does not already exist on IA, you must specify the metadata by placing an __ia_meta.json file in the directory:
{
"collection": "opensource",
"mediatype": "data",
"title": "My title",
"description": "My description",
"foo": "bar"
}
You are required to specify, at minimum, a collection and mediatype to create a new item.
If the item already exists, dartboard will try to upload the files to it even if __ia_meta.json isn't present. If it is present, dartboard WILL attempt to diff the metadata and make the necessary changes once it has finished uploading the new files.
You can also specify dartboard settings for that item with an __uploader_meta.json file:
{
"setUploadState": false, // if enabled, dartboard will set an upload-state:uploading key on the item, and change it to upload-state:uploaded when done
"setScanner": true, // if disabled, dartboard will not add "dartboard (vX.Y.Z)" to the scanner field
"sendSizeHint": false, // if enabled, dartboard will send IA a size hint for the item, based on the size of files in the directory. Only enable this for new items, and only if you know that every file you want to upload to this item is already in the directory
"derive": true // if disabled, dartboard will not queue a derive task once it has finished uploading
}
(Values shown above are the defaults. The comments in JSON are only to make reading easier - don't include them when running the actual command)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dartboard_ia-0.2.2.tar.gz.
File metadata
- Download URL: dartboard_ia-0.2.2.tar.gz
- Upload date:
- Size: 8.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8d7a86baeb9a8fb5072bbdc869bba97cc51b58adfbfd4fe078b6ee5de83ce4b5
|
|
| MD5 |
fcd73897a14d3e1b741b8ded9717dc08
|
|
| BLAKE2b-256 |
c901548fd825d892849a6b0b12f8b5620aae4c2d0311cb4e843d5917e0872f54
|
File details
Details for the file dartboard_ia-0.2.2-py3-none-any.whl.
File metadata
- Download URL: dartboard_ia-0.2.2-py3-none-any.whl
- Upload date:
- Size: 10.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42cf06b01bbd17046753299b2b93acf3c7b13f26400f0f52be8f42271be3a3ce
|
|
| MD5 |
3dc944f71ea35f5722a779d1d1b4a21d
|
|
| BLAKE2b-256 |
068ef34e6ccf76ec8ffa0d9587d6dd450e40b733fa15d8e64d337284d5f0e99d
|