Skip to main content

Femtum SDK - Python

NuGet

Installation

To install the Femtum SDK, use the following command:

pip
pip install femtum-sdk
poetry
poetry add femtum-sdk

Usage

Here is a basic example of how to use the Femtum SDK:

  1. Start the SDK Server
  2. Use SDK in your code
# Find results by page and get sweep data

from femtum_sdk.adapter.analysis_pandas_adapter import SweepResulToDataframe
from femtum_sdk.core.result_pb2 import (
    FindResultByIdRequest,
    ListByPageResultsRequest,
    OptionalSweepResult,
    ResultsFilterRequest,
    ResultsPage,
)

from femtum_sdk import FemtumSdk
from femtum_sdk.core.tag_pb2 import Tag

# Make sure the API server is running before running next steps
with FemtumSdk() as sdk:
    page: ResultsPage = sdk.trimming.result.ListByPage(
        ListByPageResultsRequest(
            PageSize=10,
            PageNumber=1,
            Filters=ResultsFilterRequest(
                WaferName="MyWafer",
                ReticleName="MyReticle",
                DieName="MyDie",
                CircuitName="MyCircuit",
                Tags=[Tag(Key="ShotNumber", Value="6")],
            ),
        )
    )

    items = list(page.Items)
    print(items)

    firstResultWithData: OptionalSweepResult = sdk.trimming.result.FindSweepById(
        FindResultByIdRequest(Id=page.Items[0].Id)
    )
    result = firstResultWithData.Result

    print(result.WavelengthsArray)
    print(result.WavelengthsArray)
    print(result.PowersArray)

    dataframe = SweepResulToDataframe(result)
    print(dataframe)

With Specified SDK server url

with FemtumSdk(hostUrl=api_server.get_grpc_url()) as sdk:
  request = FindResultDataRequestDto()
  result: SpectrumProviderSweepResultArray = (
      sdk.analysis.FindSpectrumProviderSweepResults(request)
  )

  print(result.Items)

Module Dependencies

flowchart TD
    analytics[Analytics]
    spectrum[Spectrum]
    laser[Laser]
    database[Database]
    analysis_agent[Analysis Agent]

    analysis_agent --> database
    analysis_agent --> analytics
    analysis_agent --> spectrum
    analysis_agent --> laser

Release files for femtum-sdk 0.76.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for femtum-sdk 0.76.1
File Size Uploaded
femtum_sdk-0.76.1.tar.gz 240.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for femtum-sdk 0.76.1
File Interpreter ABI Platform
femtum_sdk-0.76.1-py3-none-any.whl Python 3 none any Details

Total release size: 677.2 kB

Release files / femtum_sdk-0.76.1.tar.gz

Download URL femtum_sdk-0.76.1.tar.gz
Size 240.1 kB
Tags Source
SHA-256 checksum
How to use checksums
4e3272a9e731c8ccd419ef29e693bc2df68b69e912bdc2542dc2a6c850c4aa43
BLAKE2b-256 checksum
How to use checksums
a2abd8970fef8c7d939e556372b73c9f72512004e3bb0220789a2401a97a46e3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log

Release files / femtum_sdk-0.76.1-py3-none-any.whl

Download URL femtum_sdk-0.76.1-py3-none-any.whl
Size 437.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c40856b36ae5af8b0fe99edc20ebca82aad0eb22fd6fa6e8b4c67bc0fce381b1
BLAKE2b-256 checksum
How to use checksums
7743cc46b88bcd8da53fe9d6513abc42fbfff5b5432a7de6bc9df24f85ed961b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 14, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page