test webhook

thumb
km0 2 years ago
parent e68a18caa5
commit 0508168f9c

Binary file not shown.

After

Width:  |  Height:  |  Size: 189 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

@ -5,6 +5,7 @@ from flask import Flask, render_template, request, url_for, redirect, jsonify, a
import markdown import markdown
import frontmatter import frontmatter
from datetime import datetime from datetime import datetime
import json
# FUNCTIONS # FUNCTIONS
@ -118,5 +119,14 @@ def sendStaticFiles(project, filename):
return send_from_directory(app.root_path + f'/projects/{project}/', filename, conditional=True) return send_from_directory(app.root_path + f'/projects/{project}/', filename, conditional=True)
@app.route(f'/{base_url}/hook/', methods=['GET', 'POST'])
def pull():
if request.method == 'POST':
post_data = json.loads(request.form['payload'])
stream = os.popen('git pull')
output = stream.read()
return output
return 'GET method not supported'
# RUN # RUN
app.run(port="3132") app.run(port="3132")

@ -42,7 +42,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 18, "execution_count": 4,
"id": "a7b4d409-d42d-4a74-b093-10ace148cc71", "id": "a7b4d409-d42d-4a74-b093-10ace148cc71",
"metadata": {}, "metadata": {},
"outputs": [], "outputs": [],
@ -66,7 +66,7 @@
"projects.sort(reverse=False, key=lambda project: datetime.strptime(\n", "projects.sort(reverse=False, key=lambda project: datetime.strptime(\n",
" project['date'], '%d %b, %y'))\n", " project['date'], '%d %b, %y'))\n",
"\n", "\n",
"baloons = Template(filename=\"baloons_web.html\")\n", "baloons = Template(filename=\"baloons.html\")\n",
"\n", "\n",
"with open('output.html', 'w') as f:\n", "with open('output.html', 'w') as f:\n",
" f.write(baloons.render(projects=projects))\n", " f.write(baloons.render(projects=projects))\n",

@ -57,270 +57,249 @@
<body> <body>
<ul class="container"> <ul class="container">
<li class="baloon" style="border: 50px solid #fd5"> <li class="baloon" style="border: 50px solid #f14">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/lifeboats/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/lifeboats/ Text ⛵ Lifeboats]</p>
<p class="title">Text ⛵ Lifeboats</p>
<p>What if we could use some excerpts from all of what we are reading now as lifeboats in a sea of text?</p> <p>What if we could use some excerpts from all of what we are reading now as lifeboats in a sea of text?</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #faa"> <li class="baloon" style="border: 50px solid #ef4">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/weaving/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/weaving/ Text Weaving]</p>
<p class="title">Text Weaving</p>
<p>Weave two texts, like warp and weft</p> <p>Weave two texts, like warp and weft</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f53"> <li class="baloon" style="border: 50px solid #f96">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/chat-reader/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/chat-reader/ Chat Reader]</p>
<p class="title">Chat Reader</p>
<p>Transform a text (ok no, actually a CSV file) into a chat</p> <p>Transform a text (ok no, actually a CSV file) into a chat</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #ffb"> <li class="baloon" style="border: 50px solid #fdc">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/cam-transcript/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/cam-transcript/ Cam Transcript]</p>
<p class="title">Cam Transcript</p>
<p>10 minutes transcription from Insecam webcams</p> <p>10 minutes transcription from Insecam webcams</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f0a"> <li class="baloon" style="border: 50px solid #f76">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/soup-gen/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/soup-gen/ 🥣 Soup-gen]</p>
<p class="title">🥣 Soup-gen</p>
<p>A soup aggregator for the next 2 years</p> <p>A soup aggregator for the next 2 years</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fb2"> <li class="baloon" style="border: 50px solid #fe9">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/rejection/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/rejection/ Rejection 🧠⛈️]</p>
<p class="title">Rejection 🧠⛈️</p>
<p>Round glossary just for fun ok</p> <p>Round glossary just for fun ok</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f76"> <li class="baloon" style="border: 50px solid #f69">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/k-pub/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/k-pub/ 🎵 K-PUB]</p>
<p class="title">🎵 K-PUB</p>
<p>Karaoke as a mean of republishing</p> <p>Karaoke as a mean of republishing</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f4e"> <li class="baloon" style="border: 50px solid #ffa">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/padliography/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/padliography/ 🏓 PADliography]</p>
<p class="title">🏓 PADliography</p>
<p>Fetching all our pads from the PZI wiki with API magic</p> <p>Fetching all our pads from the PZI wiki with API magic</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f91"> <li class="baloon" style="border: 50px solid #eee">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/pimp/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/pimp/ Pimp the Soupboat WS]</p>
<p class="title">Pimp the Soupboat WS</p>
<p>Crash HTML_CSS workshop for our dear XPUB1 fellows</p> <p>Crash HTML_CSS workshop for our dear XPUB1 fellows</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f03"> <li class="baloon" style="border: 50px solid #f83">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/concrete-label/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/concrete-label/ Concrete 🎏 Label]</p>
<p class="title">Concrete 🎏 Label</p>
<p>A tool for annotating visual contents</p> <p>A tool for annotating visual contents</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #feb"> <li class="baloon" style="border: 50px solid #fa5">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/api-worldbuilding/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/api-worldbuilding/ Chimeric API]</p>
<p class="title">Chimeric API</p>
<p>What Can API Learn from Poetics and World-building?</p> <p>What Can API Learn from Poetics and World-building?</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f97"> <li class="baloon" style="border: 50px solid #ff2">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-strapi-nuxt-prototype/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-strapi-nuxt-prototype/ SI16 API Strapi-Nuxt prototype]</p>
<p class="title">SI16 API Strapi-Nuxt prototype</p>
<p>Test for a node.js backend for the SI16 app</p> <p>Test for a node.js backend for the SI16 app</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f3d"> <li class="baloon" style="border: 50px solid #f1e">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-express-prototype/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-API-express-prototype/ SI16 API node.js + express prototype]</p>
<p class="title">SI16 API node.js + express prototype</p>
<p>Test for an API-based special issue</p> <p>Test for an API-based special issue</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f4a"> <li class="baloon" style="border: 50px solid #f25">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-structure-proposal/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-structure-proposal/ SI16 Structure Proposal]</p>
<p class="title">SI16 Structure Proposal</p>
<p>Imaging the SI16 as an API ecosystem</p> <p>Imaging the SI16 as an API ecosystem</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fa7"> <li class="baloon" style="border: 50px solid #fed">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-frontend-design/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-frontend-design/ SI16 Frontend Proposal]</p>
<p class="title">SI16 Frontend Proposal</p>
<p>Proposal for the SI16 website</p> <p>Proposal for the SI16 website</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #ef1"> <li class="baloon" style="border: 50px solid #f19">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/spawn-sticker/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/spawn-sticker/ Spawn Sticker]</p>
<p class="title">Spawn Sticker</p>
<p>simple & flexible & adhesive</p> <p>simple & flexible & adhesive</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f43"> <li class="baloon" style="border: 50px solid #f04">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/annotation-compass/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/annotation-compass/ Annotation Compass]</p>
<p class="title">Annotation Compass</p>
<p>A tool for gathering situated impressions in order to create individual, vernacular and poetic readings of various inputs</p> <p>A tool for gathering situated impressions in order to create individual, vernacular and poetic readings of various inputs</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f4e"> <li class="baloon" style="border: 50px solid #fb9">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si16-backend/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si16-backend/ SI16 Backend]</p>
<p class="title">SI16 Backend</p>
<p>Flexible Flask app (~) for the SI16 API</p> <p>Flexible Flask app (~) for the SI16 API</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f41"> <li class="baloon" style="border: 50px solid #f14">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/cms-00/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/cms-00/ Soupboat CMS 00]</p>
<p class="title">Soupboat CMS 00</p>
<p>Micro JSON→HTML CMS for the first trimester</p> <p>Micro JSON→HTML CMS for the first trimester</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fe6"> <li class="baloon" style="border: 50px solid #f82">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-temporality/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-temporality/ Temporality of the loot box]</p>
<p class="title">Temporality of the loot box</p>
<p>Against instant rewarding</p> <p>Against instant rewarding</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f06"> <li class="baloon" style="border: 50px solid #fc4">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-sealing-device/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-sealing-device/ LOOT—BOX—SEALING—DEVICE]</p>
<p class="title">LOOT—BOX—SEALING—DEVICE</p>
<p>Closing Pandora's 3D large jar</p> <p>Closing Pandora's 3D large jar</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f17"> <li class="baloon" style="border: 50px solid #f17">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-multi-player/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-multi-player/ Multi Player Loot Box]</p>
<p class="title">Multi Player Loot Box</p>
<p>Notes to generate relations within the public</p> <p>Notes to generate relations within the public</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f77"> <li class="baloon" style="border: 50px solid #f61">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/mimic/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/mimic/ Mimic research 📦]</p>
<p class="title">Mimic research 📦</p>
<p>Exploring a tricky treasure trope</p> <p>Exploring a tricky treasure trope</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fb3"> <li class="baloon" style="border: 50px solid #ff2">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/katamari-fanfic/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/katamari-fanfic/ A Katamari Fanfiction]</p>
<p class="title">A Katamari Fanfiction</p>
<p>What's left when you roll on everything?</p> <p>What's left when you roll on everything?</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f6e"> <li class="baloon" style="border: 50px solid #f7b">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-decorator/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/loot-box-decorator/ Loot Box as a Decorator]</p>
<p class="title">Loot Box as a Decorator</p>
<p>Hermit crab in the book store</p> <p>Hermit crab in the book store</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f5f"> <li class="baloon" style="border: 50px solid #f1b">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/xquisite/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/xquisite/ 🥐 XQUISITE BRUNCH 🥐]</p>
<p class="title">🥐 XQUISITE BRUNCH 🥐</p>
<p>A branching take on the exquisite corpse game</p> <p>A branching take on the exquisite corpse game</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f61"> <li class="baloon" style="border: 50px solid #fba">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/soup-flask/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/soup-flask/ Flask that soup 🥥]</p>
<p class="title">Flask that soup 🥥</p>
<p>Confy Flask setup on the Soupboat</p> <p>Confy Flask setup on the Soupboat</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fc5"> <li class="baloon" style="border: 50px solid #fc7">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/chaotic-evil-puzzles/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/chaotic-evil-puzzles/ Chaotic evil puzzles]</p>
<p class="title">Chaotic evil puzzles</p>
<p>Jigsaw puzzle as a form of encryption of our SI17</p> <p>Jigsaw puzzle as a form of encryption of our SI17</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f18"> <li class="baloon" style="border: 50px solid #f04">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si17-public/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si17-public/ SI17 producing the public]</p>
<p class="title">SI17 producing the public</p>
<p>homeworks for 21/02</p> <p>homeworks for 21/02</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fdf"> <li class="baloon" style="border: 50px solid #f43">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/test-static-files/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/test-static-files/ test static files in project directory]</p>
<p class="title">test static files in project directory</p>
<p>it's a test</p> <p>it's a test</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f2b"> <li class="baloon" style="border: 50px solid #f7c">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/soup-to-wiki/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/chameleon/ Chameleon RRPG 🦎]</p>
<p class="title">Soup to Wiki</p>
<p>Teleport this log to the wiki (teleport not ready yet)</p>
</a>
</li>
<li class="baloon" style="border: 50px solid #fd3">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/chameleon/'>
<p class="title">Chameleon RRPG 🦎</p>
<p>A Random Role Play Game to inject micro scripted actions in daily life</p> <p>A Random Role Play Game to inject micro scripted actions in daily life</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #ff8"> <li class="baloon" style="border: 50px solid #ff0">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/postit-gen/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/postit-gen/ Post it generator]</p>
<p class="title">Post it generator</p>
<p>Prototype for web-to-print postit</p> <p>Prototype for web-to-print postit</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f32"> <li class="baloon" style="border: 50px solid #f89">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/postit-contents/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/postit-contents/ Post-it Contents]</p>
<p class="title">Post-it Contents</p>
<p>A repo to organize SI17 contents in a post-it guise</p> <p>A repo to organize SI17 contents in a post-it guise</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #fa8"> <li class="baloon" style="border: 50px solid #f1f">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/post-flask/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/post-flask/ we printed 85 000 postit for real]</p>
<p class="title">we printed 85 000 postit for real</p>
<p>Web-to-print post-it generator app</p> <p>Web-to-print post-it generator app</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f88"> <li class="baloon" style="border: 50px solid #fa1">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/postit-identity/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/postit-identity/ Post-it Visual Identity]</p>
<p class="title">Post-it Visual Identity</p>
<p>How to deliver a pubblication in post-it format</p> <p>How to deliver a pubblication in post-it format</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #f34"> <li class="baloon" style="border: 50px solid #f60">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/si17-homepage/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si17-homepage/ SI17 Homepage]</p>
<p class="title">SI17 Homepage</p>
<p>A simple static website to host the loot box</p> <p>A simple static website to host the loot box</p>
</a>
</li> </li>
<li class="baloon" style="border: 50px solid #eee"> <li class="baloon" style="border: 50px solid #ff6">
<a href='https://hub.xpub.nl/soupboat/~kamo/projects/lifespan/'> <p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/lifespan/ Deciduous Time Everlasting Internet]</p>
<p class="title">Deciduous Time Everlasting Internet</p>
<p>Design the lifespan of a website</p> <p>Design the lifespan of a website</p>
</a> </li>
<li class="baloon" style="border: 50px solid #fd7">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/panel/ Knob feast & Cables spaghetti hell]</p>
<p>Generate interactive synth panel from SVG</p>
</li>
<li class="baloon" style="border: 50px solid #fb2">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/spaghetti/ Spaghetti]</p>
<p>Hand drawn SVG cables for a modular interaction</p>
</li>
<li class="baloon" style="border: 50px solid #fc4">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/soup-to-wiki/ Soup to Wiki]</p>
<p>Teleport this log to the wiki (teleport not ready yet)</p>
</li>
<li class="baloon" style="border: 50px solid #f99">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/skimmer/ Skimmer]</p>
<p>Hyper~panning and displaced speakers</p>
</li>
<li class="baloon" style="border: 50px solid #f5d">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/si18-01-jingles/ SI18.01 - Jingles]</p>
<p>Exploring the sequencer of the Skimmer to make some jjj</p>
</li>
<li class="baloon" style="border: 50px solid #fee">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/notation-system/ Notation system for 2 or + fingers]</p>
<p>Drawing and performing scores with Chae</p>
</li>
<li class="baloon" style="border: 50px solid #ef5">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/plotter-pattern/ Plotter Pattern]</p>
<p>Parametric graphics to be plotted with the plotter</p>
</li>
<li class="baloon" style="border: 50px solid #f73">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/word-dimmer/ Word dimmer]</p>
<p>A tool to navigate words semantically</p>
</li>
<li class="baloon" style="border: 50px solid #f1b">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/emergent-opera/ SI18.03 - Emergent Opera]</p>
<p>Ok let's write an opera in 1 week altogether</p>
</li>
<li class="baloon" style="border: 50px solid #f37">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/workinon/ 🇯🇵 WORKINON]</p>
<p>Shared archive to keep track of how ideas change during research</p>
</li>
<li class="baloon" style="border: 50px solid #f16">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/documentation-template/ Documentation Template]</p>
<p>Handy template for documenting projects</p>
</li>
<li class="baloon" style="border: 50px solid #f7f">
<p class="title">[https://hub.xpub.nl/soupboat/~kamo/projects/graduation-divination/ Graduation Divination]</p>
<p>Spiritual consultation for writing the thesis</p>
</li> </li>
</ul> </ul>
</body> </body>

@ -0,0 +1,55 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": 3,
"id": "8d024ff0-1dc3-4a8a-8974-85665c28e0c1",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Already up to date.\n",
"\n"
]
}
],
"source": [
"import os\n",
"stream = os.popen('git pull')\n",
"output = stream.read()\n",
"print(output)"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "2d5f2527-0865-489b-9ca4-e6a45102211b",
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.3"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
Loading…
Cancel
Save