You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+28-6Lines changed: 28 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,34 @@ Note that for directories with many files, going through the files one-by-one in
37
37
38
38
Due to its dependency on [Inquirer](https://github.com/magmax/python-inquirer), manual mode is not available on Windows.
39
39
40
+
### Dependencies
41
+
42
+
*[Siegfried](https://github.com/richardlehane/siegfried): For creating DROID-style CSVs. It is not necessary to have Siegfried installed on your system if you pass a DROID CSV file to addext with the `--droid_csv` flag.
43
+
*[Inquirer](https://github.com/magmax/python-inquirer): For selection between extension options in `-m, --manual` mode (Linux/macOS only)
44
+
45
+
### Installation
46
+
47
+
#### Install Siegfried
48
+
49
+
Install Siegfried following the instructions found [here](https://github.com/richardlehane/siegfried).
50
+
51
+
It is not necessary to install Siegfried if you plan to use CSV files created by DROID with the `--droid_csv` flag.
52
+
53
+
#### Install via git clone/download
54
+
55
+
The easiest way to install addext.py is to clone or download this repository and then run the script with `python /path/to/addext.py [options]`.
56
+
57
+
If taking this route, install additional Python library dependencies: `pip install -r requirements.txt` or `pip install inquirer` (this may require sudo permissions).
58
+
59
+
#### Install via PyPI
60
+
61
+
addext can also be installed via `pip install addext`. This will install a script in the `/usr/local/bin` directory (assuming a Linux/macOS installation) so that addext can be called from anywhere with simply `addext.py [options]`.
62
+
63
+
Note that because addext requires the `pronom.db` database to be in the same directory as the script, this installation method requires an extra step. After `pip install addext`, find where pip installed the `pronom.db` file and either copy or link the file to `/usr/local/bin` (this will require sudo permissions):
* Create a symbolic link: `sudo ln -s /path/to/pronom.db /usr/local/bin`
67
+
40
68
### Updating the PRONOM file extension database
41
69
42
70
`pronom.db` is currently up-to-date with PRONOM release: v92
@@ -45,11 +73,5 @@ To create a new database (for instance, after a new PRONOM release):
45
73
* Use Ross Spencer's [pronom-xml-export](https://github.com/timothyryanwalsh/pronom-xml-export) to download XML files for all fmt and x-fmt PUIDs.
46
74
* Run `pronom-xml-to-sqlite.py` to create a new pronom.db database from the XML exports.
47
75
48
-
### Dependencies
49
-
50
-
*[Siegfried](https://github.com/richardlehane/siegfried): For creating DROID-style CSVs. It is not necessary to have Siegfried installed on your system if you pass a DROID CSV file to addext with the `--droid_csv` flag.
51
-
*[Inquirer](https://github.com/magmax/python-inquirer): For selection between extension options in `-m, --manual` mode (Linux/macOS only)
52
-
53
76
### To do
54
77
* Update script for database so it's not necessary to re-create from scratch for each release
55
-
* Fix PyPI packaging (may need to remove automatic script generation - this is currently breaking the link to the `pronom.db` database unless a user with elevated permissions manually patches)
0 commit comments