CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Thu, 17 Jul 2025 09:25:20 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20110813020205
location: https://web.archive.org/web/20110813020205/https://wiki.python.org/moin/NetworkedData
server-timing: captures_list;dur=0.467947, exclusion.robots;dur=0.019416, exclusion.robots.policy;dur=0.009727, esindex;dur=0.010051, cdx.remote;dur=20.370705, LoadShardBlock;dur=209.458657, PetaboxLoader3.datanode;dur=105.759567
x-app-server: wwwb-app218
x-ts: 302
x-tr: 251
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: SERVER=wwwb-app218; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Thu, 17 Jul 2025 09:25:21 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Sat, 13 Aug 2011 02:02:05 GMT
x-archive-orig-server: Apache/2.2.16 (Debian)
x-archive-orig-vary: Cookie,User-Agent,Accept-Language
x-archive-orig-set-cookie: MOIN_SESSION_80_ROOT_moin=b96e027f4c5ae3fba1f0dd3bd46c2a12b05b222a; expires=Sat, 13-Aug-2011 03:02:00 GMT; Max-Age=3600; Path=/
x-archive-orig-content-length: 24634
x-archive-orig-connection: close
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Sat, 13 Aug 2011 02:02:05 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 23 May 2006 02:21:48 GMT", ; rel="prev memento"; datetime="Sat, 08 Dec 2007 10:03:49 GMT", ; rel="memento"; datetime="Sat, 13 Aug 2011 02:02:05 GMT", ; rel="next memento"; datetime="Thu, 07 Jul 2022 11:18:12 GMT", ; rel="last memento"; datetime="Sat, 13 Jul 2024 23:07:20 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: WPO-20110813010955-crawl438/WPO-20110813020029-01807.warc.gz
server-timing: captures_list;dur=0.569239, exclusion.robots;dur=0.020340, exclusion.robots.policy;dur=0.010325, esindex;dur=0.011714, cdx.remote;dur=30.382272, LoadShardBlock;dur=235.000527, PetaboxLoader3.resolve;dur=199.757056, PetaboxLoader3.datanode;dur=134.250034, load_resource;dur=137.970513
x-app-server: wwwb-app218
x-ts: 200
x-tr: 458
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
NetworkedData - PythonInfo Wiki
User
Networked Data
I've created something that fits the pattern of "Networked Data" which seems to be the way right now.
You can do things like this:
1 >>> import graph
2 >>> store = graph.GraphStore()
3 >>> some_data = { "a": 4547,
4 ... "b": 34,
5 ... "c": 976,
6 ... "other": store.new_ref( "https://taoriver.net/tmp/foo.txt" ) }
7 >>> g = store.new_graph( "foo" )
8 >>> g.accept( some_data )
9 0
10 >>> print g.serialize()
11 0:DICT:1,2,3,4,5,6,7,8
12 1:STR:a
13 2:INT:4547
14 3:STR:c
15 4:INT:976
16 5:STR:b
17 6:INT:34
18 7:STR:other
19 8:REF:http://taoriver.net/tmp/foo.txt
20 -1:FLAG:START 0
21
22 >>> some_data["other"].resolve()
23 >>> some_data["other"]
24 [<reference into http://www.speakeasy.org/~lion/data/bar.txt>, 'hello', 'world!']
25 >>> some_data["other"][0].resolve()
26 >>> some_data
27 {'a': 4547, 'c': 976, 'b': 34, 'other': [['the', 'river', 'of', 'hope', [...]], 'hello', 'world!']}
28 >>>
It's still messy, and it requires a little more work than it needs to, but it's really cool!
What this means is that you can use native python data, which includes "Ref" objects, and then resolve it or publish it over the Internet. It resolves transparently!
There are some limitations in the present code that I want to get rid of:
- You have to register the containers of References with the Graph store. I'd like to find a way to use Python's internal object database, to get relatively quick access to objects that include references, to get around the registration requirement.
- The code sucks, and I'm working to clean it up.
But it's really fun to think of things that you can do with this, or just- this type of thing.
For more on this particular work, see:
Discussion
- (none yet!)
NetworkedData (last edited 2008-11-15 14:00:48 by localhost)