Overview

This is a memo from trying out “py-resourcesync,” a Python library for ResourceSync.

https://github.com/resourcesync/py-resourcesync

Setup

gcpidyttphcyol-norneseseothuutrptcpeissn:ys/nt/caglilthub.com/resourcesync/py-resourcesync

Execution

resourcelist

First, create the output resource_dir directory. An ex_resource_dir folder will be created in the current directory.

r!emskoduirrce-_pdi$rre=so"uerxc_er_edsiorurce_dir"

Next, execute the following. You would modify the generator as needed, but here the sample EgGenerator is used.

f#fmmrrrrryesssofo_t..mrmga=geoedexrmrnaRneeeeteecsmsrasruoyoa_oatu_utdutergroiro(cecrrcr)eneeses==S=yryynanE"nmctcgecy.o.Gx(_rrge_sgeenmtesineernomertaeupraatrmrroatdeeeacrtoagsttetortyoaosr(a=udryMs)_0rany.d,ctcGeieaegr__in_"ddmegiipre#rroan==rteCrmtorheeraastRtnoaeogudsreraoctuiaearms__cpddeoaiiSrprrytp,)nrcEogpGreinaetrea.tor

As a result, .well_known, capabilitylist.xml, and resourcelist_0000.xml are created in ex_resource_dir/ex_metadata_dir.

<<?u/xrumlrlsx<<<lemrru/svtlssrueen::lrtrxslm><<l>sm:ndlr>ilrosonshcc:ns=ra>m=="ephd'"hfat1ht=btc.tt"ipa0tphl:p'p:ti/a:tt/bepywinw:=wlcww/"wiowwc.tdw.waeyi.owpx=nspwaa"gie.bmr=tneipe'eaxllsUmraieoTacmt.uFphpycr-silloc8.veime'oe.s/l?rsctmi>g.o"esomttsr/a"cg.dhwaeretmslaa/l_st-d/ekisrnrimo/tswre/nem"/sa>ropeu/sr0oc.ue9rl"ciessty_n0c0"00r.exlm=l"<u/pl"oc>
<<?u/xrumlrlsx<<<lemrru/svtlssrueen::lrtrxslm><<<l>sm:ndllr>ilroasonshacs:ns=rt>tm=="e=hmd'"hf"to1ht=2tdh.tt"0p>a0tph2:2s'p:t2/0h:t-/1=ep1w6"nw:1w-mcww/-w1doww2.05dw.w1r-:i.owTe0cnspw0s1cgie.0oT9=tne:u08'eax1r09Umra3c:5Tacm:e0aFphp4s02-sil6y:18.veZn0e'oe."c03?rsc.Z3>g.oco<5omar/bsr/pglbcgma<aeh/eb/s6ertilt6msalomda/dico6stat>d1/ety>fsra=2im_"btsdr6e/ie2m"rsca>/oepcu3/ara0pc8.aee9bl""iilslitet"nyglctiohsm=tp".l2xe0mt"le"dt=yr"pe2el0==2""2au-pp1p"1l-i2c1aTt0i0o:n1/3x:m4l6"Z"

changelist

By changing strategy to 1, new_changelist can be created, and by changing it to 2, inc_changelist can be created.

Resourcedump and Changedump

It appears that resourcedump can be created by changing strategy to 3, and changedump by changing it to 4, but I was unable to fully understand the configuration methods for these and they remain unverified.

Summary

This was helpful in investigating implementation methods for ResourceSync.

We hope this serves as a useful reference for others as well.