-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbitsavers_demo.py
44 lines (36 loc) · 1.06 KB
/
bitsavers_demo.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/env python3
#
# SPDX-License-Identifier: BSD-2-Clause
#
# See LICENSE file for full text of license
'''
This is a small demo to show excavation of IMD files
from bitsavers.org.
There is NO way the world can ever thank Al Kossow enough for bitsavers.
'''
from autoarchaeologist import Excavation
from autoarchaeologist.collection import bitsavers_org
from autoarchaeologist.vendor.ibm import midrange
class BitSaversIbm34(Excavation):
'''
Excavate the non-fe IBM/S34 floppies
'''
def __init__(self, **kwargs):
super().__init__(**kwargs)
midrange.midrange_excavation(self)
bitsavers_org.FromBitsavers(
self,
"-bits/IBM/System_34/S34_diag_set2",
"-bits/IBM/System_34/S34_diags",
"bits/IBM/System_34/",
)
def main():
''' main functions '''
ctx = BitSaversIbm34(
download_links = True,
)
ctx.start_examination()
ctx.produce_html()
print("Now point your browser at", ctx.filename_for(ctx).link)
if __name__ == "__main__":
main()