chore: publish current DataStack updates
Publish the current application, design, and Phase 1 deployment updates. Excludes ignored personal notes, local MCP config, and generated TypeScript build info.
This commit is contained in:
1 parent
d39d9f92f9
commit
fcc4f4db2d
88 files changed
+21248
-2213
No files matched your search
@@ -0,0 +1,33 @@
|
||||
import { CodeBlock } from '@/components/ui/CodeBlock';
|
||||
import { SectionHeading } from '@/components/ui/SectionHeading';
|
||||
import React from 'react';
|
||||
|
||||
export const SdkSection: React.FC = () => (
|
||||
<section id="sdk" className="border-b border-[var(--border)] py-10">
|
||||
<SectionHeading index="02" label="Python SDK" title="Drop in the SDK. Start streaming." />
|
||||
<div className="grid grid-cols-1 gap-px border border-[var(--border)] bg-[var(--border)] md:grid-cols-2">
|
||||
<CodeBlock>
|
||||
<span className="text-[var(--text-faint)]"># Install the client</span>{'\n'}
|
||||
<span className="text-[var(--text)]">pip install ./sdk-python</span>{'\n\n'}
|
||||
<span className="text-[var(--text-faint)]"># Send an event</span>{'\n'}
|
||||
<span className="text-[var(--text)]">from datastack_sdk import DataStackClient</span>{'\n\n'}
|
||||
<span className="text-[var(--text)]">client = DataStackClient(</span>{'\n'}
|
||||
{' '}server_url=<span className="text-[var(--accent)]">"YOUR_SERVER_URL"</span>,{'\n'}
|
||||
{' '}token=<span className="text-[var(--accent)]">"YOUR_CLIENT_TOKEN"</span>,{'\n'}
|
||||
<span className="text-[var(--text)]">)</span>{'\n\n'}
|
||||
<span className="text-[var(--text)]">if client.connect():</span>{'\n'}
|
||||
{' '}client.sync({'{'}<span className="text-[var(--accent)]">"event"</span>: <span className="text-[var(--accent)]">"package_received"</span>{'}'}){'\n'}
|
||||
{' '}client.disconnect()
|
||||
</CodeBlock>
|
||||
<div className="bg-[var(--surface)] p-5 sm:p-6">
|
||||
<p className="mb-2 text-[11px] uppercase text-[var(--text-faint)]">How it works</p>
|
||||
<h3 className="mb-2 text-[14px] font-medium text-[var(--text)]">A small client. A clear workflow.</h3>
|
||||
<p className="text-[12px] leading-relaxed text-[var(--text-muted)]">
|
||||
Connect a Python source, send individual or batched events, then review and export activity from one workspace.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
);
|
||||
|
||||
export default SdkSection;
|
||||
Reference in new issue
Block a user