rda-python-dsarch 1.0.13__tar.gz → 1.0.15__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.13 → rda_python_dsarch-1.0.15}/PKG-INFO +1 -1
  2. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/pyproject.toml +1 -1
  3. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch/PgArch.py +10 -6
  4. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch/dsarch.py +7 -6
  5. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch/dsarch.usg +44 -36
  6. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch.egg-info/PKG-INFO +1 -1
  7. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/LICENSE +0 -0
  8. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/MANIFEST.in +0 -0
  9. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/README.md +0 -0
  10. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/setup.cfg +0 -0
  11. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch/PgMeta.py +0 -0
  12. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch/__init__.py +0 -0
  13. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch.egg-info/SOURCES.txt +0 -0
  14. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch.egg-info/dependency_links.txt +0 -0
  15. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch.egg-info/entry_points.txt +0 -0
  16. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch.egg-info/requires.txt +0 -0
  17. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/src/rda_python_dsarch.egg-info/top_level.txt +0 -0
  18. {rda_python_dsarch-1.0.13 → rda_python_dsarch-1.0.15}/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.13
3
+ Version: 1.0.15
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.13"
7
+ version = "1.0.15"
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"
@@ -1006,7 +1006,7 @@ def archive_saved_files():
1006
1006
  #
1007
1007
  def crosscopy_web_files(aname):
1008
1008
 
1009
- global ALLCNT, MODCNT, RETSTAT
1009
+ global MODCNT, RETSTAT
1010
1010
  tname = 'wfile'
1011
1011
  dsid = PgOPT.params['DS']
1012
1012
  s = 's' if ALLCNT > 1 else ''
@@ -1167,7 +1167,7 @@ def crosscopy_web_files(aname):
1167
1167
  #
1168
1168
  def crosscopy_help_files(aname):
1169
1169
 
1170
- global ALLCNT, MODCNT, RETSTAT
1170
+ global MODCNT, RETSTAT
1171
1171
  tname = 'hfile'
1172
1172
  dsid = PgOPT.params['DS']
1173
1173
  dcnd = "dsid = '{}'".format(dsid)
@@ -1326,7 +1326,7 @@ def crosscopy_help_files(aname):
1326
1326
  #
1327
1327
  def crosscopy_saved_files(aname):
1328
1328
 
1329
- global ALLCNT, MODCNT, RETSTAT
1329
+ global MODCNT, RETSTAT
1330
1330
  tname = 'sfile'
1331
1331
  dsid = PgOPT.params['DS']
1332
1332
  dcnd = "dsid = '{}'".format(dsid)
@@ -2044,7 +2044,7 @@ def restore_backup_savedfiles():
2044
2044
  #
2045
2045
  def crosscopy_backup_files():
2046
2046
 
2047
- global ALLCNT, MODCNT, RETSTAT
2047
+ global MODCNT, RETSTAT
2048
2048
  tname = 'bfile'
2049
2049
  qtype = 'D'
2050
2050
  dsid = PgOPT.params['DS']
@@ -3037,6 +3037,9 @@ def set_one_helpfile(i, pgrec, file, flds, type, info = None, ndsid = None):
3037
3037
  record['time_modified'] = info['time_modified']
3038
3038
  record['date_created'] = info['date_created'] if 'date_created' in info else record['date_modified']
3039
3039
  record['time_created'] = info['time_created'] if 'time_created' in info else record['time_modified']
3040
+ elif 'url' in record:
3041
+ record['locflag'] = 'R'
3042
+ record['date_modified'] = PgUtil.curdate()
3040
3043
  else:
3041
3044
  return PgLOG.pglog("{}-{}: {}".format(type, file, PgLOG.PGLOG['MISSFILE']), PgOPT.PGOPT['emlerr'])
3042
3045
  if 'disp_order' not in record:
@@ -3805,7 +3808,6 @@ def saved_to_web_files():
3805
3808
  #
3806
3809
  def delete_web_files():
3807
3810
 
3808
- global RETSTAT
3809
3811
  tname = 'wfile'
3810
3812
  dsid = PgOPT.params['DS']
3811
3813
  bucket = "rda-data"
@@ -3919,7 +3921,6 @@ def delete_web_files():
3919
3921
  #
3920
3922
  def delete_help_files():
3921
3923
 
3922
- global RETSTAT
3923
3924
  tname = 'hfile'
3924
3925
  dsid = PgOPT.params['DS']
3925
3926
  bucket = "rda-data"
@@ -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.13
3
+ Version: 1.0.15
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