Skip to main content

GenFlux Python SDK

Project description

GenFlux

GenFlux Python SDK.

Installation

pip install genflux

Quick Start

import genflux

# Simple greeting
print(genflux.hello())          # Hello, World!
print(genflux.hello("GenFlux")) # Hello, GenFlux!

# Check version
print(genflux.version())        # 0.1.0

Using the Client

from genflux import GenFlux

client = GenFlux()

# Test the SDK
print(client.ping())   # {'status': 'ok', 'message': 'GenFlux SDK is working!'}

# Echo a message
print(client.echo("Hello!"))  # Hello!

# Simple calculation
print(client.add(1, 2))  # 3

Configuration (for API features)

For API features that require authentication:

1. Direct API Key

from genflux import GenFlux

client = GenFlux(api_key="your-api-key")

2. Environment Variable

Set the GENFLUX_API_KEY environment variable:

export GENFLUX_API_KEY="your-api-key"

Then initialize without arguments:

from genflux import GenFlux

client = GenFlux()

Development

Setup

# Install uv if not already installed
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install dependencies
uv sync

Running Tests

uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

genflux-0.1.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

genflux-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file genflux-0.1.0.tar.gz.

File metadata

  • Download URL: genflux-0.1.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for genflux-0.1.0.tar.gz
Algorithm Hash digest
SHA256 0fb978ff2503e980b897199442ad66e336695b7d2c370069b5be7945719045db
MD5 562dfd2bccb5bc49240475c37dff54ed
BLAKE2b-256 650770e8e0cbca42d5cc4581be39d169d71ebc22b8e9f2e06d57f38db974b7ad

See more details on using hashes here.

File details

Details for the file genflux-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: genflux-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for genflux-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2f448cbe56b3ed25369a38d0db2f814f9ec224b1ab835380a157418adcd898dd
MD5 86e8466746a7b4853814e5c97f48837c
BLAKE2b-256 f014a5455bb3be88bc227ee4ed0fc0d83bc5e42966b0ef5ccab18dd0ee904ae9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page