nise/nise-frontend/src/app/api-python/api-python.component.html

21 lines
781 B
HTML
Raw Normal View History

2024-06-12 12:17:19 +00:00
<div class="main term mb-2">
<div class="fade-stuff">
<button [routerLink]="['/docs']">< back to api docs</button>
<h1 class="mb-4"># super duper official python library</h1>
<p>if you're using python, you can download/copy the api wrapper into your project and get (more or less) type-safe methods.</p>
<p>last update: <code>v20240612</code></p>
<p><u>remember</u> to <code>pip install requests</code></p>
<div class="text-center">
<button (click)="copyToClipboard()">copy to clipboard</button>
<button (click)="download()" style="margin-left: 8px">download .py</button>
</div>
<hr class="mt-4 mb-4">
<h1>Example usage</h1>
<pre style="font-family: monospace, monospace !important">{{ pythonUsage }}</pre>
</div>
</div>