@@ -298,15 +298,15 @@ <h1 class="title">Attachments</h1>
298
298
< p > Ibis Birdbrain passes Python objects as < code > Attachments</ code > to < a href ="../concepts/messages.html "> < code > Messages</ code > </ a > . This allows the user, itself, and (eventually) other bots to interact with data, code, and more.</ p >
299
299
< section id ="usage " class ="level2 ">
300
300
< h2 class ="anchored " data-anchor-id ="usage "> Usage</ h2 >
301
- < div id ="15003ae9 " class ="cell " data-execution_count ="1 ">
301
+ < div id ="77a9f256 " class ="cell " data-execution_count ="1 ">
302
302
< div class ="sourceCode cell-code " id ="cb1 "> < pre class ="sourceCode python code-with-copy "> < code class ="sourceCode python "> < span id ="cb1-1 "> < a href ="#cb1-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> from</ span > ibis_birdbrain.attachments < span class ="im "> import</ span > Attachment, Attachments</ span >
303
303
< span id ="cb1-2 "> < a href ="#cb1-2 " aria-hidden ="true " tabindex ="-1 "> </ a > </ span >
304
304
< span id ="cb1-3 "> < a href ="#cb1-3 " aria-hidden ="true " tabindex ="-1 "> </ a > a1 < span class ="op "> =</ span > Attachment(content< span class ="op "> =</ span > < span class ="st "> "Hello, world!"</ span > )</ span >
305
305
< span id ="cb1-4 "> < a href ="#cb1-4 " aria-hidden ="true " tabindex ="-1 "> </ a > a1</ span > </ code > < button title ="Copy to Clipboard " class ="code-copy-button "> < i class ="bi "> </ i > </ button > </ pre > </ div >
306
306
< div class ="cell-output cell-output-display " data-execution_count ="1 ">
307
307
< pre > < code > Attachment
308
- **guid**: c339eed1-225e-4c1a-a7d4-2b99546ef07a
309
- **time**: 2024-03-05 15: 11:04.784220
308
+ **guid**: aefa7dd8-1504-466e-afa8-fa0053ef087e
309
+ **time**: 2024-03-05 11:22:38.343515
310
310
**name**: None
311
311
**desc**: None</ code > </ pre >
312
312
</ div >
@@ -315,7 +315,7 @@ <h2 class="anchored" data-anchor-id="usage">Usage</h2>
315
315
< section id ="tableattachment " class ="level2 ">
316
316
< h2 class ="anchored " data-anchor-id ="tableattachment "> TableAttachment</ h2 >
317
317
< p > A < code > TableAttachment</ code > contains an Ibis table:</ p >
318
- < div id ="b8280f28 " class ="cell " data-execution_count ="2 ">
318
+ < div id ="9a87d9f6 " class ="cell " data-execution_count ="2 ">
319
319
< div class ="sourceCode cell-code " id ="cb3 "> < pre class ="sourceCode python code-with-copy "> < code class ="sourceCode python "> < span id ="cb3-1 "> < a href ="#cb3-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> import</ span > ibis</ span >
320
320
< span id ="cb3-2 "> < a href ="#cb3-2 " aria-hidden ="true " tabindex ="-1 "> </ a > </ span >
321
321
< span id ="cb3-3 "> < a href ="#cb3-3 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> from</ span > ibis_birdbrain.attachments < span class ="im "> import</ span > TableAttachment</ span >
@@ -327,19 +327,17 @@ <h2 class="anchored" data-anchor-id="tableattachment">TableAttachment</h2>
327
327
< span id ="cb3-9 "> < a href ="#cb3-9 " aria-hidden ="true " tabindex ="-1 "> </ a > a2 < span class ="op "> =</ span > TableAttachment(content< span class ="op "> =</ span > t)</ span >
328
328
< span id ="cb3-10 "> < a href ="#cb3-10 " aria-hidden ="true " tabindex ="-1 "> </ a > a2</ span > </ code > < button title ="Copy to Clipboard " class ="code-copy-button "> < i class ="bi "> </ i > </ button > </ pre > </ div >
329
329
< div class ="cell-output cell-output-stderr ">
330
- < pre > < code > INFO:pins.cache:cache file: /home/runner/.cache/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/data.txt
331
- INFO:pins.cache:cache file: /home/runner/.cache/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/data.txt
332
- INFO:pins.cache:cache file: /home/runner/.cache/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/penguins.csv.gz
333
- INFO:pins.cache:cache file: /home/runner/.cache/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/penguins.csv.gz</ code > </ pre >
330
+ < pre > < code > INFO:pins.cache:cache file: /Users/cody/Library/Caches/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/data.txt
331
+ INFO:pins.cache:cache file: /Users/cody/Library/Caches/pins-py/gcs_332a30997e141da0e08f15fbfae8b3c3ec90463922d117a96fa3b1bef85a2a4c/penguins/20230905T090411Z-9aae2/penguins.csv.gz</ code > </ pre >
334
332
</ div >
335
333
< div class ="cell-output cell-output-display ">
336
334
< pre style ="white-space:pre;overflow-x:auto;line-height:normal;font-family:Menlo,'DejaVu Sans Mono',consolas,'Courier New',monospace "> </ pre >
337
335
</ div >
338
336
< div class ="cell-output cell-output-display " data-execution_count ="2 ">
339
337
< div class ="ansi-escaped-output ">
340
338
< pre > TableAttachment
341
- **guid**: 3850c2bb-2887-4a4d-a4cd-fa87e331e3fa
342
- **time**: 2024-03-05 15: 11:05.521195
339
+ **guid**: 5992ed9a-8a14-46c6-9da8-afdb3644a23d
340
+ **time**: 2024-03-05 11:22:40.051587
343
341
**name**: penguins
344
342
**desc**:
345
343
ibis.Schema {
@@ -378,15 +376,15 @@ <h2 class="anchored" data-anchor-id="tableattachment">TableAttachment</h2>
378
376
< section id ="codeattachment " class ="level2 ">
379
377
< h2 class ="anchored " data-anchor-id ="codeattachment "> CodeAttachment</ h2 >
380
378
< p > A < code > CodeAttachment</ code > contains code – typically Python or SQL:</ p >
381
- < div id ="179f60a0 " class ="cell " data-execution_count ="3 ">
379
+ < div id ="89ecfbf6 " class ="cell " data-execution_count ="3 ">
382
380
< div class ="sourceCode cell-code " id ="cb5 "> < pre class ="sourceCode python code-with-copy "> < code class ="sourceCode python "> < span id ="cb5-1 "> < a href ="#cb5-1 " aria-hidden ="true " tabindex ="-1 "> </ a > < span class ="im "> from</ span > ibis_birdbrain.attachments < span class ="im "> import</ span > CodeAttachment</ span >
383
381
< span id ="cb5-2 "> < a href ="#cb5-2 " aria-hidden ="true " tabindex ="-1 "> </ a > </ span >
384
382
< span id ="cb5-3 "> < a href ="#cb5-3 " aria-hidden ="true " tabindex ="-1 "> </ a > a3 < span class ="op "> =</ span > CodeAttachment(content< span class ="op "> =</ span > < span class ="st "> "select 1 as id"</ span > , language< span class ="op "> =</ span > < span class ="st "> "sql"</ span > )</ span >
385
383
< span id ="cb5-4 "> < a href ="#cb5-4 " aria-hidden ="true " tabindex ="-1 "> </ a > a3</ span > </ code > < button title ="Copy to Clipboard " class ="code-copy-button "> < i class ="bi "> </ i > </ button > </ pre > </ div >
386
384
< div class ="cell-output cell-output-display " data-execution_count ="3 ">
387
385
< pre > < code > CodeAttachment
388
- **guid**: 0e1d88eb-37dc-44cf-9468-0f8e25df733e
389
- **time**: 2024-03-05 15: 11:05.566415
386
+ **guid**: 8138742b-dcef-4735-b452-8481468e12da
387
+ **time**: 2024-03-05 11:22:40.087917
390
388
**name**: None
391
389
**desc**: None
392
390
**language**: sql
0 commit comments