rda-python-dsarch 1.0.14__tar.gz → 1.0.16__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (18) hide show
  1. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/PKG-INFO +1 -1
  2. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/pyproject.toml +1 -1
  3. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/PgArch.py +10 -6
  4. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/PgMeta.py +1 -4
  5. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/dsarch.py +4 -4
  6. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/dsarch.usg +44 -36
  7. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/PKG-INFO +1 -1
  8. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/LICENSE +0 -0
  9. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/MANIFEST.in +0 -0
  10. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/README.md +0 -0
  11. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/setup.cfg +0 -0
  12. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch/__init__.py +0 -0
  13. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  14. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  15. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  16. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  17. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  18. {rda_python_dsarch-1.0.14 → rda_python_dsarch-1.0.16}/tests/test_dsarch.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.14
3
+ Version: 1.0.16
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "rda_python_dsarch"
7
- version = "1.0.14"
7
+ version = "1.0.16"
8
8
  authors = [
9
9
  { name="Zaihua Ji", email="zji@ucar.edu" },
10
10
  ]
@@ -141,6 +141,7 @@ PgOPT.OPTS = { # (!= 0) - setting actions
141
141
  'BP' : [2, 'BatchProcess', 0, ''],
142
142
  'BS' : [2, 'BackStatus', 1, 'NTA'],
143
143
  'BT' : [2, 'BeginTime', 32],
144
+ 'DA' : [2, 'DataAccess', 1, 'BCFN'],
144
145
  'DB' : [2, 'Debug', 0],
145
146
  'DE' : [2, 'Description', 65],
146
147
  'DF' : [2, 'DataFormat', 1],
@@ -205,6 +206,7 @@ PgOPT.ALIAS = {
205
206
  'BG' : ['b'],
206
207
  'BP' : ['d', 'DelayedMode'],
207
208
  'CL' : ['CleanLocFile', 'CleanLocalFile'],
209
+ 'DA' : ['DataAccessflag', 'FileListFlag'],
208
210
  'DD' : ['DeleteDirLevel', 'DeleteEmptyDir'],
209
211
  'DE' : ['Desc', 'Note', 'FileDesc', 'FileDescription'],
210
212
  'DF' : ['TF', 'ContentFormat'],
@@ -281,10 +283,11 @@ PgOPT.TBLHASH['dataset'] = { # condition flag, 0-int, 1-string, -1-exclu
281
283
  'U' : ['UD', "use_rdadb", 1],
282
284
  'L' : ['LC', "locflag", 1],
283
285
  'Q' : ['BF', "backflag", 1],
286
+ 'A' : ['DA', "accessflag", 1],
284
287
  'V' : ['GL', "grouplevel", 0],
285
288
  'C' : ['FL', "filelimit", 0],
286
289
  'B' : ['BL', "buttonlimit", 0],
287
- 'A' : ['ML', "meta_link", -1],
290
+ 'M' : ['ML', "meta_link", -1],
288
291
  'P' : ['NW', "wnote", -1],
289
292
  'I' : ['NI', "inote", -1],
290
293
  'D' : ['ND', "dnote", -1],
@@ -306,10 +309,11 @@ PgOPT.TBLHASH['dsgroup'] = {
306
309
  'T' : ['TI', "title", 1],
307
310
  'R' : ['GT', "grptype", 1],
308
311
  'Q' : ['BF', "backflag", 1],
312
+ 'A' : ['DA', "accessflag", 1],
309
313
  'P' : ['GP', "pattern", 1],
310
314
  'S' : ['SP', "savedpath", 1],
311
315
  'W' : ['WP', "webpath", 1],
312
- 'A' : ['ML', "meta_link", 1],
316
+ 'M' : ['ML', "meta_link", 1],
313
317
  'D' : ['NW', "wnote", 1],
314
318
  'N' : ['NI', "inote", 1]
315
319
  }
@@ -404,9 +408,9 @@ PgOPT.TBLHASH['dsvrsn'] = {
404
408
  # global info to be used by the whole application
405
409
  PgOPT.PGOPT['MSET'] = "SA"
406
410
  #default fields for getting info
407
- PgOPT.PGOPT['dataset'] = "SWFULQ"
411
+ PgOPT.PGOPT['dataset'] = "SWFULQA"
408
412
  PgOPT.PGOPT['dsperiod'] = "GJKXY"
409
- PgOPT.PGOPT['dsgroup'] = "IGXTPQSW"
413
+ PgOPT.PGOPT['dsgroup'] = "IGXTPQASW"
410
414
  PgOPT.PGOPT['wfile'] = "FTIVMNLHS"
411
415
  PgOPT.PGOPT['sfile'] = "FTIVMNLHS"
412
416
  PgOPT.PGOPT['bfile'] = "FNMTHS"
@@ -415,9 +419,9 @@ PgOPT.PGOPT['dsvrsn'] = "VIEDSJX"
415
419
  PgOPT.PGOPT['UACTS'] = (PgOPT.OPTS['AQ'][0]|PgOPT.OPTS['SD'][0]|PgOPT.OPTS['DL'][0])
416
420
 
417
421
  #all fields for getting info
418
- PgOPT.PGOPT['dsall'] = "TSHWFULQVCBAPIDNGJKXYIJKXY" # include 'pdall'
422
+ PgOPT.PGOPT['dsall'] = "TSHWFULQAVCBMPIDNGJKXYIJKXY" # include 'pdall'
419
423
  PgOPT.PGOPT['pdall'] = "GJKXY"
420
- PgOPT.PGOPT['gpall'] = "IGXTRQPSWADN"
424
+ PgOPT.PGOPT['gpall'] = "IGXTRQAPSWMDN"
421
425
  PgOPT.PGOPT['wfall'] = "FTCIXVMNOBQLHSJKAED"
422
426
  PgOPT.PGOPT['sfall'] = "FTCIXVMNOBQLHSJKD"
423
427
  PgOPT.PGOPT['bfall'] = "FNMOTHSCJKD"
@@ -592,7 +592,7 @@ def process_meta_gather(cate, logact = PgLOG.LOGWRN):
592
592
  cmd += ary[0]
593
593
  if PgSIG.start_background(cmd, act, opt, 1):
594
594
  cnt += 1
595
- if PgLOG.PGLOG['DSCHECK'] and cnt > 0 and (cnt%20) == 0:
595
+ if PgLOG.PGLOG['DSCHECK'] and cnt > 0 and (cnt%10) == 0:
596
596
  PgCMD.add_dscheck_dcount(10, 0, logact)
597
597
  elif PgLOG.PGLOG['SYSERR']:
598
598
  PgDBI.record_dscheck_error(PgLOG.PGLOG['SYSERR'])
@@ -608,9 +608,6 @@ def process_meta_gather(cate, logact = PgLOG.LOGWRN):
608
608
  for tidx in TIDXS:
609
609
  PgLOG.pgsystem("{}{}".format(sx, tidx), act, opt)
610
610
 
611
- if PgLOG.PGLOG['DSCHECK'] and (cnt%20) > 0:
612
- PgCMD.add_dscheck_dcount(int((cnt%20)/2), 0, logact)
613
-
614
611
  del META[c]
615
612
  TIDXS = {}
616
613
  switch_logfile()
@@ -390,11 +390,11 @@ def archive_web_files():
390
390
  while True:
391
391
  for i in range(bidx, ALLCNT):
392
392
  if PgSIG.PGSIG['BPROC'] < 2 and i > bidx and ((i-bidx)%20) == 0:
393
- if PgLOG.PGLOG['DSCHECK']:
394
- PgCMD.set_dscheck_dcount(i, chksize, PgOPT.PGOPT['extlog'])
395
393
  if metacnt >= PgOPT.PGOPT['RSMAX']:
396
394
  metatotal += PgMeta.process_metadata("W", metacnt, PgOPT.PGOPT['emerol'])
397
395
  metacnt = 0
396
+ if PgLOG.PGLOG['DSCHECK'] and metacnt == 0:
397
+ PgCMD.set_dscheck_dcount(i, chksize, PgOPT.PGOPT['extlog'])
398
398
  if 'EM' in PgOPT.params:
399
399
  PgLOG.PGLOG['PRGMSG'] = "{}/{} of {} web file{} archived/processed".format(acnt, i, ALLCNT, s)
400
400
  lfile = locfile = PgOPT.params['LF'][i]
@@ -2760,11 +2760,11 @@ def set_webfile_info(include = None):
2760
2760
  reorder = metatotal = metacnt = ADDCNT = MODCNT = 0
2761
2761
  for i in range(bidx, ALLCNT):
2762
2762
  if i > bidx and ((i-bidx)%20) == 0:
2763
- if PgLOG.PGLOG['DSCHECK']:
2764
- PgCMD.add_dscheck_dcount(20, 0, PgOPT.PGOPT['extlog'])
2765
2763
  if metacnt >= PgOPT.PGOPT['RSMAX']:
2766
2764
  metatotal += PgMeta.process_metadata("W", metacnt, PgOPT.PGOPT['emerol'])
2767
2765
  metacnt = 0
2766
+ if PgLOG.PGLOG['DSCHECK'] and metacnt == 0:
2767
+ PgCMD.set_dscheck_dcount(i, 0, PgOPT.PGOPT['extlog'])
2768
2768
  if 'EM' in PgOPT.params:
2769
2769
  PgLOG.PGLOG['PRGMSG'] = "{}/{}/{} of {} {} Web file record{} added/modified/processed".format(ADDCNT, MODCNT, i, ALLCNT, dsid, s)
2770
2770
  if not PgOPT.params['WF'][i]: continue
@@ -209,7 +209,8 @@ categories:
209
209
  [-(UD|UseDSARCH) UseDSARCHFlag] # Y, P, W, I, or N
210
210
  [-(LC|Location) AccessLocationFlag] # C - CGD, G - Glade, O - Object Store
211
211
  [-(BF|BackupFlag) QuasarBackupFlag] # B - Backup, D - Backup & Drdata
212
- [-(DF|DataFormat) DataFormat] # BINARY, ASCII, NetCDF and etc.
212
+ [-(DA|AccessFlag) DataAccessFlags] # B - Both, C - Complete, F - Faceted, or N - No
213
+ [-(DF|DataFormat) DataFormat] # BINARY, ASCII, NetCDF and etc.
213
214
  [-(WH|WebHome) WebDataHomeDirectory]
214
215
  [-(WP|WebPath) WebFilePath]
215
216
  [-(SP|SavedPath) SavedFilePath]
@@ -279,28 +280,29 @@ categories:
279
280
 
280
281
  Valid dataset field names and their corresponding Info options:
281
282
 
282
- Names Info Options Descriptions
283
- T -(TI|Title) dataset title
284
- S -(SP|SavedPath) path relative to Saved home directory
285
- H -(WH|WebHome) path for the web data home directory
286
- W -(WP|WebPath) path relative to web home directory
287
- F -(DF|DataFormat) default data content format
288
- U -(UD|UseDSARCH) use DSARCH flag
289
- L -(LC|Location) Online web file access location flags
290
- Q -(BF|BackupFlag) Quasar Backup flags
291
- V -(GL|GroupLevel) number of group levels to display
292
- C -(FL|FileLimit) file count limit for separate group filelists
293
- B -(BL|ButtonLimit) file count limit for showing script buttons
294
- A -(ML|MetaLink) a link to content meta at the dataset level
295
- W -(NW|NoteWeb) web data description
296
- I -(NI|NoteInternal) internal data description
297
- D -(ND|NoteDocument) document description
298
- N -(NS|NoteSoftware) software description
299
- G -(GI|GroupIndex) Group Indices to identify groups for periods
300
- J -(BD|BeginDate) date data begin for dataset/group
301
- K -(BT|BeginTime) time data begin for dataset/group
302
- X -(ED|EndDate) date data end for dataset/group
303
- Y -(ET|EndTime) time data end for dataset/group
283
+ Names Info Options Descriptions
284
+ T -(TI|Title) dataset title
285
+ S -(SP|SavedPath) path relative to Saved home directory
286
+ H -(WH|WebHome) path for the web data home directory
287
+ W -(WP|WebPath) path relative to web home directory
288
+ F -(DF|DataFormat) default data content format
289
+ U -(UD|UseDSARCH) use DSARCH flag
290
+ L -(LC|Location) Online web file access location flags
291
+ Q -(BF|BackupFlag) Quasar Backup flags
292
+ A -(DA|DataAccessFlag) dataset data file list access flags
293
+ V -(GL|GroupLevel) number of group levels to display
294
+ C -(FL|FileLimit) file count limit for separate group filelists
295
+ B -(BL|ButtonLimit) file count limit for showing script buttons
296
+ M -(ML|MetaLink) a link to content meta at the dataset level
297
+ W -(NW|NoteWeb) web data description
298
+ I -(NI|NoteInternal) internal data description
299
+ D -(ND|NoteDocument) document description
300
+ N -(NS|NoteSoftware) software description
301
+ G -(GI|GroupIndex) Group Indices to identify groups for periods
302
+ J -(BD|BeginDate) date data begin for dataset/group
303
+ K -(BT|BeginTime) time data begin for dataset/group
304
+ X -(ED|EndDate) date data end for dataset/group
305
+ Y -(ET|EndTime) time data end for dataset/group
304
306
 
305
307
  Info option -OF (-OutputFile) is used to specify a file name to save the
306
308
  retrieved information for later usage. Result of this action is displayed
@@ -495,6 +497,7 @@ VersionIndex<:>InternalVersion<:>ExternalVersion<:>DOINumber<:>VersionStatus<:>B
495
497
  [-(GT|GroupType) GroupTypes]
496
498
  [-(GP|GroupPattern) FileNamePatterns]
497
499
  [-(BF|BackupFlag) QuasarBackupFlags]
500
+ [-(DA|AccessFlag) DataAccessFlags] # B - Both, C - Complete, F - Faceted or N - No
498
501
  [-(SP|SavedPath) SavedFilePaths] # relative to dataset saved home dir
499
502
  [-(WP|WebPath) WebFilePaths] # relative to dataset data home dir
500
503
  [-(ML|MetaLink) MetadataLinks]
@@ -575,19 +578,20 @@ QSCAT observations.<:>
575
578
 
576
579
  Valid group field names and their corresponding Info options:
577
580
 
578
- Names Info Options Descriptions
579
- I -(GI|GroupIndex) group indices
580
- G -(GN|GroupName) group names, IDs
581
- X -(PI|ParentIndex) parent group indices
582
- T -(TI|Title) group titles
583
- R -(GT|GroupType) group types
584
- P -(GP|GroupPattern) common file name patterns for each group
585
- Q -(BF|BackupFlag) Quasar Backup flags
586
- S -(SP|SavedPath) path relative to saved home directory for groups
587
- W -(WP|WebPath) path relative to web home directory for groups
588
- A -(ML|MetaLink) a link to content meta at the group level
589
- D -(NW|NoteWeb) group description of data on RDA Server
590
- N -(NI|NoteInternal) group description of internal HPSS data
581
+ Names Info Options Descriptions
582
+ I -(GI|GroupIndex) group indices
583
+ G -(GN|GroupName) group names, IDs
584
+ X -(PI|ParentIndex) parent group indices
585
+ T -(TI|Title) group titles
586
+ R -(GT|GroupType) group types
587
+ P -(GP|GroupPattern) common file name patterns for each group
588
+ Q -(BF|BackupFlag) Quasar Backup flags
589
+ A -(DA|DataAccessFlag) top group data file list access flags
590
+ S -(SP|SavedPath) path relative to saved home directory for groups
591
+ W -(WP|WebPath) path relative to web home directory for groups
592
+ M -(ML|MetaLink) a link to content meta at the group level
593
+ D -(NW|NoteWeb) group description of data on RDA Server
594
+ N -(NI|NoteInternal) group description of internal HPSS data
591
595
 
592
596
  Group information can be retrieved for specified groups per option -GI
593
597
  (-GroupIndex) or -GN (-GroupName), or per option -PI (-ParentIndex). Info
@@ -2173,6 +2177,10 @@ Information options are used to pass information, one or multiple values, into
2173
2177
  -BT or -BeginTime, for begin time of data files of a given group or the whole
2174
2178
  dataset, or begin time of a version control record.
2175
2179
 
2180
+ -DA or -AcessFlag, (Alias: -DataAccessFlag, -FileListFlag). flags to show web file
2181
+ lists at Dataset and/or top group levels; B-Both Filelists (default value),
2182
+ C-Complete File List, F-Faceted Browse or N-No File List.
2183
+
2176
2184
  -DB or -Debug, to turn on debug mode with specified information. This option
2177
2185
  provides up to 3 values, they are Debug Level, debug log file path and debug
2178
2186
  log file name. The debug level is mandatory for this option. It can be a
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: rda_python_dsarch
3
- Version: 1.0.14
3
+ Version: 1.0.16
4
4
  Summary: RDA Python package for utility program dsarch archive RDA data
5
5
  Author-email: Zaihua Ji <zji@ucar.edu>
6
6
  Project-URL: Homepage, https://github.com/NCAR/rda-python-dsarch